[prev in list] [next in list] [prev in thread] [next in thread] 

List:       evms-devel
Subject:    RE: [Evms-devel] expand EVMS volume after taking snapshots
From:       "Ken Hwang" <ken.hwang () zyxel ! com>
Date:       2004-11-17 23:35:47
Message-ID: HIENIDNHFMODBIPFNJPDMEJNCFAA.ken.hwang () zyxel ! com
[Download RAW message or body]

Hi Kevin,

Thanks for the reply. Yes, you're correct. After removing snapshots the
expand was fine. The think I forgot to do was "evms_activate" again before
issuing evms command again. After I did another "evms_activate" then the
expand was fine.

Thanks,

Ken

-----Original Message-----
From: Kevin Corry [mailto:kevcorry@us.ibm.com]
Sent: Wednesday, November 17, 2004 7:59 AM
To: evms-devel@lists.sourceforge.net; ken.hwang@zyxel.com
Subject: Re: [Evms-devel] expand EVMS volume after taking snapshots


Hi Ken,

Sorry for the late reply. Sometimes posts on the mailing list fall through
the
cracks. :(

On Wednesday 10 November 2004 10:35 pm, Ken Hwang wrote:
> Hi,
>
> I met a problem while trying to expand a EVMS volume after taking
> snapshots. Before taking snapshots I expanded the volume several times
> successfully. The EVMS version is 2.3.4, Linux kernel is 2.4.27 with evms
> patch, FS is XFS although I think there is nothing to do with it.
>
> configuration: 3x disks (sdb, sdc, sdd) configured with software raid-5:
5
> small raid-5 as md0 - md4 as external log devices due to a problem when
> remounting xfs. A big raid-5 region md5 (40GB) in "Default Container",
> created 5 regions on the container for various volumes. 80% (32GB) is for
> "Default Volume region" and mounted as "/data" with
> options -orw,nouuid,usrquota,logdev=/md/md0, almost 20% of the container
> (8GB) is reserved for snapshot space although "/snapshots" mount on a 64MB
> region in the same container. Anyway, there is a region in the container
> "lvm/Default Container/Freespace" is about 8GB at the beginning. I can
> write/read files in the /data directory without any problem. Reboot and
> remount without any problem.
>
> Then I expand the "/data" volume with EVMS CLI, I expanded the "/data"
> volume by:
> creating 10GB segments from sdb, sdc, sdd freespace2 and got sdb11, sdc11,
> sdd11
> creating raid-5 with sdb11, sdc11, sdd11 and form md6, and its size is
> 9.99GB
> expanding "Default Container" with md6
> expanding "Default Volume region" with size=9.99GB
> exit EVMS and use "df" command to check the "/data" size and see it grows
> correctly
>
> I did the similar steps with different segment size from 3GB to 5GB
> successfully for another 3 times to make sure the procedure was fine.
>
> Then I created snapshots with EVMS and verified the snapshot image was
> mounted corrected in "/snapshots/snap1/200411101350/"
> I reboot and verified all the volumes (including snapshot image) were
> remounted correctly. Then I repeated the expanding procedure and failed at
> expanding region. The command I used:
> e: "lvm/Default Container/Default Volume region", add_size=9.99GB
> The error message is: "A command line parameter was not valid."

Currently, EVMS does not support expanding a volume while it is being
snapshotted. There are just too many difficulties in coordinating the resize
between the snapshot plugin and the underlying plugin, and in getting the
reactivation sequence correct.

> Did anyone have this problem? What did I do wrong? Or it's a known bug. I
> remove the snapshot in EVMS and tried to expand the /data volume again but
> it still failed with same way. Can anyone give me advice please?

You say the expand of /data failed after removing the snapshot. Did you
completely delete all snapshot objects attached to that origin volume? Once
all the snapshots are gone, there shouldn't be any problem expanding the
origin again.

--
Kevin Corry
kevcorry@us.ibm.com
http://evms.sourceforge.net/
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.769 / Virus Database: 516 - Release Date: 9/24/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.769 / Virus Database: 516 - Release Date: 9/24/2004




-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Evms-devel mailing list
Evms-devel@lists.sourceforge.net
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic