How do I move from ZFS back to 3 mirrored drives?

fixit9660

Dabbler
Joined
Jan 14, 2018
Messages
33
I know this sounds crazy, but if you don't have the money, and I don't anymore, then I think it's what I must do to give myself some remaining backup facility.
A few years ago I installed FreeNAS 11 and had the money to replace hardware failure, but now I don't, and I believe I have two hard disks out of three with a failure.
I was only receiving HD error reports:
Device: /dev/ada1, 272 Offline uncorrectable sectors
Device: /dev/ada1, Self-Test Log error count increased from 2 to 3 The boot volume state is DEGRADED: One or more devices has experienced an error resulting in data corruption. Applications may be affected.
Device: /dev/ada2, 8 Currently unreadable (pending) sectors
Device: /dev/ada1, 272 Currently unreadable (pending) sectors <this number is slowly rising>

but recently I've had:
Checking status of zfs pools:
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
FreeNAS_1 8.12T 2.17T 5.95T - 2% 26% 1.00x ONLINE /mnt
FreeNAS_2 1.81T 976K 1.81T - 0% 0% 1.00x ONLINE /mnt
freenas-boot 30.2G 4.84G 25.4G - - 16% 1.00x DEGRADED -

pool: freenas-boot
state: DEGRADED
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://illumos.org/msg/ZFS-8000-8A
scan: scrub repaired 0 in 0 days 00:05:53 with 457 errors on Sun Feb 24 03:50:53 2019
config:

NAME STATE READ WRITE CKSUM
freenas-boot DEGRADED 0 0 457
da0p2 DEGRADED 0 0 1.10K too many errors

errors: 457 data errors, use '-v' for a list

-- End of daily output --

If I understand my position correctly, I have two HD's with hardware errors in different places and the ZFS is degraded.
I can't afford to replce the HD's, not for a while anyway, so my plan to make the most of the remaining hardware life is to mirror the data across all HD's. The theory being that I'll maintain at least one copy of the data somewhere across the three...
... so how do I move from the ZFS Pool FreeNAS_1 to three separate mirrors please? If indeed it is still possible. FreeNAS_2 is an unused volume so is available for scratch use.
Thanks in advance.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
If you don't have the money to replace failed hard drives, how do you have the money to change from ZFS to anything else? These errors represent hardware faults with the drives. There is no, switching to something else, that is going to fix that. You need some new drives. If you can't buy them now, turn the system off and wait until you can. It isn't a FreeNAS or ZFS problem when your drives go bad. Any hard disk drive can go bad any time. That is the reason we use ZFS, to protect our data when things do go bad. This system looks like it has been neglected or you wouldn't have two failed drives with that many bad sectors.

Also, when posting a text list like you did, please use tags like this [code] your text here [/code] so the output of these listing can be shown this way.

Code:
root@Emily-NAS:~ # zpool status
  pool: Backup
state: ONLINE
  scan: scrub repaired 0 in 0 days 03:31:34 with 0 errors on Sat Feb  9 13:58:28 2019
config:

        NAME                                            STATE     READ WRITE CKSUM
        Backup                                          ONLINE       0     0     0
          raidz1-0                                      ONLINE       0     0     0
            gptid/2e919d3d-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0
            gptid/2f292da6-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0
            gptid/2fb95d07-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0
            gptid/30514e6b-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0
          raidz1-1                                      ONLINE       0     0     0
            gptid/41d3312f-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0
            gptid/426b7b47-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0
            gptid/43029d18-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0
            gptid/43aa9a5b-2c1a-11e9-af8b-00074306773b  ONLINE       0     0     0

errors: No known data errors

With formatting intact. It makes them much easier to read.
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Your boot pool is degraded.

This should be something you can easily fix by backing up your config from the GUI and rebuilding FreeNAS, then restoring it.

You haven't shared the details about your other pools, so we can't see what your problem is.

Show (in code tags) the full output from zpool status -v

The simple answer would be for you to remove one of your disks from the existing pool, wipe it, make a new pool and copy your data to it.

Then wipe the other 2 and attach them as mirrors.

I would not do this with disks that already have issues and I think you are risking your data to ignore the status of your failing disks
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080

pro lamer

Guru
Joined
Feb 16, 2018
Messages
626
@fixit9660 what do you mean you want to abandon zfs? Do you mean abandon raidz1 or raidz2?

Do this:
Show (in code tags) the full output from zpool status -v

Sent from my phone
 
Top