Unassigned Devices - Managing Disk Drives and Remote Shares Outside of The Unraid Array


Recommended Posts

Thanks for taking the time to respond dlandon, I really do appreciate it. Unfortunately I don't see an option to mount a different partition it seems. I've checked on both the disk as well as the partition. The partition did allow me to set a number for the apfs volume, however changing that parameter to different values didn't result in anything. I've added the diagnostics below. 

myserver-diagnostics-20230202-1239.zip

Link to comment
28 minutes ago, lil-nas-x said:

The partition did allow me to set a number for the apfs volume,

That's what I was talking about.  You need to unmount the device, then set a different volume, then remount.  I don't see anywhere in the logs where you attempted to mount an apfs drive.

 

I'm having trouble understanding what is going on from your logs.  Do this:

  • Set all devices to not auto mount.
  • Reboot the server leaving everything connected.  It looks like some of the devices are USB devices.
  • After the server has rebooted, click on the mount button on one of the drives that didn't mount and post diagnostics.
Link to comment
14 minutes ago, scorcho99 said:

Apologies if this is a dumb question: Is it possible to mount an unassigned device prior to the array being mounted?

 

I'd like to encypt my array and store the key file on a separate flash drive, which seems like I would need to mount first to access.

No.  You can always enter your passphrase when the array starts if you don't want it saved on the flash drive.

  • Like 1
Link to comment

Hello everyone, 

I have two unraid systems, one is my primary system which has plex and my storage.  My second one is my containers/vm system and I connect the shares NFS via unassigned plugin.  However, it will frequently become disconnected to my Plex server.

The one that disconnects the most is my Downloads share, but my movies share disconnects sometimes as well.  This is what it looks like when it disconnects.
image.thumb.png.ed64b329bdc02b4da2def06d4cbc8315.png

 

Then I get this kind of error
image.thumb.png.7514839d2d6b456614226bd03848988f.png

I have attached diagnostics as well incase its needed. 

Any help is appreciated.

tower-diagnostics-20230202-1640.zip

Link to comment

hi there, is it possible to turn off log spamming for disconnected shares, like when I turn off my external PC and unraid keeps spamming my unraid log with disconnected drive til I turn on my PC the next day.  Or is this an Unraid warning?

If not, could you add it to the next update.

Thanks

 

565225600_Screenshot2023-02-03at5_59_52AM.thumb.png.0c4b3709797fd2b7d4e46f57bb83c712.png

Link to comment
1 hour ago, Spazhead said:

hi there, is it possible to turn off log spamming for disconnected shares, like when I turn off my external PC and unraid keeps spamming my unraid log with disconnected drive til I turn on my PC the next day.  Or is this an Unraid warning?

If not, could you add it to the next update.

Thanks

 

565225600_Screenshot2023-02-03at5_59_52AM.thumb.png.0c4b3709797fd2b7d4e46f57bb83c712.png

No.  Those log entries are from CIFS.  Unraid has no control over those.  Unmount the remote shares before turning off the remote server.

  • Thanks 1
Link to comment

Hi,

 

Started to use UD to mount a NAS to my Unraid, I have configured it to automount under settings but if I make a reboot of the unraid it will not automount, I need to click Mount manually to get it to work.

What have I missed to do?

 

Thanks for good work!

 

Link to comment
11 minutes ago, Jef74 said:

 

Also found this setting but did not help either.

 

image.thumb.png.23f346b153d36522c74debf918084f52.png

poppelsrv-diagnostics-20230203-1547.zip 69.75 kB · 0 downloads

You are auto mounting a remote share and when UD tries to mount it, it is not available:

Feb  3 15:45:03 PoppelSRV unassigned.devices: Mounting Remote Share '//ZINKID/HDTV'...
Feb  3 15:45:03 PoppelSRV unassigned.devices: Remote Server 'ZINKID' is offline and share '//ZINKID/HDTV' cannot be mounted.
Feb  3 15:45:33 PoppelSRV kernel: wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
Feb  3 15:45:33 PoppelSRV kernel: wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <email@removed.com>. All Rights Reserved.

It looks like you are using Wireguard to access the remote share and it is not ready.  I don't have an answer for this right now.

 

Auto Mount USB devices does not apply to remote shares.

 

You should also turn off UD debug logging.  It's not necessary and can add too much logging to the syslog.

