×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

zfs zpool issue

zfs zpool issue

zfs zpool issue

(OP)
I had a zpool spare disk that failed and was replaced.

  pool: diskpool01
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        diskpool01  ONLINE       0     0     0
          raidz2    ONLINE       0     0     0
            c0t0d0  ONLINE       0     0     0
            c1t0d0  ONLINE       0     0     0
            c4t0d0  ONLINE       0     0     0
            c6t0d0  ONLINE       0     0     0
            c7t0d0  ONLINE       0     0     0
            c5t1d0  ONLINE       0     0     0
            c0t1d0  ONLINE       0     0     0
          c0t7d0    ONLINE       0     0     0
        spares
          c0t7d0    UNAVAIL    cannot open
          c5t7d0    AVAIL   
          c4t7d0    AVAIL   

errors: No known data errors

The disk was physically replaced and is shared among other zfs pools.  In my attempts to replace it I ended up running zpool remove diskpool01 c0t7d0 because my attempts at running zpool detach, zpool replace, etc. failed.

After removing it from the zfs pools I meant to add it back as a spare to each of the pools, but I mistyped and forgot to put spare on the line, so I ran:

zpool add -f diskpool01 c0t7d0

Now I have a diskpool that is 500 GB larger than it was before.  I need to remove the disk from that zpool and add it back as a spare.

Any help would be greatly appreciated.

Thanks,

John

RE: zfs zpool issue

Hi John,

Follow the below procedure


zpool offline diskpool01 c0t7d0


zpool status --> verify disk is offline or not



zpool detach diskpool01 c0t7d0

zpool status

zpool add -f diskpool01 spare c0t7d0 --> add disk c0t7d0 as spare to pool diskpool01.

If you have any questions plz let me know.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close