Hi all,
Some time ago, I've used the defaults parameters for installing a 3.0 Proxmox server on a HP server with 4*600Go DD configured with RAID 1+0. This server is for now hosting only one VM (ubuntu 12.04 + postgresql 9.1) and I need to upgrade it to ubuntu 14.04 + PG 9.3, but the upgrade process requires more disk space than availabled as pg_upgradecluster will clone a big database.
For this purpose, I want to resize the swap and the root partitions as they are too large one the proxmox server :
The same problem occurs in the Ubuntu VM as the defaults install parameters set a near 200Go swap partition:
So, is it possible (and how) to shrink pve-root and pve-swap, says to 5Go each (if it's ok for Proxmox), and to extend pve-data accordingly and set the available space in the VM?
Thanks
Some time ago, I've used the defaults parameters for installing a 3.0 Proxmox server on a HP server with 4*600Go DD configured with RAID 1+0. This server is for now hosting only one VM (ubuntu 12.04 + postgresql 9.1) and I need to upgrade it to ubuntu 14.04 + PG 9.3, but the upgrade process requires more disk space than availabled as pg_upgradecluster will clone a big database.
For this purpose, I want to resize the swap and the root partitions as they are too large one the proxmox server :
Code:
root@dedale:~# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
data pve -wi-ao-- 865.64g
root pve -wi-ao-- 96.00g
swap pve -wi-ao-- 139.62g
Code:
root@dedale:~# df -h
Sys. fich. Taille Util. Dispo Uti% Monté sur
udev 10M 0 10M 0% /dev
tmpfs 19G 336K 19G 1% /run
/dev/mapper/pve-root 95G 971M 89G 2% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 38G 13M 38G 1% /run/shm
/dev/mapper/pve-data 853G 493G 361G 58% /var/lib/vz
/dev/sda1 495M 34M 436M 8% /boot
/dev/fuse 30M 12K 30M 1% /etc/pve
The same problem occurs in the Ubuntu VM as the defaults install parameters set a near 200Go swap partition:
Code:
minos@icare:/$ sudo lvs
[sudo] password for minos:
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
root icare -wi-ao--- 513,76g
swap_1 icare -wi-ao--- 186,00g
So, is it possible (and how) to shrink pve-root and pve-swap, says to 5Go each (if it's ok for Proxmox), and to extend pve-data accordingly and set the available space in the VM?
Thanks