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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rootvg mirroring 1

Status
Not open for further replies.

ouah

IS-IT--Management
Sep 30, 2002
8
0
0
FR
Hi,

I need to make a rootvg mirroring. Rootvg is on hdisk0 and i get the same disk (hdisk1 which is not affected to a vg). What's the best way to do it cleanly ?
Thank's

 
Can try the following script:

==============================
#!/bin/ksh
#
# ----------------------------------------------------------------------------
#
#
# Function: mirror hdisk0 to hdisk1
#
# ----------------------------------------------------------------------------

echo
echo …………… ‘cfgmgr’ will bring the second disk to available………

cfgmgr
echo
echo ................…. CHECKING THE size of BOOT DISK ......................

lsvg rootvg
echo
echo ............... CHECKING FOR SCSI-ID AND LOCATION ....................

lsdev -Cc disk
echo
echo ............. CHECKING that DESTINATION DISK IS bootable (1) .......
bootinfo -B hdisk1
echo
echo ...........……….. EXTEND rootvg on ADDITIONAL disk .................

extendvg rootvg hdisk1


echo ................…………….now MIRROR rootvg .............................

mirrorvg rootvg hdisk1


echo ............. RUNNING bosboot FOR BOOT DISK ..................



bosboot -a -d /dev/hdisk0
echo
echo ..............……… BOOTLIST WILL BE DEFINED NOW .........................



bootlist -m normal hdisk0 hdisk1


echo ................………. QUORUM will be changed to off ...........................


chvg -Q 'n' rootvg

echo ..................………… check final rootvg .........................

lsvg rootvg


echo ……….. …… SYSTEM MIRROR SUCCESSFUL ………….


STATUS=0
exit
"Long live king Moshiach !"
h
 
Why this command ?

bosboot -a -d /dev/hdisk0

Why does i need to recreate boot on /dev/hdisk0 ? It's not /dev/hdisk1 ? Please, can you explain me ?

rd
 
The general procedure I use is:

1) Make sure VG is ready (2 disks in VG, 1 of which is dead empty). Assume hdisk0 is the working copy, and everything is to be mirrored to hdisk1

2) Create mirrors of all LVs. Default LV restrictions should force 2nd copies onto the second disk. You will not be able to mirror the dumplv if you have one. Sync up.

3) bosboot to both hdisk0 and hdisk1. Maybe not necessary, but it never hurts.

4) Modify the bootlist.

5) Change rootvg, set quorum off.

Reboot. Step 5 is the step that requires a reboot to take effect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top