partprobe
cat /proc/partitions - note the un-partitioned drive (ex: there is a /dev/xvdX but not /dev/xvdX1)
cfdisk /dev/xvdX - create new partition, type 8e (LVM)
pvcreate /dev/xvdX1
vgdisplay - note the VG name (in my case is "vg_bkp_vol_1")
vgextend vg_bkp_vol_1 /dev/xvdX1
pvscan
lvdisplay - note the LV path (here "/dev/vg_bkp_vol_1/lv_bkp_vol_1")
lvextend /dev/vg_bkp_vol_1/lv_bkp_vol_1 /dev/xvdX1
lvdisplay
vgdisplay
resize2fs /dev/vg_bkp_vol_1/lv_bkp_vol_1
df
No comments:
Post a Comment