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.

Cache vs Array - Home Assistant backup fails on cache but not array - help

Featured Replies

I have a home assistant server that backs up to my unraid server. Everything works when the share is configured as an array but fails as a cache with mover enabled. Is there a requirement that I have to stop the array or reboot? Here are screenshots. Help is appreciated.

Screenshot 2026-01-21 at 10.54.05 AM.png

Screenshot 2026-01-21 at 10.57.02 AM.png

Solved by Kilrah

  • Community Expert
7 hours ago, frank_sp61 said:

I have a home assistant server that backs up to my unraid server

Backs up how? Also it never hurts to post the unraid diagnostics even if it doesn't seem relevant to the question. Please attach those.

  • Author
15 hours ago, MowMdown said:

Backs up how? Also it never hurts to post the unraid diagnostics even if it doesn't seem relevant to the question. Please attach those.

Home Assistant backups (creates a tar archive) and stores it on a remote NFS share. In my case it's '/mnt/user/habackup'. When I configure this share (above) as primary on the array, all works fine, albeit slow. When I configure it as cache first then array, it get an error in the Home Assistant. Here are the relevant logs from HA.

2026-01-22 05:28:49.094 INFO (MainThread) [supervisor.mounts.manager] Reloading mount: NFS_Backup
2026-01-22 05:28:49.175 INFO (MainThread) [supervisor.mounts.mount] Mount NFS_Backup not correctly mounted after a reload. Trying a restart
2026-01-22 05:28:49.247 ERROR (MainThread) [supervisor.mounts.mount] Restarting NFS_Backup did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-NFS_Backup.mount for details.
2026-01-22 06:13:49.476 INFO (MainThread) [supervisor.mounts.manager] Reloading mount: NFS_Backup
2026-01-22 06:13:49.547 INFO (MainThread) [supervisor.mounts.mount] Mount NFS_Backup not correctly mounted after a reload. Trying a restart
2026-01-22 04:13:48.870 homeassistant kernel: NFS: server linc.local error: fileid changed
2026-01-22 04:13:48.881 homeassistant systemd[1]: Reloading Supervisor nfs mount: NFS_Backup...
2026-01-22 04:13:48.952 homeassistant systemd[1]: mnt-data-supervisor-mounts-NFS_Backup.mount: Mount process exited, code=killed, status=15/TERM
2026-01-22 04:13:48.952 homeassistant systemd[1]: Failed unmounting Supervisor nfs mount: NFS_Backup.
2026-01-22 04:28:49.102 homeassistant systemd[1]: Reloading Supervisor nfs mount: NFS_Backup...
2026-01-22 04:28:49.153 homeassistant mount[363345]: mount.nfs: Stale file handle for (null) on /mnt/data/supervisor/mounts/NFS_Backup
2026-01-22 04:28:49.158 homeassistant systemd[1]: mnt-data-supervisor-mounts-NFS_Backup.mount: Mount process exited, code=exited, status=1/FAILURE
2026-01-22 04:28:49.158 homeassistant systemd[1]: Reload failed for Supervisor nfs mount: NFS_Backup.
2026-01-22 04:28:49.186 homeassistant systemd[1]: Unmounting Supervisor nfs mount: NFS_Backup...
2026-01-22 04:28:50.085 homeassistant systemd[1]: mnt-data-supervisor-mounts-NFS_Backup.mount: Deactivated successfully.
2026-01-22 04:28:50.087 homeassistant systemd[1]: Unmounted Supervisor nfs mount: NFS_Backup.
2026-01-22 04:28:50.099 homeassistant systemd[1]: Mounting Supervisor nfs mount: NFS_Backup...
2026-01-22 04:28:50.369 homeassistant systemd[1]: Mounted Supervisor nfs mount: NFS_Backup.
2026-01-22 05:13:49.478 homeassistant kernel: NFS: server linc.local error: fileid changed
2026-01-22 05:13:49.485 homeassistant systemd[1]: Reloading Supervisor nfs mount: NFS_Backup...
2026-01-22 05:13:49.525 homeassistant mount[368927]: mount.nfs: Stale file handle for (null) on /mnt/data/supervisor/mounts/NFS_Backup
2026-01-22 05:13:49.529 homeassistant systemd[1]: mnt-data-supervisor-mounts-NFS_Backup.mount: Mount process exited, code=exited, status=1/FAILURE
2026-01-22 05:13:49.530 homeassistant systemd[1]: Reload failed for Supervisor nfs mount: NFS_Backup.
2026-01-22 05:13:49.560 homeassistant systemd[1]: Unmounting Supervisor nfs mount: NFS_Backup...
2026-01-22 05:13:49.655 homeassistant systemd[1]: mnt-data-supervisor-mounts-NFS_Backup.mount: Deactivated successfully.
2026-01-22 05:13:49.656 homeassistant systemd[1]: Unmounted Supervisor nfs mount: NFS_Backup.
2026-01-22 05:13:49.667 homeassistant systemd[1]: Mounting Supervisor nfs mount: NFS_Backup...
2026-01-22 05:13:49.853 homeassistant systemd[1]: Mounted Supervisor nfs mount: NFS_Backup.

