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!

replace disk in mirrored volume group

Status
Not open for further replies.

icahn

MIS
Apr 29, 2002
21
AU
Running AIX 4.3.3 on RS6000 H50. Physical volume hdisk3 needs to be replaced and I need commands to do this. The disk contains logical volume b01lv and is contained in mirrored volume group bvg0; the mirroring stores 2 copies of each LV. Filesystem is jfs.

Are these the correct commands for replacing disk and restoring the data on it?
1. rmlvcopy b01lv 1 hdisk3
2. reducevg bvg0 hdisk3
3. rmdev -l hdisk3 -d
4. insert new disk
5. run cfgmgr
6. extendvg bvg0 hdisk3
7. mklvcopy b01lv 2

Thanks.
 
icahn,

That is fine unless the disk is SSA??

You will want to add a last step to sync. the primary and secondary mirrored copies:

syncvg -l b01lv

And also, what about unmirroring the JFS log, if it is noy mirrored to hdisk3 then it should be.

Best of luck PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
Yes, the disks are SCSI, not SSA.
I was told that the mklvcopy would automatically sync the mirrored copies; how can I verify this?
The jfs log for this volume group is on another mirrored disk. Unfortunately no more free pp's to make a 3rd copy of the jfs log.


 
To verify this you can use "lsvg -l VG".

If the LV is mirrored - the number of thr PV will be double the number of LV per each LV. "Long live king Moshiach !"
 
icahn,

As far as verifying whether mklvcopy sync's by default or not, it doesn't unless used with the -k option. Here is an insert straight from the man pages on mklvcopy:

"The logical volume modified with this command uses the Copies parameter as its new copy characteristic. The data in the new copies are not synchronized until one of the following occurs: the -k option is used, the volume group is activated by the varyonvg command, or the volume group or logical volume is synchronized explicitly by the syncvg command. Individual logical partitions are always updated as they are written to."
Regards,
Chuck
 
If you do

lsvg -l VGNAME

you can look for "open/syncd" in the sixth column. "closed" means not mounted.
 

Yes, mklvcopy without the -k left the LV state=open/stale (should have checked the man page!). syncvg took 20min for the 9GB disk and changed it to open/syncd. Thanks for all the suggestions - the disk swap was sucessfull.

How long does it take to spin down a 10,000rpm disk? The green led did not stop flashing even after 10 min, so I unlatched and pulled it out since it was a bad disk anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top