在線擴盤須要注意的點linux
1.注意在線擴盤的LVS名稱app
2.注意resize2fs的時間點是單個單個執行,加多塊盤時,切記不可一塊兒增長code
pvcreate /dev/sdb vgextend VolGroup00 /dev/sdb lvextend -l +100%FREE /dev/VolGroup00/LogVol00 resize2fs /dev/VolGroup00/LogVol00
[s-linuxad@imgfile-v-szzb ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 289G 169G 106G 62% / /dev/sda1 99M 26M 68M 28% /boot tmpfs 7.8G 12K 7.8G 1% /dev/shm [s-linuxad@imgfile-v-szzb ~]$ sudo -i [root@imgfile-v-szzb ~]# lvdisplay --- Logical volume --- LV Name /dev/VolGroup00/LogVol00 VG Name VolGroup00 LV UUID 8d1kvS-5mba-BSOQ-Z7rd-xf8a-hJ3h-y3lUTl LV Write Access read/write LV Status available # open 1 LV Size 297.91 GB Current LE 9533 Segments 2 Allocation inherit Read ahead sectors 0 Block device 253:0 --- Logical volume --- LV Name /dev/VolGroup00/LogVol01 VG Name VolGroup00 LV UUID w2C8gK-NUfy-LF4s-vM4R-I5xZ-4Q62-lspDrQ LV Write Access read/write LV Status available # open 1 LV Size 1.94 GB Current LE 62 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1