The HomeAssistant gives an error that says it "Network storage device failed" after the backup. The relevant syslogs entries from unraid server are these:

Jan 20 05:00:34 Linc move: move: /mnt/cache/habackup/Automatic_backup_2026.1.2_2026-01-20_04.47_01003761.tar Success
Jan 20 05:00:34 Linc shfs: /usr/sbin/zfs unmount 'cache/habackup' 2>&1
Jan 20 05:00:34 Linc shfs: /usr/sbin/zfs destroy 'cache/habackup' 2>&1
Jan 20 05:00:34 Linc move: mover: finished

Jan 22 06:00:50 Linc move: move: /mnt/cache/habackup/Automatic_backup_2026.1.2_2026-01-22_04.55_32003308.tar Success
Jan 22 06:00:50 Linc shfs: /usr/sbin/zfs unmount 'cache/habackup' 2>&1
Jan 22 06:00:50 Linc shfs: /usr/sbin/zfs destroy 'cache/habackup' 2>&1
Jan 22 06:00:50 Linc move: mover: finished

It's the same each time. It appears that the 'backup' completes but then the directory/folder is then unavailable for whatever time. I feel like it's something how I have this share setup.

The cache pool is setup up as a 2TB zfs filesystem.

  • Community Expert

Please post your diagnostics. Since you're using zfs, make a snapshot of the habackup dataset, this will prevent unraid from destroying the dataset when mover operation moves the data to the array. This may help.

Otherwise this is one of those NFS things that has plagued unraiders for some time. Im not sure if there was ever a fix. Someone else would need to chime in.

  • Author
14 hours ago, MowMdown said:

Please post your diagnostics. Since you're using zfs, make a snapshot of the habackup dataset, this will prevent unraid from destroying the dataset when mover operation moves the data to the array. This may help.

Otherwise this is one of those NFS things that has plagued unraiders for some time. Im not sure if there was ever a fix. Someone else would need to chime in.

Here are the logs. Not sure how to make a "snapshot" of the dataset but I'll google that.

syslog.txt syslog.2.txt syslog.1.txt

  • Community Expert

Well it's hard to track down what's going on due to the massive log spam, there are three whole log files just full of this alone:

Jan 20 07:00:06 Linc sudo: root : PWD=/ ; USER=root ; COMMAND=/usr/sbin/smartctl --scan 
Jan 20 07:00:06 Linc sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0) 
Jan 20 07:00:06 Linc sudo: pam_unix(sudo:session): session closed for user root

What do you have running?

Edited by MowMdown

  • Author

Not much actually. See attached. I also have a Frigate host writing to it. The HomeAssistant is also a separate host but only writes a tar backup once a day. Finally I have Apple computers writing backups (Time Machine).

IMG_3852.png

Edited by frank_sp61

  • Author

From what I can tell, this the SMART command checking on my disks and running every 9 seconds? How do I tune or turn off?

I've turned off all my docker containers except NPM but there is no change in the "spam".

Is it possible that I have the SMART controller type set incorrectly? Do I need to change the SMART controller type to SCSI? I ran a Smartctl --scan and here are the results:

/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/sdc -d scsi # /dev/sdc, SCSI device
/dev/sdd -d scsi # /dev/sdd, SCSI device
/dev/sde -d scsi # /dev/sde, SCSI device
/dev/sdf -d sat # /dev/sdf [SAT], ATA device
/dev/nvme0 -d nvme # /dev/nvme0, NVMe device
/dev/nvme1 -d nvme # /dev/nvme1, NVMe device

