Linux File system expansion steps

Source: Internet
Author: User

1 Pre-expansion check

cat/etc/-H

Please confirm the free size of the VG and whether the file and file system is up to the system limit before expanding.

2 System Identification Drive

# echo "---" >/sys/class/scsi_host/hostnumbers/scanHost found in the ls-lrt/sys/class/scsi_host/directory

3 Viewing the aggregation disk for different storage

EMC Storage aggregation path software PowerPath, the aggregated disk name is Emcpower

# powermt config  link aggregation configuration #powermt dispaly dev=all View the status of all power disks #powermt Save saves EMC link status #ls-ltr/dev|grep Power   See if the timestamp has a new disk

IBM Storage Aggregation Path software datapath, the aggregated disk name is dm-*

# cfgpath Use this command to aggregate disks # datapath Query Device # Ls-lrt/dev|grep dm-

IBM XIV Storage

# xiv_devlist View disk status # Ls-ltr/dev|grep dm-

Linux comes with multipath storage aggregation path software, the aggregated disk name is MPath

# multipath-v 2 # Ls-lrt/dev|grep MPath # Multipath-ll ("active/ready" status is Normal,"inactive/faulty " Status for link break)

4 File System expansion

 #  pvcreate/dev/aggregated disk name  #  pvs #检查PV是否创建成功  #  
   
    vgextend vgname/dev/The disk name after aggregation #对VG进行扩容  
    #  
    vgdiplay-v VG name #检查VG是否扩容成功  
    #  
    pvs Check to see if the new disk is expanding to the specified VG  
    #  
    partprobe #更新分区表  
    #  
    lvextend-l +20g/dev/vgname/lvname #扩容lv  
    #  
    resize2fs/dev/vgname/lvname (Redhat 5.5 or later)  
    #  
    ext2online/dev/vgname/lvname (Redhat 4.6 version)  
   

If the system is double-click on the Standby machine:

# Pvscan # PVs

Linux File system expansion steps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.