I would try using hdadm or cfgadm to specifically offline devices out from 
under ZFS.

I have done that previously with cfgadm for systems I cannot physically access.
You can also use file backed storage to create your raidz and move, delete, 
overwrite the files to simulate issues.

Shawn


On Nov 23, 2009, at 1:32 PM, David Dyer-Bennet wrote:

> 
> On Mon, November 23, 2009 11: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
> 
> 3.  Use dd to a raw device to corrupt small random parts of the disks
> supporting the zpool.
> 
>> I think both these have issues in simulating a sudden failure
> 
> Probably now it's "all three"  :-(.
> 
> -- 
> 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

--
Shawn Ferry              shawn.ferry at sun.com
571.291.4898






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

Reply via email to