This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Need assistance repairing ZFS pool after failed drive [SOLVED]

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
antstar
NewUser
NewUser
Posts: 3
Joined: 10 Jan 2015 12:15
Status: Offline

Need assistance repairing ZFS pool after failed drive [SOLVED]

Post by antstar »

Ok, so I have looked through many of the posts here and googled how to replace a drive. Unfortunately, none of what I have found is working for me, possibly because I used the "Import disks" button in the Management->Disks tab before I really knew what I should be doing....

What I now have in that tab looks like this:

da0 2861589MB ATA ST3000DM001-9YN1 CC4H ST3000DM001-9YN166 Z1F1NMM5 Always on ZFS storage pool device ONLINE Edit disk Delete disk
da1 2861589MB ATA ST3000DM001-9YN1 CC4H ST3000DM001-9YN166 Z1F1NMPL Always on ZFS storage pool device ONLINE Edit disk Delete disk
da2 2861589MB ATA ST3000DM001-9YN1 CC4H ST3000DM001-9YN166 Z1F1NMNG Always on ZFS storage pool device ONLINE Edit disk Delete disk
da3 2861589MB ATA ST3000DM001-9YN1 CC4H ST3000DM001-9YN166 Z1F1NMRG Always on ZFS storage pool device ONLINE Edit disk Delete disk
da4 2861589MB ATA ST3000DM001-9YN1 CC4H ST3000DM001-9YN166 Z1F1MCVN Always on ZFS storage pool device ONLINE Edit disk Delete disk
da5 2861589MB ATA ST3000DM001-9YN1 CC4H ST3000DM001-9YN166 Z1F1NN58 Always on ZFS storage pool device ONLINE Edit disk Delete disk
da6 2861589MB ATA ST3000DM001-9YN1 CC4H ST3000DM001-9YN166 Z1F1NN34 Always on ZFS storage pool device ONLINE Edit disk Delete disk
da7 2861589MB ATA ST3000DM001-1CH1 CC29 ST3000DM001-1CH166 Z1F5RQ6H Always on Unknown or unformatted ONLINE Edit disk Delete disk
da8 3819MB SanDisk Cruzer Edge 1.20 SanDisk Cruzer Edge 1.20 200429061318E7B25E0A Always on UFS ONLINE

But I can't figure out how to make the ZFS pool recognise that the new disk belongs using the add or replace commands. If anyone could give me a suggestion as to what is needed to fix this I would be most appreciative.

Some more information: the pool contains one virtual device, which now contains only disks d0-d6.
Last edited by antstar on 12 Jan 2015 13:00, edited 1 time in total.

torf74
NewUser
NewUser
Posts: 9
Joined: 22 Oct 2012 05:48
Status: Offline

Re: Need assistance repairing ZFS pool after failed drive

Post by torf74 »

What is the output of the command:

Code: Select all

zpool status {poolname}

antstar
NewUser
NewUser
Posts: 3
Joined: 10 Jan 2015 12:15
Status: Offline

Re: Need assistance repairing ZFS pool after failed drive

Post by antstar »

Output is as follows:

$ zpool status MEDIA
pool: MEDIA
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: none requested
config:

NAME STATE READ WRITE CKSUM
MEDIA DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
da0.nop ONLINE 0 0 0
13323622461083168577 UNAVAIL 0 0 0 was /dev/da1.nop
da1.nop ONLINE 0 0 0
da2.nop ONLINE 0 0 0
da3.nop ONLINE 0 0 0
da4.nop ONLINE 0 0 0
da5.nop ONLINE 0 0 0
da6.nop ONLINE 0 0 0

errors: No known data errors

Also, I still have the failed drive should there be any need to reattach it then replace it again

torf74
NewUser
NewUser
Posts: 9
Joined: 22 Oct 2012 05:48
Status: Offline

Re: Need assistance repairing ZFS pool after failed drive

Post by torf74 »

It has been a long time since I did this, but if memory serves try using the number for the old device when doing the replacement.

It looks like da7 is unformatted. First clean and format that drive for ZFS. I assume you are installing the replacement drive in the same physical location.

Then try

Code: Select all

zpool replace MEDIA 13323622461083168577
If that doesn't work, then try

Code: Select all

zpool replace MEDIA 13323622461083168577 da7

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Need assistance repairing ZFS pool after failed drive

Post by b0ssman »

Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

antstar
NewUser
NewUser
Posts: 3
Joined: 10 Jan 2015 12:15
Status: Offline

Re: Need assistance repairing ZFS pool after failed drive

Post by antstar »

Thanks guys.

It is now resilvering.

One more problem I encountered (and how I fixed it): The disk was not able to be selected in the Format menu, so I deleted the new disk and re-imported it with ZFS format. It automatically joined the virtual device and I was then able to use zpool replace.

Post Reply

Return to “ZFS (only!)”