Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides https://forum.ivorde.com/ |
|
Linux LVM: Create LV(Logical Volume) using all available space in the volume group https://forum.ivorde.com/linux-lvm-create-lv-logical-volume-using-all-available-space-in-the-volume-group-t16191.html |
Page 1 of 1 |
Author: | mandrei99 [ Wed Jan 29, 2014 6:57 am ] |
Post subject: | Linux LVM: Create LV(Logical Volume) using all available space in the volume group |
From 'man lvcreate': Quote: lvcreate [-l|--extents LogicalExtentsNumber[%{VG|FREE|ORIGIN} Below is a command to create a logical volume that spans the whole free space in the VolumeGroup Code: # vgs
VG #PV #LV #SN Attr VSize VFree rootVG 1 2 0 wz--n- 20.00g 0 vmVG 1 0 0 wz--n- 128.81g 128.81g # lvs LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert rootLV rootVG -wi-ao---- 18.55g swapLV rootVG -wi-ao---- 1.44g # lvcreate vmVG -n vmLV -l 100%FREE Logical volume "vmLV" created # vgs VG #PV #LV #SN Attr VSize VFree rootVG 1 2 0 wz--n- 20.00g 0 vmVG 1 1 0 wz--n- 128.81g 0 # lvs LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert rootLV rootVG -wi-ao---- 18.55g swapLV rootVG -wi-ao---- 1.44g vmLV vmVG -wi-a----- 128.81g |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |