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

chencho

Well-Known Member
Nov 25, 2010
92
12
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