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!

Recover Replaced disks

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
fostersimported
NewUser
NewUser
Posts: 6
Joined: 04 Oct 2016 20:36
Status: Offline

Recover Replaced disks

Post by fostersimported »

HI All,

I have had my system running for 5 years. I have a ZFS pool Raidz1 x3 2TB WD Green disks. Apart from the the pool getting full, there were some SMART Errors so I replaced one disk at a time with a 4TB.

All was well until today where the system would not boot. one of the disks was causing a DMA error.

I want to recover the original disks. I have plugged them all in but the auto import does not work.

How to I import the 3 original disks ?

Cheers

kenZ71
Advanced User
Advanced User
Posts: 379
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: Recover Replaced disks

Post by kenZ71 »

If your trying to swap out one 4TB for a 2TB it won't work as ZFS will grow but not shrink.

If you pull all 4TB you might be able to import the pool from the 2TB but your data will be stale. Might be better to run the pool degraded for a few days until the failed drive is replaced.
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

fostersimported
NewUser
NewUser
Posts: 6
Joined: 04 Oct 2016 20:36
Status: Offline

Re: Recover Replaced disks

Post by fostersimported »

HI
I just want to reinstate the original disks (put the system back to what it was) before i replaced the disks.

The original setup was x3 RAIDZ1 2TB drives.

I removed one 2TB disk at a time replaced it with a 4TB Disk and replaced the disk in the GUI.
Once all three disks had been replaced I scrubed the pool, it was at this point one of the new 4TB drives failed (current pending sector over 300!)

So I pulled the 4TB drives and put the original 2TB back. But when I import the pool Nas4free does not find it.

How do I import the pool / disks ? I only have today to get it back online before i go away so no time to get another 4TB drive.
Cheers

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: Recover Replaced disks

Post by sleid »

zpool import -F nameofmypool
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

fostersimported
NewUser
NewUser
Posts: 6
Joined: 04 Oct 2016 20:36
Status: Offline

Re: Recover Replaced disks

Post by fostersimported »

Hi,

I backed up my config and have started from a clean setup. The original disks have been imported through 'HDD Managment'

But I cannot import the pool:

Code: Select all

nas4free: /# zpool import -F Zeus_Pool
cannot import 'Zeus_Pool': no such pool available
What next ? The data must still be on the disks as they were not plugged in to the system when they were replaced.
Thanks

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: Recover Replaced disks

Post by sleid »

zpool import
Should list the pools found regardless of their status.
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

fostersimported
NewUser
NewUser
Posts: 6
Joined: 04 Oct 2016 20:36
Status: Offline

Re: Recover Replaced disks

Post by fostersimported »

I know, that's what i cannot understand.
Is there any way to interrogate each disk to find out the status. Also when happens to the pool information when you run the replace command?

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: Recover Replaced disks

Post by sleid »

I have no other solution to offer you.

I have read your problem from the beginning.
You can not go back with the original hard drives because the ZFS data has been changed every time you change the hard disk.
The first 2 Tb hard drive changed has a zfs configuration with a configuration of 3 hard disks of 2 Tb
The second 2 Tb disk changed to a configuration with 2 hard disks of 2 Tb and one of 4 Tb
The third disk of 2 Tb has a configuration of 1 hard disk of 2 Tb and 2 of 4 Tb.
This gives 3 pool configuration so impossible to recover.
The only solution is to change the 4 Tb out of use to give life to the pool, besides you can unplug it and continue to use your nas but with a pool zfs degraded.
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

fostersimported
NewUser
NewUser
Posts: 6
Joined: 04 Oct 2016 20:36
Status: Offline

Re: Recover Replaced disks

Post by fostersimported »

Thanks for your support,

I purchased another drive in the end.

Cheers

Post Reply

Return to “ZFS (only!)”