Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How Can I reduce size of root volume group?

 /dev/VolGroup00/LogVol00

I just have SSH access to Linux host.

share|improve this question
    
What file system is it? What operating system? –  Stephane Chazelas Oct 30 '12 at 21:56
add comment

1 Answer

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. –  Stephane 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. –  Stephane Chazelas Oct 31 '12 at 7:37
add comment

Your Answer

 
discard

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.