1 Reply Latest reply: Oct 24, 2009 10:31 PM by 807567 RSS

    How do you remove/nuke an UNAVAIL spare from a zpool?

    807567
      I have two spares that are not available anymore (things moved, etc).
      I can't seem to nuke them.

      spares
      c3t14d0 UNAVAIL cannot open
      c3t29d0 UNAVAIL cannot open

      # uname -a
      SunOS mirror-1 5.10 Generic_138889-01 i86pc i386 i86pc

      bash-3.00# zpool remove local c3t14d0
      bash-3.00# zpool status local | tail
      c4t29d0 ONLINE 0 0 0
      c4t30d0 ONLINE 0 0 0
      c2t30d0 ONLINE 0 0 0
      c2t31d0 ONLINE 0 0 0
      spares
      c3t14d0 UNAVAIL cannot open
      c3t29d0 UNAVAIL cannot open
      c4t31d0 AVAIL

      errors: No known data errors
      bash-3.00# zpool detach local c3t14d0
      cannot detach c3t14d0: device is reserved as a hot spare
      bash-3.00# format < /dev/null | grep c3t14d0
      bash-3.00#

      Anyone have any ideas how to get rid of this thing?

      -Toby.
        • 1. Re: How do you remove/nuke an UNAVAIL spare from a zpool?
          807567
          hi toby,

          there is no direct way to do this. This is a known issue. The only supported way we could remove this last time was to make the spare disk available again and remove it with zpool remove commands.

          # zpool remove <pool_name> c2t3d0

          That work for us and we could safely remove it from zpool.

          Or you could just leave it there as no impact to your data and zpool config.

          Rgds