Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Tue Nov 12, 2019 12:29 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - Linux LVM: Create LV(Logical Volume) using all available space in the volume group
Author Message
Post subject: Linux LVM: Create LV(Logical Volume) using all available space in the volume group  |  Post Posted: Wed Jan 29, 2014 6:57 am
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             
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO