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

FAQ
It is currently Sun Dec 10, 2023 6:08 am


Discussions on RAM, DRAM, shared memory, NAS, SAN, RAID, backups, SCSI, IDE, UFS, UFS2, JFS, JFS2, EXT2, EXT3

Author Message
mandrei99
Post  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

Offline
 

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             





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Linux LVM: Create LV(Logical Volume) using all available space in the volume group"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Mdadm - Linux software RAID

designeru

5

4345

Tue Jun 05, 2012 5:31 am

bealee08 View the latest post

There are no new unread posts for this topic. Linux: Show UUID of filesystem

mandrei99

0

2790

Fri Feb 28, 2014 6:35 pm

mandrei99 View the latest post

 

Who is online
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
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