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


Recommended Posts

On 11/20/2020 at 4:24 PM, almulder said:

Ok I went into settings and clicked chnage UUID and got the following in the log. (UUID not changed). Tried removing drive, the added it back and then tried to chnage uuid.

 


Nov 20 13:22:15 TOWER unassigned.devices: Changing disk '/dev/sdn1' UUID. Result: ERROR: The filesystem has valuable metadata changes in a log which needs to be replayed. Mount the filesystem to replay the log, and unmount it before re-running xfs_admin. If you are unable to mount the filesystem, then use the xfs_repair -L option to destroy the log and attempt a repair. Note that destroying the log may cause corruption -- please attempt a mount of the filesystem before doing this.

 

Click on the + icon to show the partitions, then click on the check mark to check the file system.  See if that doesn't fix the file system.

Link to comment

New release of UD:

  • Change mount point icons to something more meaningful.  A pencil icon will show when the mount point can be changed.  A file folder icon will show when the mount point can be used to browse the device.
  • The mounting of remote SMB shares has been changed to first trying to mount the remote share without the protocol (vers=) being specified.  If that fails the mount protocol is specified in the following order - SMB3, SMB2, and then SMB1 (if netbios is enabled).
  • Encrypted disks will show the file system when mounted.
Link to comment
On 4/17/2020 at 4:11 AM, wuftymerguftyguff said:

Hi,

 

Thanks for your attention.

 

I understand but what I am seeing is slightly different.  Forcing smb v1 does not work either.

 

If there is ANY value in the vers= option then I can’t write.

 

If I take the mount command from syslog and just remove the vers option it negotiates the highest compatible smb version with the server and I can write.

 

Jeff

This was posted some time ago - sorry for the slow solution.  I have released a new version of UD that should solve this problem.  When a remote SMB share is first mounted now, the protocol (vers=) is not specified.  I'm finding that a lot of remote shares will mount this way and the server will determine the most secure SMB version.  If that fails, the SMB protocol is specified and another mount attempted in the following order - SMB3, SMB2, then SMB1 (if netbios is enabled).

 

Please update and try again.

Link to comment
13 minutes ago, CS01-HS said:

The latest version won't mount my SMB1 share. I think it might not be passing sec=ntlm but I don't see a mount command in the logs. Any way to debug it?

 

I've tried removing/readding the share with Force all SMB remote shares to SMB v1 set to Yes (as I had it) and No, neither works.

 

Post diagnostics.

Link to comment
1 hour ago, CS01-HS said:

Nice, thank you so much.

Do you mind telling me how my diagnostics helped? Maybe a hidden UD log that might help me in the future.

This:

Nov 23 11:40:15 NAS unassigned.devices: Mount SMB share '//10.0.1.10/Data' using SMB1 protocol.
Nov 23 11:40:15 NAS unassigned.devices: Mount SMB command: /sbin/mount -t cifs -o rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100,vers=1.0,credentials='/tmp/unassigned.devices/credentials_Data' '//10.0.1.10/Data' '/mnt/disks/time-capsule'

It's missing 'sec=ntlm'.

Link to comment
1 hour ago, dlandon said:

It's missing 'sec=ntlm'.

I updated, tested and confirmed it now passes that parameter but only if Force all SMB remote shares to SMB v1 = Yes. It doesn't pass it if it degrades to SMB1 after failing higher versions. Not a problem if that's by design.

Nov 23 17:59:31 NAS unassigned.devices: Mount SMB share '//10.0.1.1/Data' using SMB1 protocol.
Nov 23 17:59:31 NAS unassigned.devices: Mount SMB command: /sbin/mount -t cifs -o rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100,vers=1.0,credentials='/tmp/unassigned.devices/credentials_Data' '//10.0.1.1/Data' '/mnt/disks/time-capsule'

 

Link to comment
1 hour ago, CS01-HS said:

I updated, tested and confirmed it now passes that parameter but only if Force all SMB remote shares to SMB v1 = Yes. It doesn't pass it if it degrades to SMB1 after failing higher versions. Not a problem if that's by design.


Nov 23 17:59:31 NAS unassigned.devices: Mount SMB share '//10.0.1.1/Data' using SMB1 protocol.
Nov 23 17:59:31 NAS unassigned.devices: Mount SMB command: /sbin/mount -t cifs -o rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100,vers=1.0,credentials='/tmp/unassigned.devices/credentials_Data' '//10.0.1.1/Data' '/mnt/disks/time-capsule'

 

I've updated UD and removed the force SMB v1 setting.  There is no reason for it any longer.

  • Thanks 1
Link to comment

Mounting remote SMB shares does not work for me in version 2020.11.23b 

I can create an entry fine, and while doing that it will show the available shares. After the entry is created the "mount" button is greyed out and cannot be clicked.

I did not find any messages relating that in the regular log files, maybe I looked in the wrong location.

This is a rather urgent topic for me, since I have several containers who use remote shares.

 

Link to comment
Just now, b0m541 said:

Mounting remote SMB shares does not work for me in version 2020.11.23b 

I can create an entry fine, and while doing that it will show the available shares. After the entry is created the "mount" button is greyed out and cannot be clicked.

I did not find any messages relating that in the regular log files, maybe I looked in the wrong location.

This is a rather urgent topic for me, since I have several containers who use remote shares.

 

Post diagnostics and a screen shot of the remote shares.

Link to comment
Just now, b0m541 said:

Oh I see. No offense, that data is super privacy invasive and I do care about that.

Please let me know what exact files you need to see where the problem is, I might then as well be able to understand the problem on my own.

 

The diagnostics are anonymized.  If you feel they aren't enough, post a request to Limetech about your concern.  It can be difficult to help without diagnostics.

 

At least show me a screen shot.

Link to comment

I saw that they are anonymized, I looked at them, and my concerns are still there.

The concept to post a complete set of diagnostics data publicly for anyone to read who desires to me is conflicting with the concept of data thriftyness. A request to Limetech will not resolve that conflict.

I honestly doubt that all that data will be necessary to actually find why the mount will not work.

 

I would assume it is also in your interest if users are willing to look into the problem on their own.

So if you let them know, where to look, where is the harm?

I understand that it will be a bit more effort on each side, but privacy has often a cost after all.

 

Link to comment
5 minutes ago, itimpi said:

It would be interesting to know what data you think falls into that category as it is meant to be anonymised.

This is not about any particular file in itself. The whole set in itself is deanonymzing you 100%. Every setup described in that detail is unique. Some of the files would be sufficient to verify the dataset against a given setup, as e.g. the combination of hardware drive names in use.

 

Link to comment
6 minutes ago, dlandon said:

Can you at least provide a screen shot of the remote shares of concern?

Sure, knock yourself out:

 

remotemount.thumb.png.5067a40bf442887f041e3d9c746664a8.png

 

The share is mountable on other machines, there are no additional firewall filters for the unraid host. The mount point name is the one generated by the plugin.

Edited by b0m541
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.