|
Discussions on RAM, DRAM, shared memory, NAS, SAN, RAID, backups, SCSI, IDE, UFS, UFS2, JFS, JFS2, EXT2, EXT3
Author |
Message |
mandrei99
|
 |
Post subject: Linux LVM: Create LV(Logical Volume) using all available space in the volume group | Posted: Wed Jan 29, 2014 6:57 am |
|
Joined: Tue Aug 04, 2009 9:16 am Posts: 250
|
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
|
|
|
|
|
|
|
Users browsing this forum: No registered users and 0 guests |
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
News Site map SitemapIndex RSS Feed Channel list
|
|