Shrinking proxmox partition?

trinode

New Member
Apr 29, 2011
1
0
1
hello,

I'm wondering if you can help, is there a way to shrink the partition proxmox is installed on?

My FS is as follows:
sdc1 ~ 500MB - boot / ext3
sdc2 ~ 490GB - LVM2 proxmox install / ext3
unallocated ~ 2GB

Now I need to free up some space for a chunk of swap (about 20GB)

I'm booting from a live cd so the FS isn't in use and I'm sure I need to use resize2fs and lvmresize, but I'm just after a bit of guidance about it (really don't want to mess up this server)

anyone know the specific commands I'd need?

- Anthony
 
Hmm,

I think using a swap-file on the current partition is much easier and about as "fast" as a swap partition.
Just do: dd if=/dev/zero of=/swapfile bs=1 count=0 seek=20G
and then: mkswap /swapfile and swapon /swapfile (dont forget to add swapfile to your fstab).

If you expect noticeable swapping anyway you should add more ram. Swapping is always a performance killer.