Ok, now I'm getting somewhere.

vault:/#dd if=/dev/zero of=/dev/dsk/c5t6d0 bs=512 count=64000
64000+0 records in
64000+0 records out
vault:/#dd if=/dev/zero of=/dev/dsk/c5t6d0 bs=512 count=64000 oseek=976174591
64000+0 records in
64000+0 records out
vault:/#zpool replace pool c5t6d0
vault:/#

Looks like I didn't do the steps in the right order before.  Zeroing out the 
first and last 32MB and immediately running a zpool replace worked.

vault:/#zpool status
  pool: pool
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scrub: resilver in progress, 54.48% done, 0h2m to go
config:

        NAME              STATE     READ WRITE CKSUM
        pool              DEGRADED     0     0     0
          raidz2          ONLINE       0     0     0
...
            c4t10d0       ONLINE       0     0     0
            c5t2d0        ONLINE       0     0     0
            replacing     DEGRADED     0     0     0
              c5t6d0s0/o  UNAVAIL      0     0     0  cannot open
              c5t6d0      ONLINE       0     0     0
            c5t10d0       ONLINE       0     0     0
...

[2 minutes later]

vault:/#zpool status
  pool: pool
 state: ONLINE
 scrub: resilver completed with 0 errors on Fri Jan  5 15:11:20 2007

Woohoo!

For the record, I got the block size from format <verify>:

format> verify

Volume name = <        >
ascii name  = <IFT-A24U-G2421-1-347G-465.51GB>
bytes/sector    =  512
sectors = 976238590
accessible sectors = 976238557
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to