>>> On 8/15/2008 at  9:42 AM, in message <[EMAIL PROTECTED]>,
Ryan McCain <[EMAIL PROTECTED]> wrote: 
> Is it possible to shrink a LVM fs, not just grow it?

In the case of EXT3, the file system must be unmounted to shrink it:
umount /path/to/filesystem
e2fsck -f /dev/vgname/lvname
resize2fs /dev/vgname/lvname desiredsize
lvreduce -L desiredsize /dev/vgname/lvname
mount /dev/vgname/lvname /path/to/filesystem

You'll get a nastygram from lvreduce about data loss.  If you are 100% sure you 
specified the same size as you did for resize2fs (or larger), you'll be OK.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to