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

how to fail a mirrored disk for testing ? 1

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
Hi,

I have 2 system disks,one of them mirrored.

For testing the mirroring procedure we have made- I'd like to cause one of the disks to fail ,without removing them physically (6F1 machine).

I was thinking of "dd" into it,but I think it will fail both disks.

Any ideas ? "Long live king Moshiach !"
h
 
why don't you just change the bootlist so that the system boots off the mirror copy .
 
Thanks,but

My idea is how to simulate the "close-to-real-life" situation,when the disk developes hdisk errors in errpt DURING the operation. "Long live king Moshiach !"
h
 
How about splitting off the mirror copy ,using chlvcopy this will test whether the mirror copy can be accessed , split and the re-mounted and check if the data is still there atthe time of the split.

The only other real test would be to physical remove the disk
 
I think you should pull the cable. Best test there is. Hope you have a backup. ;) IBM Certified -- AIX 4.3 Obfuscation
 
Shedule Downtime ;->
When the 6F1 has hotplug Disk remove the Disk.
Other ways are:
lspv -l hdisk0
lspv -l hdisk1
When both shows the same number of pps and the lsvg -l VGNAME is in syncd state
the mirror will be ok.

another good way is to boot from the copy.

Experimantel ways are:

When you are a ODM Hacker you can delete the Disk in the ODM ( backup bevore ! )

Splitlvcopy will be a good Command to show the state of a FS, but you are loosing the mirror when you test the splilvcopy ;->

DD is not a good, because the PVID will be also copied.

You can delete the VGDA with dd ( firts Block )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top