Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

array wont start after "unbalanced" action, zfs cashe pool

Featured Replies

Setup:

- array: 3 disks, 2 data and 1 parity (xfs)

- cache 2 ssd zfs mirrored

When I saw my disks on array were constantly spinned up, i checked that there are some files on system and domains shares. I tried using mover (Cache <- Array) but it did not fix it so I searched the Internet and found It can be done easily by rsync (or sth. similar) or "unbalanced" plugin, so I did the latter:

- stopped the array 

- no VMs running so nothing to do there

- run unbalanced from disk1 (both folders) to Cache (mirrored zfs)

- started dockers and webUI stopped responding

- restarted server

- array did not start ("Wrong Pool State cache-invalid config" pop up)

 

I see something strange in cache settings- it says "File system type: zfs mirror 1 group of 3 devices" but there should be 2 devices.

I see also in cache.cfg

diskFsWidth="3"

the only 3 i found there but don't really know what it means for sure.

do anyone knows how to fix the issue? Can I just edit the diskFsWidth (probably it's not that easy)? 

 

Edited by bpie
file no longer needed

Solved by trurl

  • Community Expert
  • Solution
5 minutes ago, bpie said:

some files on system and domains shares. I tried using mover (Cache <- Array) but it did not fix it so I searched the Internet

Nothing can move or delete open files. You have to disable Docker and VM Manager in Settings to work with these shares.

  • Author

Yes, I forgot to disable docker daemon (only containers were down). But something strange did happen to the cache config I think. Can I recover from this? Should I start a new config or try to modify existing one by hand or some other tool?

 

Edit: Oh, I disabled Docker and VM and the array started (after a few refreshes of UI, probably some warnings "cached").

Should I clean it now somehow- repeat the actions with unbalanced plugin to make sure all files are on one disk? I do not really know how this system works under the hood so I have no idea how to clean this up.

 

Edit2: docker daemon started, docker containers also... ok I thought it will be something more serious thanks for the help ;)

Edited by bpie

  • Community Expert

You can see how much of each disk or pool is used by each share by clicking Compute... for the share on the User Shares page.

  • Author
Quote

ou can see how much of each disk or pool is used by each share by clicking Compute... for the share on the User Shares page.

Didn't know that, thanks

  • Author

I did nothing new, just stopped the array and now it wont start again with or without docker or VM on ;( now it says 1 group of 4 devices, previously it was 3, should be 2

unraid.png

dell-server-diagnostics-20240831-1131.zip

Edited by bpie
adding files

  • Community Expert

Post the output from:

zpool import

 

  • Author

I edited the pool config file (diskFsWidth="2" from 4), rebooted and it started up. But something is not right.

Quote

Post the output from:

zpool import

Is it safe to run this while a array with cache is running? Need to educate myself about zpool / zfs.

  • Community Expert

If it's running it won't provide an output, post the output from 'zpool status' instead, and if it happens again you can correct the config by re-importing the pool

  • Author
~# zpool status
  pool: cache
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
        The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(7) for details.
config:

        NAME         STATE     READ WRITE CKSUM
        cache        ONLINE       0     0     0
          nvme1n1p1  ONLINE       0     0     0

errors: No known data errors

 

  • Community Expert

Didn't you say the pool was 2 devices? There's only one currently.

  • Author

it should be 2 as in attached image. cache.cfg states:

diskFsType="zfs"
diskFsProfile="mirror"
diskId="Lexar_SSD_NM790_2TB_NJF5744104557P2202"
diskId.1="Lexar_SSD_NM710_2TB_NES132R002654P2200"
diskType="Cache"
diskType.1="Cache"

 

and diskFsWidth is back to 3 in /boot/config/pools/cache.cfg

pool_devices.png

Edited by bpie

  • Community Expert
10 hours ago, bpie said:

it should be 2 as in attached image

It's not, zpool status always show the correct pool status, you can re-import the single device pool and then add the other one to create a mirror.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.