[SOLVED] Having issues deleting and recreating zfs pool

Discussion in 'Storage & Backup' started by cyrax83, Apr 29, 2013.

  1. cyrax83

    cyrax83 Member

    Joined:
    Feb 5, 2005
    Messages:
    5,074
    Location:
    hurstville, sydney
    Had a 5 drive ZFS pool on raidz version 28 (solaris express 11). 1 drive died, 2 had SMART errors. Anyway finally got 3 replacement drives again.

    In napp-it, I tried to delete the pool (called micro2). It deleted and now no longer shows

    root@microserver2:~# zpool list micro2
    cannot open 'micro2': no such pool
    root@microserver2:~# zfs list micro2
    cannot open 'micro2': dataset does not exist
    root@microserver2:~#

    But when I try to create a new pool in napp-it called micro2 I get : "oops... pool /micro2 already exist!"

    How do I get rid of this damn pool so I can recreate it? I can't see it anywhere.
     
    Last edited: Apr 30, 2013
  2. Stanza

    Stanza Member

    Joined:
    Jun 27, 2001
    Messages:
    2,899
    Location:
    Adelaide
    What does zpool status show?

    .
     
  3. OP
    OP
    cyrax83

    cyrax83 Member

    Joined:
    Feb 5, 2005
    Messages:
    5,074
    Location:
    hurstville, sydney
    Doesn't show the micro2 pool, only rpool which is a separate OS drive

    pool: rpool
    state: ONLINE
    scan: none requested
    config:

    NAME STATE READ WRITE CKSUM
    rpool ONLINE 0 0 0
    c7t0d0s0 ONLINE 0 0 0

    errors: No known data errors
     
  4. klif-e

    klif-e Member

    Joined:
    Jun 26, 2001
    Messages:
    751
    Location:
    Melbourne, Victoria, Aust
    I wonder if rather than destroy'ing it, it has exported it?

    This would mean the pool still exists on disk, but is not active within Solaris.

    You could try a zpool import and see if it re-finds micro2.

    Then correctly do a zpool destroy micro2.

    If not I not sure why it would think the pool exists when it doesn't.
     
  5. OP
    OP
    cyrax83

    cyrax83 Member

    Joined:
    Feb 5, 2005
    Messages:
    5,074
    Location:
    hurstville, sydney
    Thanks, tried it but didn't work. Tried to create on command line with -f option and it worked :thumbup:

     

Share This Page

Advertisement: