Nicolas Szalay
2008-Feb-13 16:10 UTC
[zfs-discuss] add/replace : strange zfs pool behaviour
Hi everybody; I''m experimenting something weird on one of my zpool. One of my hard drive failed (c3t3d0). The hot spare (c4t3d0) did its job, I (physically) replaced it, and rebooted. I have acknowledged the failure with fmadm too. I now have this zpool config : $ zpool status storage pool: storage state: ONLINE scrub: resilver completed with 0 errors on Wed Feb 13 16:45:30 2008 config: NAME STATE READ WRITE CKSUM storage ONLINE 0 0 0 raidz1 ONLINE 0 0 0 c3t2d0 ONLINE 0 0 0 c4t3d0 ONLINE 0 0 0 c7t2d0 ONLINE 0 0 0 c7t3d0 ONLINE 0 0 0 I seethe disk with the "format" command : $ sudo format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c1d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 63> /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0 1. c2d0 <ST350083- 9QG2T9Y-0001-465.76GB> /pci at 0,0/pci-ide at 1f,2/ide at 1/cmdk at 0,0 2. c3t0d0 <Seagate-ST3500830AS-R001-465.76GB> /pci at 0,0/pci8086,25f7 at 2/pci8086,350c at 0,3/pci8086,335 at 1/pci17d3,1110 at e/sd at 0,0 3. c3t1d0 <Seagate-ST3500630AS-R001-465.76GB> /pci at 0,0/pci8086,25f7 at 2/pci8086,350c at 0,3/pci8086,335 at 1/pci17d3,1110 at e/sd at 1,0 4. c3t2d0 <Seagate-ST3500630AS-R001-465.76GB> /pci at 0,0/pci8086,25f7 at 2/pci8086,350c at 0,3/pci8086,335 at 1/pci17d3,1110 at e/sd at 2,0 5. c3t3d0 <Seagate-ST3500630AS-R001 cyl 56524 alt 2 hd 36 sec 480> /pci at 0,0/pci8086,25f7 at 2/pci8086,350c at 0,3/pci8086,335 at 1/pci17d3,1110 at e/sd at 3,0 6. c4t2d0 <Seagate-ST3500630AS-R001-465.76GB> /pci at 0,0/pci8086,25f7 at 2/pci8086,350c at 0,3/pci8086,335 at 2/pci17d3,1110 at e/sd at 2,0 7. c4t3d0 <Hitachi-HDS725050KLA360-R001-465.76GB> /pci at 0,0/pci8086,25f7 at 2/pci8086,350c at 0,3/pci8086,335 at 2/pci17d3,1110 at e/sd at 3,0 8. c7t0d0 <Seagate-ST3500630AS-R001-465.76GB> /pci at 0,0/pci8086,244e at 1e/pci8086,335 at 4/pci17d3,1110 at e/sd at 0,0 9. c7t1d0 <Seagate-ST3500630AS-R001-465.76GB> /pci at 0,0/pci8086,244e at 1e/pci8086,335 at 4/pci17d3,1110 at e/sd at 1,0 10. c7t2d0 <Seagate-ST3500630AS-R001-465.76GB> /pci at 0,0/pci8086,244e at 1e/pci8086,335 at 4/pci17d3,1110 at e/sd at 2,0 11. c7t3d0 <Seagate-ST3500630AS-R001-465.76GB> /pci at 0,0/pci8086,244e at 1e/pci8086,335 at 4/pci17d3,1110 at e/sd at 3,0 But I can''t insert it into the pool $ sudo zpool replace storage c4t3d0 c3t3d0 invalid vdev specification use ''-f'' to override the following errors: /dev/dsk/c7t3d0s0 is part of active ZFS pool storage. Please see zpool(1M). $ sudo zpool add storage c4t3d0 c3t3d0 invalid vdev specification use ''-f'' to override the following errors: /dev/dsk/c7t3d0s0 is part of active ZFS pool storage. Please see zpool(1M). Does anyone have a clue ? thanks. -- Nicolas Szalay Administrateur syst?mes & r?seaux -- _ ASCII ribbon campaign ( ) - against HTML email X & vCards / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080213/7023ff1d/attachment.bin>