LVM resize sanity check
craigwhite at azapple.com
Wed Oct 22 17:45:56 UTC 2008
On Wed, 2008-10-22 at 13:19 -0400, brian wrote:
> Craig White wrote:
> > On Wed, 2008-10-22 at 11:42 -0400, brian wrote:
> >> ...
> >> I'd like to reduce /var first to free up some space, then give that
> >> to /tmp using:
> >> # umount /var # e2fsck -f /dev/VolGroup00/LogVol04 # resize2fs
> >> /dev/VolGroup00/LogVol04 13G # lvreduce -L-6G
> >> /dev/VolGroup00/LogVol04 # mount /var # umount /tmp # e2fsck -f
> >> /dev/VolGroup00/LogVol03 # lvextend -L+6G /dev/VolGroup00/LogVol03
> >> # resize2fs /dev/VolGroup00/LogVol03 # mount /tmp
> >> Does that ring any alarm bells?
> >>  http://www.tldp.org/HOWTO/LVM-HOWTO/
> > ---- I don't know about alarm bells but I would think that you would
> > have to 'lvmove' LogVol04 to make contiguous space for LogVol03
> > frequent usage of things like lvdisplay can give you some good clues
> > on where things are
> I have no lvmove here. I have lvm2-2.02.24-1.fc7 installed. Did you mean
> pvmove? I'm looking at the man page now but the lightbulb remains dark.
> Can you elaborate on that?
> I've also been reading this guide:
> Here's the mapping:
yeah - the command doesn't show up here on F9 either...must be faulty
memory or recollection of an older version then
> So, from what I can make out, it seems that the PEs of LogVol04 come
> *before LogVol03, which seems a bit strange.
probably anaconda created LogVol4 before LogVol3 - no big deal I suppose
> (Incidentally, it's a bit disconcerting that google shows, "Restore
> after lvmove crash" for the first several entries for "lvmove".)
ignore my advice about an lvmove then
More information about the users