On Wed, 2 Feb 2005 09:57:20 -0800, Tracy R Reed <[EMAIL PROTECTED]> wrote:
> On Tue, Feb 01, 2005 at 10:28:21PM -0800, Carl Lowenstein spake thusly:
> > Presumably I want to shrink the 149GB LV and start setting up some
> > smaller partitions, so that  I can separate /var and /tmp and /usr and
> > /usr/local and /home and /data, to cite my usual partition scheme.  I
> > get confused by the man pages for lvreduce and lvresize and resize2fs.
> >  Especially because they should be used on an unmounted file system,
> > and my root file system is part of this LV.
> 
> Yes, this is a problem. I suspect you will need to boot into single user
> mode, mount / read-only, and then reduze the size of the filesystem and
> then reduce the size of the LV. Being read-only may be sufficient to let
> you resize. And of course make sure you reduce them both by the exact same
> amount. ext3 can be extended while mounted but not shrunk. I think reiser4
> is the only fs that can be shrunk while mounted.

Thanks, Tracy.  I hadn't thought about read-only.  You did recognize
the problem that there is initially no free space on this physical
volume in which to create another logical volume.  Maybe I'll work on
it tonight.

I did learn something about the internal structure of all the programs
that deal with LVM, by reading the source.  They are all symlinks to
one main program /usr/sbin/lvm.   My confusion between lvreduce and
lvresize is partly due to bad man.page writing and partly because
lvreduce and lvextend are both turned into calls to lvresize, passing
the arguments along.

    carl
-- 
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]
-- 

KPLUG-List mailing list
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to