Jump to content
dlandon

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

4329 posts in this topic Last Reply

Recommended Posts

2 hours ago, dany-dm said:

Hello, i think i have the same problem, i can't automount anymore after the last update:

 


Dec 14 00:13:08 NasDan kernel: BTRFS error (device sdi1): open_ctree failed
Dec 14 00:13:08 NasDan unassigned.devices: Error: shell_exec(/sbin/mount -t btrfs -o auto,async,noatime,nodiratime '/dev/sdi1' '/mnt/disks/WDC_WD40PURX-64NZ6Y0_WD-WCC7K0RJTU9R' 2>&1) took longer than 20s!
Dec 14 00:13:08 NasDan unassigned.devices: Mount of '/dev/sdi1' failed. Error message: command timed out
Dec 14 00:13:08 NasDan unassigned.devices: Partition 'WDC_WD40PURX-64NZ6Y0_WD-WCC7K0RJTU9R' could not be mounted...
Dec 14 00:13:08 NasDan unassigned.devices: Running device script: 'WDC_WD40PURX-64NZ6Y0_WD-WCC7K0RJTU9R.sh' with action 'ERROR_MOUNT'.

 

running "mount -t btrfs /dev/sdi1 /mnt/ciao" take almost 21 seconds and double for umount.

Looks like more time out adjustments are needed.

Share this post


Link to post
40 minutes ago, dlandon said:

The disk has issues, but looks to be more of a cable/controller issue.



 

Its connected USB, so no issues on the speed.  SMART looks good

Share this post


Link to post
2 hours ago, dlandon said:

No.  The credentials are set when the device is first mounted.  If they are incorrect, the CIFS mount should fail.

 

I have an idea here.  I don't know how the Mac implements SMB.  Is it possible that you have the credentials set wrong and the Mac share mounts regardless and then fails when the share is accessed?

 

Remove the remote share from UD and then set it up again.  Be sure the credentials are set correctly.

I thought the latest SAMBA only had security fixes, but it's possible other changes were made.

 

SMB2 is not a new protocol.


 

Remove the share.  
 

Added it back.

 

Error persists.

 

The share is accessible (both read and write) to the array and services - it just spams the log multiple times per second when being accessed.

 

Question, how often is the system log purged?

 

Thank you for taking the time to investigate.  

Share this post


Link to post

I've extended the mount and umount timeouts to 30 and 45 seconds respectively in the latest release.

 

12 hours ago, dany-dm said:

Dec 14 00:13:08 NasDan kernel: BTRFS error (device sdi1): open_ctree failed

You should do a file system check on that disk though.  I'm not sure if this log entry is an issue or not.

 

Could you post the complete diagnostics?

Share this post


Link to post
9 minutes ago, dlandon said:

You should do a file system check on that disk though.  I'm not sure if this log entry is an issue or not.

That's likely related to the timeout, since UD is aborting and not completing the mount.

Share this post


Link to post
1 minute ago, johnnie.black said:

That's likely related to the timeout, since UD is aborting and not completing the mount.

It takes 21 seconds to mount a btrfs file system?  And 40 seconds to umount?  Seems a bit long to me.

Share this post


Link to post
8 hours ago, J.Nerdy said:


 

Remove the share.  
 

Added it back.

 

Error persists.

 

The share is accessible (both read and write) to the array and services - it just spams the log multiple times per second when being accessed.

 

Question, how often is the system log purged?

 

Thank you for taking the time to investigate.  

Do you have any settings on the Mac related to SAMBA?

 

Take a look at this: https://support.apple.com/en-us/HT204445

Edited by dlandon

Share this post


Link to post
It takes 21 seconds to mount a btrfs file system?  And 40 seconds to umount?  Seems a bit long to me.

It is long, but it's normal for a large btrfs filesystem, since I use btrfs on the data disks some of my servers take more than 2 minutes to mount all the disks, and even more to unmount, kind of a pain, there's a patch/mount option to improve that, but it's not yet merged.

 

 

Share this post


Link to post
3 hours ago, dlandon said:

Do you have any settings on the Mac related to SAMBA?

 

Take a look at this: https://support.apple.com/en-us/HT204445

Nothing special, its a pretty simple setup.

 

The thunderbay (6 disk external raid array) is connected and mounted to the Mac through thunderbolt3.  I then connect to the MAC (only the thunderbay is shared) through SMB utilizing UD.  Prior to  6.8, this worked with no issues.  Only after updating did it start logging credential errors.  I did (per your suggestion, which is better security hygiene anyway- thank you) create a limited role user with an alphanumeric password.  I was hoping the password complexity of the admin account was the issue - but it persists across the new user as well.

 

Oddly, I can access and manipulate the data on the SMB disk just fine - its just filling up my log (an inconvenience, but not a shop stopper).  As you noted, it is only when accessing the disk with active read|writes that is begins to spam.  

Share this post


Link to post
14 hours ago, Squid said:

Its connected USB, so no issues on the speed.  SMART looks good

Thanks for making the clarification. Potentially there could be some issues with the drive enclosure and not the drive itself, previously there were smart errors. So now I’m confused. @dlandonand @Squid is there anything else I can do to help troubleshoot this? I’m considering tuning another full smart scan on this drive again and try to get diagnostics via terminal. 

Share this post


Link to post
43 minutes ago, DeBaschdi said:

