Opinions on internal disk allocations/assignments

bond347

Member
Oct 21, 2022
68
1
13
Hi All,

I want to get some thoughts/opinions from you guys with regard to my internal disk allocations.

My server has:
RAID1 (2x 240GB) - sdb
RAID5 (3x 1.9TB) - sda


root# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.5T 0 disk
├─data2-data2_tmeta 253:0 0 15.8G 0 lvm
│ └─data2-data2 253:7 0 3.5T 0 lvm
└─data2-data2_tdata 253:1 0 3.5T 0 lvm
└─data2-data2 253:7 0 3.5T 0 lvm
sdb 8:16 0 223.5G 0 disk
├─sdb1 8:17 0 1007K 0 part
├─sdb2 8:18 0 512M 0 part /boot/efi
└─sdb3 8:19 0 223G 0 part
├─pve-swap 253:2 0 8G 0 lvm [SWAP]
├─pve-root 253:3 0 65.8G 0 lvm /
├─pve-data_tmeta 253:4 0 1.3G 0 lvm
│ └─pve-data 253:6 0 130.6G 0 lvm
└─pve-data_tdata 253:5 0 130.6G 0 lvm
└─pve-data 253:6 0 130.6G 0 lvm


root# pvs
PV VG Fmt Attr PSize PFree
/dev/sda data2 lvm2 a-- 3.49t 512.00m
/dev/sdb3 pve lvm2 a-- 223.00g 15.99g


root# vgs
VG #PV #LV #SN Attr VSize VFree
data2 1 1 0 wz--n- 3.49t 512.00m
pve 1 3 0 wz--n- 223.00g 15.99g


root# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data2 data2 twi-a-tz-- 3.46t 0.00 0.19
data pve twi-a-tz-- <130.59g 0.00 1.22
root pve -wi-ao---- 65.75g
swap pve -wi-ao---- 8.00g



1. Login to the porxmox portal and i can only see 2 storages called "local" and "local-lvm". Where is the data2 volume?
2. There were 2 VGs created automatically after the installation. Should i combine both sda and sdb into the pve volume group?
3. I plan to delete the data volume (130G) and use that space to grow the root volume.
4. How can i create 2 LVs, one called data (thin provision) for VMs and containers and another lv called backup for backups, iso and etc.?

Hope experts can help me out.
 
Hi All,

I want to get some thoughts/opinions from you guys with regard to my internal disk allocations.

My server has:
RAID1 (2x 240GB) - sdb
RAID5 (3x 1.9TB) - sda


root# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.5T 0 disk
├─data2-data2_tmeta 253:0 0 15.8G 0 lvm
│ └─data2-data2 253:7 0 3.5T 0 lvm
└─data2-data2_tdata 253:1 0 3.5T 0 lvm
└─data2-data2 253:7 0 3.5T 0 lvm
sdb 8:16 0 223.5G 0 disk
├─sdb1 8:17 0 1007K 0 part
├─sdb2 8:18 0 512M 0 part /boot/efi
└─sdb3 8:19 0 223G 0 part
├─pve-swap 253:2 0 8G 0 lvm [SWAP]
├─pve-root 253:3 0 65.8G 0 lvm /
├─pve-data_tmeta 253:4 0 1.3G 0 lvm
│ └─pve-data 253:6 0 130.6G 0 lvm
└─pve-data_tdata 253:5 0 130.6G 0 lvm
└─pve-data 253:6 0 130.6G 0 lvm


root# pvs
PV VG Fmt Attr PSize PFree
/dev/sda data2 lvm2 a-- 3.49t 512.00m
/dev/sdb3 pve lvm2 a-- 223.00g 15.99g


root# vgs
VG #PV #LV #SN Attr VSize VFree
data2 1 1 0 wz--n- 3.49t 512.00m
pve 1 3 0 wz--n- 223.00g 15.99g


root# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data2 data2 twi-a-tz-- 3.46t 0.00 0.19
data pve twi-a-tz-- <130.59g 0.00 1.22
root pve -wi-ao---- 65.75g
swap pve -wi-ao---- 8.00g


1. Login to the porxmox portal and i can only see 2 storages called "local" and "local-lvm". Where is the data2 volume?
2. There were 2 VGs created automatically after the installation. Should i combine both sda and sdb into the pve volume group?
3. I plan to delete the data volume (130G) and use that space to grow the root volume.
4. How can i create 2 LVs, one called data (thin provision) for VMs and containers and another lv called backup for backups, iso and etc.?

Hope experts can help me out.
ad 1.) Only vg "pve" and lv "data" in it is configured implicitly as Storage. Other LVM Storages have to configured by GUI with "Datacenter" -> "Storage" -> "Add" -> "LVM"

ad 2.) No, since sda and sbd have quite different physical attribues

ad 3.) No problem: first delete the Storage by "Datacenter" -> "Storage" -> "local-lvm" -> "Remove"; afterwards delete the lvm itself by "lvremove" and extend the root lv instead by "lvextend"

ad 4.) AFAICS you have currently (after performing step 3) only lv "data2" and "root" which occupies the capacity of the two pvs completely. Solution would be e.g. (other variants possible) to create a thin pool in "data2" and afterwards use this thin pool on one hand for VM virtual disks (create a Storage by "Datacenter" -> "Storage" -> "Add" -> "LVM-Thin") and on the other create an lvm in this pool with a filesystem mounted and define the respective directory as Storage for backups, ISO, etc. by "Datacenter" -> "Storage" -> "Add" -> "Directory"
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!