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


Recommended Posts

Anyone having an issue with the smb mounts, please provide me with more information on your setup and a copy of the UD log.  Be sure to let me know what version of unRAID you are using.  Some changes were made to UD to better handle the situation when the remote smb share goes off-line, but there may be more areas where changes need to be made.

 

From the reports in this thread, the issue seems to be with UD hanging when a remote smb share goes off-line.

Link to comment
On 9/3/2017 at 1:08 PM, dlandon said:

I have implemented partitioning xfs and btrfs disks in UD to match the setting of Settings->Disk Settings->Default Partition Format.  The partition will start at sector 63 or 64 based on that setting.  This should allow disks formatted and partitioned with UD to properly go into the array.

 

With the release of 6.4.0-rc8q and the change to be compatible with 4Kn disks, there seem to be more issues with disks formatted with UD and put into the array.  I had to change out my cache disk on rc7 and unRAID would not format it.  I formatted the new cache disk with UD and installed it as my new cache disk.  unRAID accepted the disk and went happily on its way.  When I upgraded to rc8, the cache disk became un-mountable.  I would have thought that the original formatted cache disk starting at sector 2048 would be rejected by unRAID and force me to format it.  It did not and accepted that format.  I'm seeing others that have upgraded that are probably having the same problem.

 

Please consider this feature beta until it can be tested beyond what I could do with my limited supply of disks.  For those of you with a tolerance to possibly having problems, please check it out for me and provide feedback.  I'm not an expert on unRAID disk formatting and partitioning, but I think what I did will accomplish the job.

 

Note: I reluctantly put the time into this feature because of the issues that have come up and I don't see LT folding UD into unRAID in this release.  Hopefully this is all that is needed.

As it turns out this is not the total answer to the format and partition incompatibility.  After some testing, I can't format a disk with UD and have it accepted into the array.  I'm awaiting some help from LT or others knowledgeable on the format and partition layout for unRAID so I can work this out.

  • Like 1
Link to comment
19 minutes ago, Spies said:

But I'm saying that "Yes (hidden)" still shows under \\tower

 

In my mind this should mean that you cannot browse to it under \\tower but typing the absolute path \\tower\duplicati would mean you could still access it?

The way it works is:

'Yes' - share shows when 'Network' is clicked in Windows.  The samba parameter 'browseable' is set to 'yes'

'Yes  (hidden)' - share does not show when 'Network' is clicked in Windows.  The samba parameter 'browseable' is set to 'no'.

 

Both are accessible with '\\Tower\slare'.

 

This is how it works for me.

Link to comment
22 minutes ago, Spies said:

Any way i can diagnose why it isn't working? setting hidden on the main unraid shares works fine.

 

Could it be SMB caching somewhere?

 

unassigned.jpg

Go to a command line and type:

'nano /etc/samba/unassigned.devices/duplicati' and see what the 'browseable' parameter is set to.  If set to 'no' it should not be browseable.  i.e it should not show in the 'Network'.

 

@Squid is right.  It can take a while for the setting to take effect.

 

I don't see any users listed under the smb settings.  Do you have any users set up for your server?

Link to comment

I just looked at the code and I see the situation you are seeing.  If you don't have any users defined, the share is always browseable and you'll see in the UD log a message about no valid smb users defined and the share can't be accessed.  I will change this so the 'Yes (hidden)' setting will in fact make the share not browseable.

Link to comment
6 minutes ago, dlandon said:

I just looked at the code and I see the situation you are seeing.  If you don't have any users defined, the share is always browseable and you'll see in the UD log a message about no valid smb users defined and the share can't be accessed.  I will change this so the 'Yes (hidden)' setting will in fact make the share not browseable.

Thanks.

Link to comment

A new version of UD is available.  The major feature update is the ability to partition a disk in UD compatible with the array partitioning.  I have tested this with a 2TB disk, but I don't have a disk larger than that to test gpt partitions.  If anyone is willing, I would appreciate it if you could format a disk larger than 2TB and let me know if unRAID accepts it as properly partitioned.

 

The other change is to add some timeouts to the 'df' commands on remote mounted smb and nfs shares to try to alleviate the hangs when a remote share goes off-line.

 