Hi, unassigned Devices don´t work'for me,

it displays in maintab "Warning: syntax error, unexpected '=' in Unknown on line 1 in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 1349"

can u help me ?

 

unraid-diagnostics-20191214-1734.zip 105.66 kB · 1 download

You have a null device:

Dec 13 13:48:13 Unraid unassigned.devices: Disk with serial '', mountpoint '' is not set to auto mount and will not be mounted...

It looks like it might be your TREKSTOR device:

smartctl 7.0 2018-12-30 r4883 [x86_64-linux-4.19.88-Unraid] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sda: Unknown USB bridge [0x1e68:0x1087 (0x100)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

I'll make a change so the php error won't show, but this device won't mount.

Share this post


Link to post
43 minutes ago, DeBaschdi said:

Hi, unassigned Devices don´t work'for me,

it displays in maintab "Warning: syntax error, unexpected '=' in Unknown on line 1 in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 1349"

can u help me ?

 

unraid-diagnostics-20191214-1734.zip 105.66 kB · 1 download

You have a null device:

Dec 13 13:48:13 Unraid unassigned.devices: Disk with serial '', mountpoint '' is not set to auto mount and will not be mounted...

It looks like it might be your TREKSTOR device:

smartctl 7.0 2018-12-30 r4883 [x86_64-linux-4.19.88-Unraid] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sda: Unknown USB bridge [0x1e68:0x1087 (0x100)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

I'll make a change so the php error won't show, but this device won't mount.

Share this post


Link to post
1 hour ago, geonerdist said:

Thanks for making the clarification. Potentially there could be some issues with the drive enclosure and not the drive itself, previously there were smart errors. So now I’m confused. @dlandonand @Squid is there anything else I can do to help troubleshoot this? I’m considering tuning another full smart scan on this drive again and try to get diagnostics via terminal. 

I don't think it's the disk.  What enclosure are you using?  I assume the disk is in a USB enclosure.

Share this post


Link to post
54 minutes ago, DeBaschdi said:

Hi, unassigned Devices don´t work'for me,

it displays in maintab "Warning: syntax error, unexpected '=' in Unknown on line 1 in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 1349"

can u help me ?

Apparently not related to your problem, but for future reference.

 

You should check and make sure you are using the current version of the plugin before asking for help. Yours is not the current version.

Share this post


Link to post

Hi, my Trekstore device is my usb flash drive :)

(ssd usb)

sorry, i thought it was the newest version (still setup my new , first unraid setup in trial time)

Edited by DeBaschdi

Share this post


Link to post

@dlandon I don't know if this is as much a UD problem as a change in Samba that is causing the issue.  Researching around there seems to be open issue with kernel complaining (across distros: red hat, ubunutu etc) about SMB verification error - but still being able to mount and browse the destination - starting in June.  Have not found any solid information on solution either.

Share this post


Link to post
25 minutes ago, J.Nerdy said:

@dlandon I don't know if this is as much a UD problem as a change in Samba that is causing the issue.  Researching around there seems to be open issue with kernel complaining (across distros: red hat, ubunutu etc) about SMB verification error - but still being able to mount and browse the destination - starting in June.  Have not found any solid information on solution either.

UD only manages the mounting and unmounting of remote shares.  The rest is handled by Samba.

 

I have a Windows share that I mounted (requires credentials) and couldn't reproduce the problem.  I suspect something about the implementation on the Mac.

Share this post


Link to post
44 minutes ago, dlandon said:

UD only manages the mounting and unmounting of remote shares.  The rest is handled by Samba.

 

I have a Windows share that I mounted (requires credentials) and couldn't reproduce the problem.  I suspect something about the implementation on the Mac.

Agreed.  I don't believe this to be a UD problem as other linux users are having similar issue with remote shares - (though it seems to affect windows machines as well in their instances).  I think I need to kick this back to as a bug report in 6.8 stable?  Though I think it could be a Samba bug...1989971979_ScreenShot2019-12-14at2_13_32PM.png.c20118cf65341d3b7e2eecc28c585714.png

Share this post


Link to post
5 minutes ago, geonerdist said:

It is one of these.

You might try another USB port, or USB 2 instead of USB 3.

Share this post


Link to post

lib.zip

7 hours ago, J.Nerdy said:

@dlandon I don't know if this is as much a UD problem as a change in Samba that is causing the issue.  Researching around there seems to be open issue with kernel complaining (across distros: red hat, ubunutu etc) about SMB verification error - but still being able to mount and browse the destination - starting in June.  Have not found any solid information on solution either.

I want you to run a test for me.  Unzip the attached file and the copy it in a terminal session.

cp lib.php /usr/local/emhttp/plugins/unassigned.devices/include/

Then unmount and re-mount the remote share and see if the logging continues.  I've added uid and gid to the mount.  Let's see if that helps.

lib.zip

Edited by dlandon

Share this post


Link to post
6 hours ago, dlandon said:

You might try another USB port, or USB 2 instead of USB 3.

Well now the saga continues. I unmounted the disk and remembered it was plugged in with a USB extension. Got rid of that and plugged it directly in to the server. Tried both USB3.0 ports (and a USB 2.0 after downloading the attached diagnostics) and am unable to mount and it throws warnings in the log. I'm going to plug it in to my windows machine and see what happens. 

tower-diagnostics-20191215-0350.zip

Share this post


Link to post

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.