create storage space

gernazdasch

New Member
Jun 9, 2022
25
1
3
Hello.

I have a 1TB HDD and i can use only 94GB

Code:
df -h
Filesystem              Size  Used Avail Use% Mounted on
udev                     16G     0   16G   0% /dev
tmpfs                   3.2G  1.4M  3.2G   1% /run
/dev/mapper/pve-root     94G   65G   26G  72% / < almost full
tmpfs                    16G   46M   16G   1% /dev/shm
tmpfs                   5.0M     0  5.0M   0% /run/lock
/dev/fuse               128M   16K  128M   1% /etc/pve
tmpfs                   3.2G     0  3.2G   0% /run/user/0

I followed some tutorials , i created a volume, but i don't see it in Console.

Code:
lvcreate -n vz -V 100G pve/data
mkfs.ext4 /dev/pve/vz

Code:
lvs
  LV   VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data pve twi-aotz-- 757.78g             0.07   0.25                           
  root pve -wi-ao----  96.00g                                                   
  swap pve -wi-ao----   8.00g                                                   
  vz   pve Vwi-a-tz-- 100.00g data        0.51

Screen Shot 2023-08-25 at 12.18.34 AM.pngScreen Shot 2023-08-25 at 12.16.03 AM.png

How can i solve this?

Thank you.
 
you named the space you created and formatted - vz, I assume you planned to map it to /var/lib/vz so instead of storing data that is there now that is on root disk, the data will be on a separate partition.
If my guess is correct, then you likely did not follow through on the steps in the tutorial.

At a high level you need to :
1) stop your containers and VMs
2) mv vz folder out of the way: mv /var/lib/vz /var/lib/vz.old
3) create new vz folder : mkdir /var/lib/vz
4) add an entry into /etc/fstab for automatic mount, ie: /dev/pve/vz /var/lib/vz ext4 defaults 1 1
5) mount it: mount -a
6) confirm it worked : df -h
7) move data from old to new : mv /var/lib/vz.old/* /var/lib/vz
8) reboot to confirm it works
9) get coffee
10) update storage definition in PVE: pvesm set local --is_mountpoint yes


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
you named the space you created and formatted - vz, I assume you planned to map it to /var/lib/vz so instead of storing data that is there now that is on root disk, the data will be on a separate partition.
If my guess is correct, then you likely did not follow through on the steps in the tutorial.

At a high level you need to :
1) stop your containers and VMs
2) mv vz folder out of the way: mv /var/lib/vz /var/lib/vz.old
3) create new vz folder : mkdir /var/lib/vz
4) add an entry into /etc/fstab for automatic mount, ie: /dev/pve/vz /var/lib/vz ext4 defaults 1 1
5) mount it: mount -a
6) confirm it worked : df -h
7) move data from old to new : mv /var/lib/vz.old/* /var/lib/vz
8) reboot to confirm it works
9) get coffee
10) update storage definition in PVE: pvesm set local --is_mountpoint yes


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thank you for your answer.

I can mount it anywhere /var/lib/vz2 or /home/space2

Without reboot does not work? I have to keep machine running.
 
I can mount it anywhere /var/lib/vz2 or /home/space2
you can mount it anywhere. How you can then take best advantage of it will change and require more steps and deeper understanding of Proxmox storage organization. I'd recommend leaving that off for when you have more experience.

Without reboot does not work? I have to keep machine running.
you dont need to reboot, that is to ensure that that when you do reboot, perhaps a month or two from now, you are not surprised with a broken system. While its fresh in your mind what you changed - its the best time to address any misconfiguration.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

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!