The smb 'browseable' parameter is now set properly when no smb users are found.

Link to comment
1 hour ago, dlandon said:

A new version of UD is available.  The major feature update is the ability to partition a disk in UD compatible with the array partitioning.  I have tested this with a 2TB disk, but I don't have a disk larger than that to test gpt partitions.  If anyone is willing, I would appreciate it if you could format a disk larger than 2TB and let me know if unRAID accepts it as properly partitioned.

 

The other change is to add some timeouts to the 'df' commands on remote mounted smb and nfs shares to try to alleviate the hangs when a remote share goes off-line.

 

The smb 'browseable' parameter is now set properly when no smb users are found.

 

Initial testing of the partition compatibility was done by me on a 2TB disk (msdos), and on a 3TB disk (gpt) by @johnnie.black.  Looks like the format compatibility is working.

 

Be careful though until some more feedback is provided that the partition incompatibility is solved.

Link to comment
1 hour ago, dlandon said:

 

Initial testing of the partition compatibility was done by me on a 2TB disk (msdos), and on a 3TB disk (gpt) by @johnnie.black.  Looks like the format compatibility is working.

 

Be careful though until some more feedback is provided that the partition incompatibility is solved.

I've got an 8TB that just finished preclear. I'll try it on that as soon as I get some free time this afternoon.

Link to comment
5 hours ago, dlandon said:

 

Initial testing of the partition compatibility was done by me on a 2TB disk (msdos), and on a 3TB disk (gpt) by @johnnie.black.  Looks like the format compatibility is working.

 

Be careful though until some more feedback is provided that the partition incompatibility is solved.

Formatted an 8TB Seagate ST8000DM004 to XFS via UD and SMB 3. Installed the drive internally into my server and added to array as a replacement without having to reformat. Data rebuild is in progress. Looks like no issues with the formatting.

Link to comment
7 minutes ago, wgstarks said:

Formatted an 8TB Seagate ST8000DM004 to XFS via UD and SMB 3. Installed the drive internally into my server and added to array as a replacement without having to reformat. Data rebuild is in progress. Looks like no issues with the formatting.

Excellent.  Thank you for the feedback.

Link to comment
8 minutes ago, wgstarks said:

Formatted an 8TB Seagate ST8000DM004 to XFS via UD and SMB 3. Installed the drive internally into my server and added to array as a replacement without having to reformat. Data rebuild is in progress. Looks like no issues with the formatting.

Maybe I'm missing something here, but if a disk is used to replace/rebuild another disk in the array then its history, such as whether or not it was formatted in UD, doesn't matter, does it?

Link to comment
2 minutes ago, trurl said:

Maybe I'm missing something here, but if a disk is used to replace/rebuild another disk in the array then its history, such as whether or not it was formatted in UD, doesn't matter, does it?

AFAIK There's issues in rc8 rebuilding onto a drive that doesn't have the proper partitioning already set.

Link to comment
8 minutes ago, Squid said:

AFAIK There's issues in rc8 rebuilding onto a drive that doesn't have the proper partitioning already set.

UD is now creating the proper partition format for the array and if it was accepted into the array without formatting, it is good to go.

 

What you might be confused about is previously a disk would be accepted in pre rc8 versions that weren't the proper partition format.  LT says that because of the encryption on disks, the format is now more strict and disks not properly partitioned will not be accepted into the array without a format.

Link to comment
15 minutes ago, dlandon said:

UD is now creating the proper partition format for the array and if it was accepted into the array without formatting, it is good to go.

 

What you might be confused about is previously a disk would be accepted in pre rc8 versions that weren't the proper partition format.  LT says that because of the encryption on disks, the format is now more strict and disks not properly partitioned will not be accepted into the array without a format.

 

Link to comment
29 minutes ago, trurl said:

Maybe I'm missing something here, but if a disk is used to replace/rebuild another disk in the array then its history, such as whether or not it was formatted in UD, doesn't matter, does it?

Correct.  It doesn't matter.  UD formats exactly like unRAID.

Link to comment
  • trurl pinned this topic

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.