The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    ZFS problem - drive wont online? Expert help needed.

    Discussion in 'Linux Compatibility and Software' started by masterchef341, Sep 20, 2013.

  1. masterchef341

    masterchef341 The guy from The Notebook

    Reputations:
    3,047
    Messages:
    8,636
    Likes Received:
    4
    Trophy Points:
    206
    I'm on Ubuntu 13.04, I've got native ZFS installed. I could explain the whole story at length, but I'll keep it short and post some command line results in hope of getting some help. I've been at this for a while =p

    Basically, I corrupted one of the drives in my ZFS pool accidentally. The pool was populated with drives by mount point name- like /dev/sdb, /dev/sdc, etc. I plugged in a USB flash drive to this system and it took over the mount point /dev/sdd and pushed my /dev/sdd ZFS drive to the /dev/sde position. This confused the hell out of ZFS, but didn't take down the raidz1 pool, which has one parity drive.

    The pool is still totally functional, but I want my parity drive to resilver. I've since changed the mapping to the absolute names for the drives, but after trying offlinining and onlining and wiping and zeroing several times, I just cant get ZFS to resilver this drive. Logs follow:

    ubuntu:~$ sudo zpool status -v
    pool: zstore
    state: DEGRADED
    status: One or more devices has been taken offline by the administrator.
    Sufficient replicas exist for the pool to continue functioning in a
    degraded state.
    action: Online the device using 'zpool online' or replace the device with
    'zpool replace'.
    scan: resilvered 7.62M in 0h0m with 0 errors on Wed Sep 18 21:58:27 2013
    config:


    NAME STATE READ WRITE CKSUM
    zstore DEGRADED 0 0 0
    raidz1-0 DEGRADED 0 0 0
    ata-WDC_WD20EZRX-00DC0B0_WD-WMC301543757 ONLINE 0 0 0
    ata-WDC_WD20EARS-00MVWB0_WD-WCAZA2142186 ONLINE 0 0 0
    ata-WDC_WD20EZRX-00D8PB0_WD-WMC4M0248743 OFFLINE 0 0 0


    errors: No known data errors
    ubuntu:~$ sudo zpool online zstore ata-WDC_WD20EZRX-00D8PB0_WD-WMC4M0248743
    warning: device 'ata-WDC_WD20EZRX-00D8PB0_WD-WMC4M0248743' onlined, but remains in faulted state
    use 'zpool replace' to replace devices that are no longer present
    ubuntu:~$ sudo zpool status -v
    pool: zstore
    state: DEGRADED
    status: One or more devices could not be used because the label is missing or
    invalid. Sufficient replicas exist for the pool to continue
    functioning in a degraded state.
    action: Replace the device using 'zpool replace'.
    see: ZFS Message ID: ZFS-8000-4J
    scan: resilvered 7.62M in 0h0m with 0 errors on Wed Sep 18 21:58:27 2013
    config:


    NAME STATE READ WRITE CKSUM
    zstore DEGRADED 0 0 0
    raidz1-0 DEGRADED 0 0 0
    ata-WDC_WD20EZRX-00DC0B0_WD-WMC301543757 ONLINE 0 0 0
    ata-WDC_WD20EARS-00MVWB0_WD-WCAZA2142186 ONLINE 0 0 0
    ata-WDC_WD20EZRX-00D8PB0_WD-WMC4M0248743 UNAVAIL 0 0 0


    errors: No known data errors
     
  2. masterchef341

    masterchef341 The guy from The Notebook

    Reputations:
    3,047
    Messages:
    8,636
    Likes Received:
    4
    Trophy Points:
    206
    Nevermind. I just forced it to replace with itself and it took it. I had been getting errors when trying to do this before.

    ubuntu:~$ sudo zpool replace -f zstore ata-WDC_WD20EZRX-00D8PB0_WD-WMC4M0248743

    ZFS is strange.

    <iframe width='420' height="315" src="//www.youtube.com/embed/GJY8jJkDoMY" frameborder='0' allowfullscreen=""></iframe>
     
    Last edited by a moderator: May 6, 2015
    katalin_2003 likes this.