On Mon, November 23, 2009 12:42, Eric D. Mudama wrote:
> On Mon, Nov 23 at  9:44, sundeep dhall wrote:
>>All,
>>
>>I have a test environment with 4 internal disks and RAIDZ option.
>>
>>Q) How do I simulate a sudden 1-disk failure to validate that zfs / raidz
>> handles things well without data errors
>>
>>Options considered
>>1. suddenly pulling a disk out
>>2. using zpool offline
>>
>>I think both these have issues in simulating a sudden failure
>
> What is more sudden than yanking a live disk out when the system is
> under load?  Maybe cut the non-wall end off a 120V power code, and
> touch the exposed wiring to your drive's circuit board?

>From a testing point of view, the safe assumption is that pulling a drive
from hot-swap is not necessarily the same thing as that drive failing
while mounted.

> (don't try this at home without a good fire suppression system and eye
> protection)

Use insulated pliers, too.

> If you're really looking to shave a few milliseconds off the time to
> fail, maybe build a digital toggle switch of some kind that will short
> the Tx+/- pair inside your sata data cable?

Or modify a driver to do fault insertion.

No, I wouldn't bother with that level of testing when qualifying products
for my own purchase.
-- 
David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to