SUMMARY: Volume Manager breaking and resyncing mirrors

From: Thomas Wong (Thomas.Wong@ci.seattle.wa.us)
Date: Fri Dec 10 1999 - 14:35:57 CST


Thanks goes out to John Stoffel and Roger Leonard for their solutions. They've each provided a step-by-step listing of how they would go about this. I will attach their suggestions below. Thanks again to you both!

............................................................................................................

Original Question:

Hi all. We're trying to do the following in our test lab. On a server with
a mirrored setup using volume manager, we'd like to temporarily break the
mirror, run our test program on the active volume.

If the test is successful, we'd like to reattach the mirror and sync it back
up to the active volume.
If the test fails, then we'd like to reattach the mirror and have the
contents of the mirror volume sync onto the active volume which failed.

I've checked the Volume Manager manuals, searched in docs.sun.com, search
through the sun-managers archive and couldn't find any materials for
breaking mirrors, reattaching mirrors and controlling the direction of
syncing. Does anyone know if this is possible? If so, how would you do it?
via vx commands or gui? Thanks.

............................................................................................................

John Stoffel <john@casc.com> writes:

Here's what I'd do to make this happen properly:

1. break the mirror
2. make a new volume with the quiet plex
3. mount the new volume.
4. run your tests.

If the tests are bad:

5. unmount new volume
6. break off the plexes
7. re-attach them to the original volume
8. delete the new volume

If the tests are GOOD:

5. umount the new volume
6. unmount the old volume.
7, mount the new volume to the old mount point
8. disassociate the old plexes from the old volume
9. attach those plexes to the new volume
10 delete the original volume

............................................................................................................

"Leonard, Roger" <rleonard@cvty.com> writes:

the easiest way to mirror is to attach a plex to a volume containing the
data you wish to mirror. Perhaps some Veritas Guru would do it differently
but here is how I would do it.

Detach the static plex from the volume
# vxplex -gdiskgroup dis plexname

Run the test and determine status.
if successful then attach the detached plex to the volume.
# vxplex -gdiskgroup att volname plexname

if not delete the old volume and create a new volume with the static plex
and then attach the detached plex to the new volume.
# vxplex -gdiskgroup dis plexname
# vxvol -gdiskgroup set len=0 old_volname
# vxedit -gdiskgroup rm old_volname
# vxmake -gdiskgroup vol new_volname plex=static_plex_name usetype=fsgen
start_ops=norecover
# vxvol -gdiskgroup start new_volname
# vxplex -gdiskgroup att detached_plexname

hope this works



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:34 CDT