AIX Tip : Restore mirrored mksysb to single disk system - Not Yet User

Jan 14, 2007 - Altouth, in AIX 5L, there is one functionality (bug?) that can be a problem when restoring : When a system backup is done while the system disk ...
3KB taille 17 téléchargements 467 vues
AIX Tip : Restore mirrored mksysb to single disk system (Jan 14, 2007 at 02:01 PM) - Contributed by Adam - Last Updated (Jan 14, 2007 at 06:15 PM)

IBM AIX has a software facility to make system backup (mksysb) easily. This software is the mksysb program. You can use it in a Network Installation Manager (NIM) environnement or in a standalone system with a mass storage media (DVD-RAM, Tape Streamer, etc ...).

Altouth, in AIX 5L, there is one functionality (bug?) that can be a problem when restoring : When a system backup is done while the system disk (rootvg's physical volumes) are soft mirrored by AIX (mirrorvg, mkcopylv) you can only restore this rootvg on the same number of physical volumes. (eg. If you source system have two disk mirrored by AIX, you can only restore it on a system that have two disks).

This is because mksysb restore faclity use a description file of volumes metadatas (vgdata file).

In a NIM environment, you have the ability to specify a vgdata file for a specific system to restore. The idea is to generate a vgdata file, modify PV number and PP/LP usage, write a vgdata file, insert it in a nim restore operation and you can restore on a system that have only one disk.

- To generate a vgdata file : (it will generate a /image.data file that we will need to move)

mkvgdata rootvg

- Use now this little perl script to removes COPIES and adjust LP/PP sections to 1 copy (not mirrored) :

perl ./unmirror_vgdata.pl > /export/my_file.vgdata

- Now you can use SMIT to declare the ressource and use it.

smitty nim - Administration Tasks - Ressources Tasks - Define a ressource http://adam.marie.free.fr/cms - Not Yet User Friendly

Powered by Mambo

Generated:29 September, 2018, 13:51

- Define a "bosinst.data" ressource type.

To use it, when you perform a mksysb install with the nim, specify the bosinst.data ressource you defined last step. It should now restore on single disk system.

http://adam.marie.free.fr/cms - Not Yet User Friendly

Powered by Mambo

Generated:29 September, 2018, 13:51