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