Page 1 of 1

Problems replacing defektive drive

Posted: 14 Jun 2014 00:22
by aklausen
Hello there
i have a defektive drive in my zfs pool, i have tryed befor repalcing one drive byt this time something wend wrong :-(

i followed this guide : http://wiki.nas4free.org/doku.php?id=faq:0149

but i cant get it to replace the disc because is say it is apart of the pool
it looks like fore me that the disc is in the pool two times.

the pool is 6 3tb disk (da1,da2,da3,da4,da5,da6) but now it is (da1,da2,da3,10222357609400732557,da4,da5) if i run zpool status. i get this

Code: Select all

nas4free: ~ # zpool status DOWNLOAD
  pool: DOWNLOAD
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: scrub in progress since Fri Jun 13 23:51:26 2014
        209G scanned out of 5.49T at 312M/s, 4h56m to go
        0 repaired, 3.71% done
config:

        NAME                      STATE     READ WRITE CKSUM
        DOWNLOAD                  DEGRADED     0     0     0
          raidz1-0                DEGRADED     0     0     0
            da1                   ONLINE       0     0     0
            da2                   ONLINE       0     0     0
            da3                   ONLINE       0     0     0
            10222357609400732557  UNAVAIL      0     0     0  was /dev/da4
            da4                   ONLINE       0     0     0
            da5                   ONLINE       0     0     0

errors: No known data errors
and if i run zdb to see disk info i get this:

Code: Select all

nas4free: ~ # zdb
DATA:
    version: 5000
    name: 'DATA'
    state: 0
    txg: 113069
    pool_guid: 1408243597195426874
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 1408243597195426874
        children[0]:
            type: 'raidz'
            id: 0
            guid: 1420543425322427866
            nparity: 1
            metaslab_array: 33
            metaslab_shift: 36
            ashift: 9
            asize: 12002346663936
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 14062408865436588748
                path: '/dev/da0'
                phys_path: '/dev/da0'
                whole_disk: 1
                DTL: 37
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 1991121472142802270
                path: '/dev/da6'
                phys_path: '/dev/da6'
                whole_disk: 1
                DTL: 40
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 8709413293498937707
                path: '/dev/da7'
                phys_path: '/dev/da7'
                whole_disk: 1
                DTL: 39
                create_txg: 4
    features_for_read:
DOWNLOAD:
    version: 5000
    name: 'DOWNLOAD'
    state: 0
    txg: 213865
    pool_guid: 14241869738445358796
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 14241869738445358796
        children[0]:
            type: 'raidz'
            id: 0
            guid: 2420717276652851133
            nparity: 1
            metaslab_array: 33
            metaslab_shift: 37
            ashift: 9
            asize: 18003528253440
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 11386833744806788542
                path: '/dev/da1'
                phys_path: '/dev/da1'
                whole_disk: 1
                DTL: 91
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 10360934485846903865
                path: '/dev/da2'
                phys_path: '/dev/da2'
                whole_disk: 1
                DTL: 90
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 11923093882289377487
                path: '/dev/da3'
                phys_path: '/dev/da3'
                whole_disk: 1
                DTL: 89
                create_txg: 4
            children[3]:
                type: 'disk'
                id: 3
                guid: 10222357609400732557        [b]<- THIS IS THE DISK SHOWING UNAVIL[/b]
                path: '/dev/da4'
                phys_path: '/dev/da4'                  [b] <- DA4[/b]
                whole_disk: 1
                not_present: 1
                DTL: 83
                create_txg: 4
            children[4]:
                type: 'disk'
                id: 4
                guid: 6549040205106080823
                path: '/dev/da4'
                phys_path: '/dev/da4'                    [b]<- BUT DA4 IS HERE[/b]
                whole_disk: 1
                DTL: 88
                create_txg: 4
            children[5]:
                type: 'disk'
                id: 5
                guid: 15116131179497552776
                path: '/dev/da5'
                phys_path: '/dev/da5'
                whole_disk: 1
                DTL: 87
                create_txg: 4
    features_for_read:
Please help i dont know how to get DA4 back online :-(

/aklausen

Re: Problems replacing defektive drive

Posted: 14 Jun 2014 00:27
by aklausen
forgot to ask do you need a config.xml file ?

Re: Problems replacing defektive drive

Posted: 14 Jun 2014 01:32
by aklausen
maybe i solved it :-) zpool replace DOWNLOAD da4 da8