Re: Am I'm really confused or is evms really confused? - Please Help!

Jürgen E. Fischer <[email protected]> Thu, 11 Oct 2007 21:13:45 +0200
Newsgroups gmane.linux.evms.devel
Message-ID <[email protected]>
Hi Erik,

On Thu, Oct 11, 2007 at 11:00:49 -0400, Erik Ohrnberger wrote:
> I have two LVM2 volumes in my file server system.  I wanted to add new drive
> that I got to one of them.  I thought I was going through the correct steps:
> 
> * umount the volume
> * Select the hard drive, and perform a recursive delete to make it
> available.
> * In container display, add a new hard drive device to the LVM2 container
> (Expand -> Container)
> * Create an LVM2 region on the drive (Create -> Region -> LVM2)
> * Expand the LVM2 container to include the new region (Expand -> Container)
> * Expand the volume that is on the container (it will take care of the file
> system expansion)
> * Save the changes.
> 
> But now, when I look at the evms configuration in evmsgui, I get this
> display (please see attached image), and now I have no idea how to undo
> this.  I don't understand how lvm2/c00/r00.01 can be part of multiple
> lvm2's.  All I wanted to do is to grow lvm2/c00 to include the entirety of
> the hdd hard disk.

Seems you
- expanded your LVM2 container c00 by hdd,
- created a region r00.01 in it,
- expanded your LVM2 container c01 by that region and
- expanded the r01.

You should have simply added hdd to the LVM2 container c01 and would
have been able to expand r01 - depending on the filesystem even w/o
umounting r01 first.

To undo the change, you need to 
- shrink r01 to the old size (afaik reiserfs can do that mounted and
  ext3 unmounted; with other fs you probably need to backup, delete,
  recreate and restore the volume in the old size),
- move the mapping of the shrinked volume r01 from r00.01 to the rest of
  c01 in case r01 still uses space on r00.01,
- shrink c01 by r00.01,
- delete r00.01 from c00 and
- shrink c00 by hdd.


hth,
Juergen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Evms-devel mailing list
[email protected]
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel