Add a partition to an LVM Group
by WhiteTiger from LinuxQuestions.org on (#5R2V2)
I have two 300GB drives in RAID1
On md0 I created a group with three volumes, occupying a total of about half the disk.
I would now like to create a new volume using the remaining 150GB.
How can I do?
Here is some data on RAID, Group and Volumes:
Code:root@hvm1:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[0] sdb1[1]
292835328 blocks super 1.2 [2/2] [UU]
bitmap: 1/3 pages [4KB], 65536KB chunk
unused devices: <none>
root@hvm1:~# pvs
PV VG Fmt Attr PSize PFree
/dev/md0 pve lvm2 a-- <279,27g <152,61g
root@hvm1:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- <279,27g <152,61g
root@hvm1:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve -wi-ao---- <89,41g
root pve -wi-ao---- 29,80g
swap pve -wi-ao---- <7,45g
On md0 I created a group with three volumes, occupying a total of about half the disk.
I would now like to create a new volume using the remaining 150GB.
How can I do?
Here is some data on RAID, Group and Volumes:
Code:root@hvm1:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[0] sdb1[1]
292835328 blocks super 1.2 [2/2] [UU]
bitmap: 1/3 pages [4KB], 65536KB chunk
unused devices: <none>
root@hvm1:~# pvs
PV VG Fmt Attr PSize PFree
/dev/md0 pve lvm2 a-- <279,27g <152,61g
root@hvm1:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- <279,27g <152,61g
root@hvm1:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve -wi-ao---- <89,41g
root pve -wi-ao---- 29,80g
swap pve -wi-ao---- <7,45g