output from the 1st device:
root@Linc:~# smartctl -a /dev/sdb
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.12.54-Unraid] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red Plus
Device Model:     WDC WD60EFZX-68B3FN0
Serial Number:    WD-C80KK9GG
LU WWN Device Id: 5 0014ee 269138f9e
Firmware Version: 81.00A81
User Capacity:    6,001,175,126,016 bytes [6.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5640 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database 7.5/6045
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Jan 25 12:10:48 2026 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Edited by frank_sp61

  • Community Expert
47 minutes ago, frank_sp61 said:

From what I can tell, this the SMART command checking on my disks and running every 9 seconds? How do I tune or turn off?

That does not normally happen so it is not at all clear what could be running it.

  • Author
Just now, itimpi said:

That does not normally happen so it is not at all clear what could be running it.

So should I change the SMART controller type to SCSI for a SATA device? Could it be this?

  • Community Expert
2 minutes ago, frank_sp61 said:

So should I change the SMART controller type to SCSI for a SATA device? Could it be this?

No idea I am afraid but it seems unlikely. Maybe someone else will have some similar experience that might be relevant.

  • Author

After 1 hour, no smartctl messages in the logs. Is it worthwhile to boot back into normal operation mode to see if "safe mode" fixed the problem? Or will they just reappear?

  • Community Expert

If the problem doesn't occur in SAFE mode, that implies the problem is related to one of your plugins.

  • Community Expert
Just now, trurl said:

If the problem doesn't occur in SAFE mode, that implies the problem is related to one of your plugins.

None of the plugins you have installed according to those diagnostics should directly cause this problem though.

Do you have a Remote share or the rootshare mounted with Unassigned Devices? Some other system accessing your rootshare perhaps?

  • Author
2 hours ago, trurl said:

None of the plugins you have installed according to those diagnostics should directly cause this problem though.

Do you have a Remote share or the rootshare mounted with Unassigned Devices? Some other system accessing your rootshare perhaps?

I have two servers connecting to my UNRAID server. Both are using NFS.

1st is the Homeassistant for backups. These only occur once per day between 4:45-5:45 am.

2nd is a Frigate NVR server and it is connected as a remote share from that server. It uses the UNRAID as storage for upto 3 days worth of triggers.

Lastly, I did have a USB drive with all my PLEX movies attached as an unassigned device. Not sure what a root share is. In SAFE MODE, this isn't mounted. Still running in SAFE MODE for nearly 4 hours and there are none of these errors in the logs. Current diagnostics attached.

I shutdown every docker container and "unmounted" the external drive prior to SAFE MODE but it didn't seem to matter. I'm gonna try and reboot in NORMAL mode and see if the issue returns.

linc-safemode-diagnostics-20260125-1714.zip

  • Author
14 minutes ago, frank_sp61 said:

I have two servers connecting to my UNRAID server. Both are using NFS.

1st is the Homeassistant for backups. These only occur once per day between 4:45-5:45 am.

2nd is a Frigate NVR server and it is connected as a remote share from that server. It uses the UNRAID as storage for upto 3 days worth of triggers.

Lastly, I did have a USB drive with all my PLEX movies attached as an unassigned device. Not sure what a root share is. In SAFE MODE, this isn't mounted. Still running in SAFE MODE for nearly 4 hours and there are none of these errors in the logs. Current diagnostics attached.

I shutdown every docker container and "unmounted" the external drive prior to SAFE MODE but it didn't seem to matter. I'm gonna try and reboot in NORMAL mode and see if the issue returns.

linc-safemode-diagnostics-20260125-1714.zip

I rebooted into normal mode and the smartctl were immediately back. See logs. I have unmounted the external drive (no auto mount) and am rebooting.

linc-diagnostics-20260125-1732.zip

  • Community Expert
17 minutes ago, frank_sp61 said:

Not sure what a root share is

Under your Unassigned Devices you should have a button for that. Click it for more information.

  • Author

Screenshot 2026-01-25 at 5.42.10 PM.png

  • Author
14 minutes ago, trurl said:

Under your Unassigned Devices you should have a button for that. Click it for more information.

I shutdown the Frigate server to ensure there the remote NFS connection wasn't causing the problem and the external USB drive is unmounted. It still persists. I guess the next step is to completely unplug that drive and reboot.

linc-diagnostics-20260125-1754.zip

  • Author

I completely disconnected the external USB drive and there is no remote device accessing my system. It's still happening. Here are the logs. Is it possible bug? I've also shut off every docker container.

linc-diagnostics-20260125-1810.zip

Edited by frank_sp61

  • Author

Could it just be that I need to set the SMART control type to SCSI, SAT, ATA, or automatic for each drive in my array? Will this hurt anything if I set it to SCSI or automatic?

Screenshot 2026-01-25 at 6.19.04 PM.png

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.