Albert Chin
2009-Sep-06 08:10 UTC
[zfs-discuss] zpool replace complete but old drives not detached
$ cat /etc/release Solaris Express Community Edition snv_114 X86 Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 04 May 2009 I recently replaced two drives in a raidz2 vdev. However, after the resilver completed, the old drives were not automatically detached. Why? How do I detach the drives that were replaced? # zpool replace tww c6t600A0B8000299966000005B04668F17Dd0 \ c6t600A0B8000299CCC0000099B4A400A9Cd0 # zpool replace tww c6t600A0B8000299966000005C24668F39Bd0 \ c6t600A0B8000299CCC00000A744A94F7E2d0 ... resilver runs to completion ... # zpool status tww pool: tww state: DEGRADED status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://www.sun.com/msg/ZFS-8000-8A scrub: resilver completed after 25h11m with 23375 errors on Sun Sep 6 02:09:07 2009 config: NAME STATE READ WRITE CKSUM tww DEGRADED 0 0 207K raidz2 ONLINE 0 0 0 c6t600A0B8000299966000005964668CB39d0 ONLINE 0 0 0 c6t600A0B8000299CCC000006C84744C892d0 ONLINE 0 0 0 c6t600A0B8000299CCC000005B44668CC6Ad0 ONLINE 0 0 0 c6t600A0B8000299966000005A44668CC3Fd0 ONLINE 0 0 0 c6t600A0B8000299CCC000005BA4668CD2Ed0 ONLINE 0 0 0 c6t600A0B8000299966000005AA4668CDB1d0 ONLINE 0 0 0 c6t600A0B80002999660000073547C5CED9d0 ONLINE 0 0 0 raidz2 DEGRADED 0 0 182K replacing DEGRADED 0 0 0 c6t600A0B8000299966000005B04668F17Dd0 DEGRADED 0 0 0 too many errors c6t600A0B8000299CCC0000099B4A400A9Cd0 ONLINE 0 0 0 255G resilvered c6t600A0B8000299CCC0000099E4A400B94d0 ONLINE 0 0 218K 10.2M resilvered c6t600A0B8000299CCC00000A6B4A93D3EEd0 ONLINE 0 0 242 246G resilvered spare DEGRADED 0 0 0 c6t600A0B8000299CCC000005CC4668F30Ed0 DEGRADED 0 0 3 too many errors c6t600A0B8000299CCC000005D84668F448d0 ONLINE 0 0 0 255G resilvered spare DEGRADED 0 0 0 c6t600A0B8000299966000005BC4668F305d0 DEGRADED 0 0 0 too many errors c6t600A0B8000299966000005C84668F461d0 ONLINE 0 0 0 255G resilvered c6t600A0B8000299966000009EE4A89DA51d0 ONLINE 0 0 0 246G resilvered replacing DEGRADED 0 0 0 c6t600A0B8000299966000005C24668F39Bd0 DEGRADED 0 0 0 too many errors c6t600A0B8000299CCC00000A744A94F7E2d0 ONLINE 0 0 0 255G resilvered raidz2 ONLINE 0 0 233K c6t600A0B8000299CCC00000A154A89E426d0 ONLINE 0 0 0 c6t600A0B8000299966000009F74A89E1A5d0 ONLINE 0 0 758 6.50K resilvered c6t600A0B8000299CCC00000A174A89E520d0 ONLINE 0 0 311 3.50K resilvered c6t600A0B8000299966000009F94A89E24Bd0 ONLINE 0 0 21.8K 32K resilvered c6t600A0B8000299CCC00000A694A93D322d0 ONLINE 0 0 0 1.85G resilvered c6t600A0B8000299CCC00000A0C4A89DDE8d0 ONLINE 0 0 27.4K 41.5K resilvered c6t600A0B8000299966000009F04A89DB1Bd0 ONLINE 0 0 7.13K 24K resilvered spares c6t600A0B8000299CCC000005D84668F448d0 INUSE currently in use c6t600A0B8000299966000005C84668F461d0 INUSE currently in use c6t600A0B800029996600000A454A93CEDBd0 AVAIL c6t600A0B800029996600000ADA4A9CF2EDd0 AVAIL -- albert chin (china at thewrittenword.com)