Lvm – RedHat Linux LVM — determine free space

disk-space-utilizationhard drivelvmpartition

here's my brain teaser:

Got myself a server connected to a SAN. We would like to install Netbackup on it (to back up this and one other server).
I would like to create a new partition within an LVM, about 10-15gb, on the local disk only. However, the Volume Group for the space allocated on the SAN is the same group name as what's allocated on the local disk.

How can I determine my available space on the local disk only, within the logical volume? I’d like to avoid using the SAN space as it may cause performance and/or other issues we don’t want. LVDISPLAY shows all LV stats, and VGS shows available space for the entire volume group. The physical volume itself has no available space to create a new partition or LV.

Thank you in advance!

Joel

Best Answer

I would like to create a new partition within an LVM, about 10-15gb, on the local disk only

That's very easy: lvcreate blah-blah-blah VolGroupName /dev/physical_to_use