Moving /var/lib/vz and mounting it on lvm after install

chencho

Well-Known Member
Nov 25, 2010
92
8
48
Hi all.

I install Proxmox as usual, and made /backups and /var/lib/vz into lvm.

I use Proxmox but suddenly i see my /var/lib/vz have not enougth size! I forget to format and mounting /var/lib/vz in my lvm!!! It's into / and / (/dev/sda1) have only 30 GB.

Then, i stop my vm, copy from /var/lib/vz to /backups/vz ( cp -prf ), format my lv, adding it to fstab and reboot. Copy again from /backups/vz to /var/lib/vz

Now, i start my vm, but have the same problem, i'm over my space!

Code:
S.ficheros             Tamaño    Usado     Disp    Uso%    Montado en
/dev/sda1                     30G          28G        449M     99%            /

root@xxx:~# df -h /var/lib/vz

S.ficheros                            Tamaño    Usado       Disp    Uso%     Montado en
/dev/mapper/pve-lv1      1,2T           26G         1,1T       3%        /var/lib/vz

I dont now how to free my /
 
hi,
your old content of /var/lib/vz is still there - invisible throuh the mounted filesystem.
Code:
umount /var/lib/vz
mv /var/lib/vz /var/lib/vz.old
mkdir /var/lib/vz
mount /var/lib/vz
after that you find the old content in vz.old

Udo
 

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!