Unraid RC6: ZFS Pool "Unmountable: Unsupported or no file system"


Go to solution Solved by JorgeB,

Recommended Posts

Out of nowhere the WebUI started crashing and the page would always go blank only coming back for a few seconds after refreshing the page many times, and I couldn't get the diagnostics because the page went blank in the middle of the process (through ssh it reported that there was no space left), but one thing that I've found odd is that Dockers kept working just fine.

The only way I found to get it working again was deleting disks.cfg from /boot/config and rebooting (and that was how I was able to generate the diagnostics file attached below), but after some time the problem always goes back.

So I'm pretty sure I've lost all my files, so before formatting them, is there any other useful data that I can attach here to prevent this from happening to me or other users? Before these problems begun I was trying to get Filerun (it's like Nexcloud) working with my ZFS volume (/mnt/zfs) as I had it working before reinstalling that docker, but it (filerun) couldn't recognize the files there, and at some point I tried running the docker on privileged status, I guess this might be the reason why my ZFS pool got corrupted.

Also, I had 5 Datasets in my ZFS pool, but now there is only 3 left with just a few files (but these where created by other dockers).

This ZFS pool was created with ZFS Master and Unassigned Devices Plugin (following SpaceInvaders video) and later on 6.12 I just straight up added to the pool and it was working just fine until now.

image.thumb.png.bb0bcc1e57bc9f4b198a093c1230b78b.pngimage.thumb.png.941eca022736a8f9ef4e6dabebd2894d.png

 

chriexpe.server-diagnostics-20230526-1001.zip

Link to comment
12 minutes ago, JorgeB said:

Diags are before array start, cannot see what the error is, I do see the pool is already online, pool cannot be online before Unraid tries to import it, export the pool using the command line:

zpool export zfs

start array and post new ones.

Ok, I waited for the array to start (and all containers go up) and attached the diag file.

I did the command before and after starting the pool and got the same response:

cannot open 'zfs': no such pool

 

chriexpe.server-diagnostics-20230526-1226.zip

Link to comment
5 minutes ago, Chriexpe said:

I did the command before and after starting the pool and got the same response:

cannot open 'zfs': no such pool

Yes, that was my bad, pool is available to import, not online, stop array, unassign all pool devices, start array, stop array, re-assign all pool devices, post new diags.

Link to comment
26 minutes ago, JorgeB said:

Yes, that was my bad, pool is available to import, not online, stop array, unassign all pool devices, start array, stop array, re-assign all pool devices, post new diags.

Well, it's stil ummountable, before doing this I also changed default file system to ZFS on Disk Settings and even tried with different pool names, but got the same results.

image.thumb.png.0e908eac1de72ba7e27e0b620e93429d.png

chriexpe.server-diagnostics-20230526-1307.zip

Link to comment
10 minutes ago, Chriexpe said:

RIP

 

Looks like it, kind of strange that the before importing it shows all pool devices available and online:

pool: zfs
     id: 15271653718495853080
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

    zfs         ONLINE
      raidz1-0  ONLINE
        sdd     ONLINE
        sdc     ONLINE
        sdb     ONLINE

 

The are a few import options you could try but assuming there's a backup best to just recreate and restore the pool.

 

Link to comment
6 minutes ago, JorgeB said:

 

Looks like it, kind of strange that the before importing it shows all pool devices available and online:

pool: zfs
     id: 15271653718495853080
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

    zfs         ONLINE
      raidz1-0  ONLINE
        sdd     ONLINE
        sdc     ONLINE
        sdb     ONLINE

 

The are a few import options you could try but assuming there's a backup best to just recreate and restore the pool.

 

I've never done any backup of it, is there any other way to import it?

Link to comment

Also it's odd that if I type just zpool import it output exactly what you've sent
root@chriexpe:~# zpool import
 

   pool: zfs
     id: 15271653718495853080
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

        zfs         ONLINE
          raidz1-0  ONLINE
            sdd     ONLINE
            sdc     ONLINE
            sdb     ONLINE

 

Link to comment
  • Solution
1 minute ago, Chriexpe said:

Also it's odd that if I type just zpool import it output exactly what you've sent

That's normal, I see that because the output of that command comes with the diags.

 

There's a few options you can try, 1st one is to import in readonly mode:

 

zpool import -o readonly=on zfs

 

Link to comment
5 hours ago, JorgeB said:

That's normal, I see that because the output of that command comes with the diags.

 

There's a few options you can try, 1st one is to import in readonly mode:

 

zpool import -o readonly=on zfs

 

Yup it did work, I was trying with -f and -F flags but had no success, now even tho unraid still reports the pool as unmountable I can access all files inside it, zpool status gives this result:
 

pool: zfs
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
  scan: scrub repaired 0B in 04:41:10 with 0 errors on Mon Feb 27 16:58:43 2023
config:

        NAME        STATE     READ WRITE CKSUM
        zfs         ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdd     ONLINE       0     0     1
            sdc     ONLINE       0     0     0
            sdb     ONLINE       0     0     0

errors: No known data errors

I created this diag file after importing this pool.

chriexpe.server-diagnostics-20230526-1603.zip

Edited by Chriexpe
Link to comment
14 hours ago, JorgeB said:

Make sure you backup anything important that you can then try exporting and re-importing the pool in read/write mode now, if it still fails to import best to recreate.

Thanks! Unfortunately I couldn't import my pool so I needed to format all disks, but thanks to you I was able to save the files.

I decided to use the GUI to create this new ZFS pool and yeah, definitely Unraid need some polishing with it, for example a separate button to manage the pool instead of clicking in the main disk, or after changing the filesystem and creating the ZFS pool warn the user and format the pool (instead of just saying that the pool is unmountable like my case), and automatically add the datasets to shares.

image.thumb.png.a32f6446591862e328612d353485cace.png

Edited by Chriexpe
Link to comment
  • 1 month later...

For what it is worth for any one else struggling with adding new ZFS "Pool Devices"

 

None of the above advised helped, so did a "tail -f /var/log/syslog" and tried all the above again - no luck.

 

I added 2 x new SSD's following the examples:


Noticed on adding a ZFS "raid 0" in syslog that "/mnt/cache/*" was not empty (for some reason setting ZSF to "mirror" did not show the same error in the log).

 

Run "rm -R /mnt/cache/*" after moved all from "cache" to "array" and restarted the server.

 

All working now.

  • Thanks 1
Link to comment
  • 1 month later...
  • 2 months later...
1 hour ago, JorgeB said:

Pool is damaged,

How'd it get damaged? It was working perfectly, then went offline for couple of hours and had to hard reboot it, would that have done it?

 

1 hour ago, JorgeB said:

If you have a backup destroy and re-create.

I have appdata backup, but not domain, iso and system, but they shouldn't matter too much right? 

 

Would XFS be better than ZFS for the new FS?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.