Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How Can I reduce size of root volume group?


I just have SSH access to Linux host.

share|improve this question
What file system is it? What operating system? – Stéphane Chazelas Oct 30 '12 at 21:56

Root VG? You mean your root LV?

If so, that's impossible to shrink while root is online, (you could fall back to ramfs if you have physical access).

The only way to do it, is boot from an external media (or partition), and resize the root partition with resize2fs with lvresize

share|improve this answer
You can extend a logical volume if there's a mounted FS on it, but that won't enlarge the file system. You would have to do it after. Many FS allow to do it while mounted so the statement above is false. To reduce the size of a LV, you need first to reduce the FS on it (if there is a FS). Fewer filesystems support being reduced while mounted but a few (like btrfs) do. resize2fs can only resize ext2,3,4 file systems. – Stéphane Chazelas Oct 30 '12 at 21:54
@StephaneChazelas Many filesystems allow live enlargement, but this question is about reducing the size. – Gilles Oct 30 '12 at 23:17
Yes @Gilles, as I said, btrfs (now becoming the new standard FS for Linux) and a few other filesystems allow reducing live. And I was pointing out that the statement "you can't resize a live FS" was false. – Stéphane Chazelas Oct 31 '12 at 7:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.