SUMMARY: DiskSuite Mirror Failure Testing

From: Urie, Todd <>
Date: Tue May 28 2002 - 13:23:26 EDT
Thanks to the following people:

Darren Moulding
Tom Payerle
Pierre Zimmermann

The following suggestions were offered:


The metaoffline command effectively fails the disk slice in question.  I am
not sure how convincing a test that is, of course.

Removing even hot swappable disks from a system before the system denotes
drives as "failed" can cause hardware damage, or so I have been told.
done it a few times before learning of this, I believe it is one of those
time in a hundred or more type things, but worth bearing in mind.

When I wished to test my disksuite mirroring, I offlined all partitions then
pulled the disk, which was a reasonably good test in my opinion.  Not
the disks would be even better, but chances are the OS could tell a disk
(and presumably would automatically offline it), and the (albeit small) risk
of HW damage was enough to drop that idea.

As for SNMP traps, I believe this is done in conjuntion with another
I just use a cron job running metastat and looking for any suboptimal

Tom Payerle


Hi Todd,
try cfgadm_scsi or cfgadm_pci to remove a disk from your system (see man
pages of cfgadm)
e.g.: cfgadm -x replace_drive c0::dsk/c0t0d0
or cfgadm -cf disconnect c0::dsk/c0t0d0

be sure that you have also created a boot record on the second disk, if the
first one is your boot disk!
e.g.:  installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk
and enter this as an alternative boot disk (second boot device) in the boot

for logging we use syslog, disksuite writes its messages to syslog.


PS: there are already some usefull scripts:


> When I have two disks mirrored, is there anyway that I can simulate a
> failure of one of them, short of just pulling the cable on one of the

Nuke the VTOC on the mirrored disk ;) 

> Also, I thought that I read somewhere that DiskSuite will send SNMP traps
> failure, however, I can't seem to find where I read that.  Is this true?
> so, can someone point me to the docs?

yep. Disksuite can send snmp traps when shit happens. The mib is kinda 
limited in scope but it'll do the job.






A little slow with this reply, but you never know you may not have got this
solution yet.

You could
fmthard -s /dev/null /dev/rdsk/cxtxdxs2

(this should blat the contents of the disk in question, failing the mirror)

Then use
metareplace -e dxx /dev/rdsk/cxtxdxs2 (your original mirror and disk)

Darren Moulding

PS I recommend you test on non live data 1st

Todd Urie
Unix Support Specialist
610-680-2231 Direct
sunmanagers mailing list
Received on Tue May 28 13:37:01 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:44 EST