How do I remove hot spares from a storage pool in solaris zfs?



  • # zpool status test_pool
    pool: test_pool
    state: ONLINE
    scrub: none requested
    config:
    NAME STATE READ WRITE CKSUM
    test_pool ONLINE 0 0 0
    mirror ONLINE 0 0 0
    c1t1d0 ONLINE 0 0 0
    c2t1d0 ONLINE 0 0 0
    spares
    c1t3d0 AVAIL
    c2t3d0 AVAIL
    
    # zpool remove test_pool c2t3d0
    
    # zpool status test_pool
    pool: test_pool
    state: ONLINE
    scrub: none requested
    config:
    NAME STATE READ WRITE CKSUM
    test_pool ONLINE 0 0 0
    mirror ONLINE 0 0 0
    c1t1d0 ONLINE 0 0 0
    c2t1d0 ONLINE 0 0 0
    spares
    c1t3d0 AVAIL
    

    A hot spare cannot be removed if it is currently used by the storage pool.



© Lightnetics 2024