I've just been trying to simulate a raidz array and see if I can generate some CKSUM errors at the upper-levels, by corrupting a single (virtual) drive. But so far I've not had any success. See below. Does anyone know the type/pattern of corruption that would cause upper-level CKSUM errors? Thanks Nigel Smith
# mkfile 128m /vdev/disk1 # mkfile 128m /vdev/disk2 # mkfile 128m /vdev/disk3 # zpool create test-raidz raidz1 /vdev/disk1 /vdev/disk2 /vdev/disk3 # zpool status test-raidz pool: test-raidz state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM test-raidz ONLINE 0 0 0 raidz1 ONLINE 0 0 0 /vdev/disk1 ONLINE 0 0 0 /vdev/disk2 ONLINE 0 0 0 /vdev/disk3 ONLINE 0 0 0 errors: No known data errors # zfs create test-raidz/data # cp -pr /usr/share/ghostscript/ /test-raidz/data # zpool list test-raidz NAME SIZE USED AVAIL CAP HEALTH ALTROOT test-raidz 370M 47.4M 323M 12% ONLINE - # zfs list -r test-raidz NAME USED AVAIL REFER MOUNTPOINT test-raidz 31.5M 183M 28.0K /test-raidz test-raidz/data 31.3M 183M 31.3M /test-raidz/data # dd if=/dev/urandom of=/vdev/disk2 bs=1024k count=64 conv=notrunc 64+0 records in 64+0 records out # zpool scrub test-raidz # zpool status test-raidz pool: test-raidz state: DEGRADED status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. see: http://www.sun.com/msg/ZFS-8000-9P scrub: scrub completed after 0h0m with 0 errors on Tue Jul 21 23:50:33 2009 config: NAME STATE READ WRITE CKSUM test-raidz DEGRADED 0 0 0 raidz1 DEGRADED 0 0 0 /vdev/disk1 ONLINE 0 0 0 /vdev/disk2 DEGRADED 0 0 1.19K too many errors /vdev/disk3 ONLINE 0 0 0 errors: No known data errors # zpool clear test-raidz # zpool status test-raidz pool: test-raidz state: ONLINE scrub: scrub completed after 0h0m with 0 errors on Tue Jul 21 23:50:33 2009 config: NAME STATE READ WRITE CKSUM test-raidz ONLINE 0 0 0 raidz1 ONLINE 0 0 0 /vdev/disk1 ONLINE 0 0 0 /vdev/disk2 ONLINE 0 0 0 15.7M repaired /vdev/disk3 ONLINE 0 0 0 errors: No known data errors -- This message posted from opensolaris.org _______________________________________________ storage-discuss mailing list storage-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/storage-discuss