LVM - creating extra logical volumes (using extra space outside LVM)
I am trying to understand a concept that is confusing me.
I created a virtual machine, it is for a internal samba file share (small-no password).
So I created the LVM then sized it accordingly, putting 'root' /, /home, /var, and swap in the logical volume group - vg01 - inside it there is lv00-lv04 for the mount points.
So there is about 7-8GB of unused space in the virtual machine container - outside the LVM group created (unused).
When I run fdisk -l it ONLY shows /dev/sda /dev/sda1 and /dev/sda2 in which (sda1 - boot) and (sda2 - is the Logical Volume Group - vg01).
/dev/sda
/dev/sda1 -- /boot ext4
/dev/sda2 -- /
I am not seeing the extra disk space, nor am I able to allocate it to create another logical volume group for the 'samba file share'.
The big question is, how do you use the free space or allocate it? It is not seen by fdisk -l (I am not aware of another method).
Can anyone help shed some light/advice on this?
Below the extra disk space is show via fdisk -l (however how do you create another Logical Volume Group???)
[root@is01 ~]# fdisk -l
Disk /dev/sda: 26.8 GB, 26843545600 bytes
64 heads, 32 sectors/track, 25600 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00034e7f
Device Boot Start End Blocks Id System
/dev/sda1 * 2 501 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 502 17909 17825792 8e Linux LVM
Partition 2 does not end on cylinder boundary.
Disk /dev/mapper/vg_is01-lv03: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_is01-lv00: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_is01-lv02: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_is01-lv01: 2143 MB, 2143289344 bytes
255 heads, 63 sectors/track, 260 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@is01 ~]# vgdisplay
--- Volume group ---
VG Name vg_is01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 17.00 GiB
PE Size 4.00 MiB
Total PE 4351
Alloc PE / Size 4351 / 17.00 GiB
Free PE / Size 0 / 0
VG UUID Uvw4iE-w0Mg-f0JT-Vdv7-ppJI-CkbZ-yqBiNx
Last edited by rhbegin; 01-30-2013 at 09:00 AM.
|