Link to comment
10 minutes ago, dlandon said:

You are auto mounting a remote share and when UD tries to mount it, it is not available:

Feb  3 15:45:03 PoppelSRV unassigned.devices: Mounting Remote Share '//ZINKID/HDTV'...
Feb  3 15:45:03 PoppelSRV unassigned.devices: Remote Server 'ZINKID' is offline and share '//ZINKID/HDTV' cannot be mounted.
Feb  3 15:45:33 PoppelSRV kernel: wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
Feb  3 15:45:33 PoppelSRV kernel: wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <email@removed.com>. All Rights Reserved.

It looks like you are using Wireguard to access the remote share and it is not ready.  I don't have an answer for this right now.

 

Auto Mount USB devices does not apply to remote shares.

 

You should also turn off UD debug logging.  It's not necessary and can add too much logging to the syslog.

 

I have one docker who is using Wireguard but I thought that wouldn't effect my Unraid instance?

 

I turned on Debugging when I tested now.

Link to comment
2 hours ago, dlandon said:

Are you connecting to a remote server through Wireguard?

 

Hi, I changed from using DNS name to my NAS and using IP, then i works so I assume it tried to lookup the name and didn't get it properly.

 

Now it works, so thank you for taking the time!

Link to comment

Hi Clever people... 

 

Please excuse my complete naivety, but I have searched high and low for an answer to this but to NO avail and its clearly so simple that no-one seems to have a problem but me!

 

Basically, I want to use the first example script to backup to external USB when plugged in. My problem is, I don't know where to create this script... The unassigned devices dropdown shows no scripts to select, and no file structure to browse to find one... so I feel stuck at step one.

 

I am not totally unfamiliar with scripts, but UNRAID is a new beast to me and once I am started I can probably solve further troubles myself, but as I said, I cant even create/select a script.

Link to comment
2 minutes ago, Pickers said:

Now, do I go through the file and replace all of the ## Available variables: with the instances that are specific to my use?

No those are varables passed to the device script by UD to work with inside the script.

 

Load the default script (click 'Default' button) and then add your script operations in the approprate sections of the script.

Link to comment
26 minutes ago, dlandon said:

No those are varables passed to the device script by UD to work with inside the script.

 

Load the default script (click 'Default' button) and then add your script operations in the approprate sections of the script.

Ah so I literally can just copy that example script from page one of this sub forum, but change the rsync settings to what I want.

 

Thats so simple! Thank you for taking the time to help me out with such a mundane issue!

 

 

Edit: So after I've pasted the script and pressed save, the script window clears... now Im confused

Edited by Pickers
Additional Information
Link to comment

I'm getting a lot of these warnings.

 

Quote
root@Tower:~# tail /var/log/syslog
Feb  4 21:24:43 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:24:46 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:24:49 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:24:52 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:24:55 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:24:55 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:24:58 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:25:01 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:25:04 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 21:25:07 Tower unassigned.devices: PHP Warning: syntax error, unexpected TC_CONSTANT in Unknown on line 24  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
root@Tower:~# cat /usr/local/emhttp/plugins/unassigned.devices/include/lib.php -n | grep 2750
  2750			$dev_state = @parse_ini_string(timed_exec(5, "/sbin/udevadm info --query=property --path $(/sbin/udevadm info -q path -n ".escapeshellarg($device)." 2>/dev/null) 2>/dev/null"), INI_SCANNER_RAW);

 

 

Link to comment

And I've started getting these errors in syslog:

 

Quote

Feb  4 17:10:42 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '!' in Unknown on line 29  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 17:10:42 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '~' in Unknown on line 28  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 17:10:42 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '!' in Unknown on line 29  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 17:10:42 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '~' in Unknown on line 28  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 17:10:42 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '!' in Unknown on line 29  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
^AFeb  4 17:10:45 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '~' in Unknown on line 28  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 17:10:45 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '!' in Unknown on line 29  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750
Feb  4 17:10:45 SelaNAS unassigned.devices: PHP Warning: syntax error, unexpected '~' in Unknown on line 28  in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 2750

Every three seconds.

Unraid 6.11.5.

I tried uninstalling the plugins (both unassigned devices and unassigned devices plus), still same error.

I tried rebooting, same error.

Thanks

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.