Wednesday, March 28, 2012

ProxmoxVE 2.0: Shrinking the data volume

After installing ProxmoxVE 2.0rc1, a data volume was created which makes use of most of the space on the drive.

I wanted to carve out a separate volume for some other use so I needed to shrink this data volume:

First, I unmounted the logical volume with:
umount /var/lib/vz
Then I proceeded to shrink the file system to the minimum size possible with:
resize2fs -Mf /dev/pve/data
Then I proceeded to reduce the size of the logical volume with:
lvreduce --verbose --extents -100000 /dev/pve/data
Then I proceeded to grow the file system back to occupy the now reduced volume with:
resize2fs -f /dev/pve/data
Lastly, I remounted the file system with:
mount /dev/pve/data /var/lib/vz

I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.

1 comment:

  1. Anonymous5:13 PM

    They supply e mail, phone, and chat help, so it’s safe to imagine have the ability to|you presumably can} attain them 온라인카지노 simply. The solely factor they lack compared to with} other websites is a neighborhood discussion board. Still, their FAQ part is excellent, providing plenty of information relating to payments, promotions, and lots of|and lots of} extra topics. What this roulette web site is basically missing is extra help options. They supply solely e mail help, which is a bit unnerving though we discovered they responded promptly and effectively. Sure, the welcome bonus is nothing to write down residence about – an excellent commonplace 100 percent match up to as} $1000 – but with just a 30 x play via you find a way to|could possibly|might find a way to} write residence about cashing it out.