Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX 5.3, splitvg

Status
Not open for further replies.
Apr 12, 2006
4
US
I have done the following:

1- extendvg nvg64 hdisk4 hdisk5
2- mirrorvg nvg64


syncd has been running correctly and all is syncd
UID PID PPID C STIME TTY TIME CMD
root 29030 1 0 May 17 - 28:58 /usr/sbin/syncd 60

thebrain:root:/:# lsvg -l vg64
vg64:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
nfslv64 jfs2 13002 13002 6 open/syncd /flo164

***
Now I want to split the mirror vg so I can mount it as another FS and perform a backup.


The problem:

SPLITvg does NOT split the mirror it just hangs..

Has anyone or anyone doing this successfully?

Goal:

Have a mirror vg or lv( at this point), split the mirror, mount the mirrors, perform a backup , unmount the mirror, joinvg or lv's, syncvg or lv's

Thanks
 
I got the following information from this link:

Code:
Split a Mirrored Disk from a Volume Group
Beginning with AIX 5.2, snapshot support helps you protect the
consistency of your mirrored volume groups from potential disk failure.
Using the snapshot feature, you can split off a mirrored disk or disks
to use as a reliable (from the standpoint of the LVM metadata)
point-in-time backup of a volume group, and, when needed, reliably
reintegrate the split disks into the volume group. In the following
procedure, you first split off a mirrored disk from a volume group and
then you merge the split-off disk into the original volume group. To
further ensure the reliability of your snapshot, file systems must be
unmounted and applications that use raw logical volumes must be in a
known state (a state from which the application can recover if you need
to use the backup).

A volume group cannot be split if any one of the following is true:

A disk is already missing. 
The last non-stale partition would be on the split-off volume group. 
Any stale partitions exist in the volume group, unless you use the force
flag (-f) with the splitvg command.
Furthermore, the snapshot feature (specifically, the splitvg command)
cannot be used in enhanced or classic concurrent mode. The split-off
volume group cannot be made concurrent or enhanced concurrent and there
are limitations to the changes allowed for both the split-off and the
original volume group. For details, read the chvg command description in
AIX 5L Version 5.2 Commands Reference.

Ensure that the volume group is fully mirrored and that the mirror
exists on a disk or set of disks that contains only this set of mirrors.

To enable snapshot support, split off the original volume group (origVG)
to another disk or set of disks, using the following command: 
splitvg origVG
At this point, you now have a reliable point-in-time backup of the
original volume group. Be aware, however, that you cannot change the
allocation on the split-off volume group. 
Reactivate the split-off disk and merge it into the original volume
group using the following command: 
joinvg origVG
At this point, the split-off volume group is now reintegrated with the
original volume group.

try this (AIX Split-Mirror backups )


To split two lvs use splitlvcopy


To split off a mirrored copy of the /home/xyz file system to a new mount
point named /jfsstaticcopy, type the following:

chfs -a splitcopy=/jfsstaticcopy /home/xyz

You can control which mirrored copy is used as the backup by using the
copy attribute. The second mirrored copy is the default if a copy is
not specified by the user. For example:

chfs -a splitcopy=/jfsstaticcopy -a copy=1 /home/xyz

At this point, a read-only copy of the file system is available in
/jfsstaticcopy. Any changes made to the original file system after the
copy is split off are not reflected in the backup copy.


Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top