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.

[6.12.14] Stopping array with open locks through NFS make unraid stuck

  • Annoyance

I have an immich instance having a nfs mount to an unraid share. 

When I stop the array while there is open files through NFS, it makes unraid stuck, not able to stop the array, unable to change any other settings in unraid, and the nfs clients are unable to unmount, probably because the nfs server or the exports are down before the array is stopped. 

 

It would be great to prevent the array to be stopped if any file is locked, to not block all the rest.

 

I don't know how to prevent the stop depending on the locked files... Maybe with a user script, but it feels really hacky.

 

Because of that, I lost data because of an array maintainance during a photo upload. The pictures upload was in progress while the array stop interrupted the upload, and as the files are locked, the app is not able to recover when the server is back. 

 

Client options :

addr=10.253.0.0,rw,nolock,hard,nfsvers=4,tcp,noexec 

Btw, the nolock option seems to not be considered as the locks are still there

 

Server export options:

sec=sys,rw,no_root_squash,sync

 

HOW TO REPRODUCE

- prereq: nfs mount setup targeting a share inside the array, mount up and working

- open a file and keep it open on the client side

- ack that the file is locked using `lsof | grep /mnt/disk`

- stop the array

 

At this moment:

- you should have in the logs `error: rmdir: /mnt/user resource busy`.

- you cannot change any setting anywhere in unraid

- you cannot unmount on the nfs client side

 

 

I hope it's just a matter of nfs configuration... 

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.