make hdd available - how?

praxmaxl

Active Member
Feb 2, 2021
7
7
43
67
a small 30G internal sdd plus a larger hdd in my proxmox and am wondering what is the way to make the larger hdd available for vms
Code:
root@pve:~# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                  8:0    0  29.3G  0 disk
|-sda1               8:1    0  1007K  0 part
|-sda2               8:2    0   512M  0 part /boot/efi
`-sda3               8:3    0  28.8G  0 part
  |-pve-swap       252:0    0   3.5G  0 lvm  [SWAP]
  |-pve-root       252:1    0  12.7G  0 lvm  /
  |-pve-data_tmeta 252:2    0     1G  0 lvm 
  | `-pve-data     252:4    0 708.3G  0 lvm 
  |-pve-data_tdata 252:3    0 708.3G  0 lvm 
  | `-pve-data     252:4    0 708.3G  0 lvm 
  `-pve-data_meta0 252:5    0     1G  0 lvm 
sdb                  8:16   0 698.6G  0 disk
`-sdb1               8:17   0 698.6G  0 part
  `-pve-data_tdata 252:3    0 708.3G  0 lvm 
    `-pve-data     252:4    0 708.3G  0 lvm

Code:
root@pve:~# lvdisplay /dev/pve/data
  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                YvcBOz-OIFh-ghhs-rb7q-9Rfe-r76L-EnaSly
  LV Write Access        read/write
  LV Creation host, time proxmox, 2024-07-23 18:12:03 +0200
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                708.29 GiB
  Allocated pool data    0.00%
  Allocated metadata     1.85%
  Current LE             181323
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:4

I guess I might need to extend the filesystem and mount it in the right way. Somehow I can't wrap my head aroung how exactly at the moment.

Code:
root@pve:~# cat /etc/fstab 
# <file system> <mount point>     <type> <options>         <dump> <pass>
/dev/pve/root     /         ext4     errors=remount-ro     0     1
UUID=660D-B057     /boot/efi     vfat     defaults         0     1
/dev/pve/swap     none         swap     sw             0     0
proc        /proc         proc     defaults         0     0
 
You wipe the hdd ( all data on it will be lost though) and afterwards create a lvm/thin or zfs pool from the GUI.
 
  • Like
Reactions: UdoB
You wipe the hdd ( all data on it will be lost though) and afterwards create a lvm/thin or zfs pool from the GUI.
Wiping is in the GUI too - no need for CLI. (<node> --> Disks --> select the device --> Wipe Disk)
 
  • Like
Reactions: Johannes S
But there's already a thin pool on it? You can add it via Datacenter > Storage > LVM-Thin. You might have to rename the duplicate group though.
ZFS might be another (better, IMO) option depending on what you do.
Edit: Even better. Instead of renaming the group, delete the thin pool from the 30G drive and let the other take its place.
This should help finding the right thing to remove
Bash:
pvs -o+pv_uuid,vg_uuid
lvs -o+vg_uuid
 
Last edited:
  • Like
Reactions: UdoB and Johannes S