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


dlandon

5983 posts in this topic Last Reply

Recommended Posts

  • Replies 6k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

New release of UD.  Changes: When changing the mount point (which is also the share name), the mount point is checked for a duplicate of a user share or another UD device.  Samba cannot handle

While I appreciate your interest in esthetics, there is more to consider than just 'aligning' disk drive mounts: This disk is mounted without a UD script, it is probably better to put it in th

Major new release of UD: "Where are the switches?"  The "Pass Through", "Read Only", "Automount", and "Share" switches have been moved to a new Edit Settings dialog.  This is also where the sc

Posted Images

2 hours ago, tmor2 said:

If by diagnostics you mean "LOG" from here

No, we always mean

 

Go to Tools - Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post in this thread.

Link to post

I have a UD disk that I am running my dockers on. 

 

I want to know if there is a way to create custom mount points and shares on the UD disk and control access via SMB users. 

 

When I share the UD disk, it creates a public share at \\server\Patriot_Blaze_DE3F07580DC602009379\

 

I do not want it public, and I also don't want it named Patriot_Blaze_DE3F07580DC602009379.

 

There are a couple things I am hoping to do with this:

  1.  I want to be able to run an rsync cron job to back up the contents of the UD disk to /mnt/user/backup/docker
  2. I would like to rename the disk, if possible
  3. I want to be able to mount and share arbitrary directories within the UD disk, for example /mnt/disks/Patriot_Blaze_DE3F07580DC602009379/appdata/swag/www as \\server\www only visible to specific samba users
  4. I want to be able to mount shares to arbitrary directories within the UD disk, for example I want to mount /mnt/user/media (or \\server\media) to /mnt/disks/Patriot_Blaze_DE3F07580DC602009379/appdata/swag/www/media
  5. I want to be able to persist all of this

What would be the way to go about this?

Link to post
1 hour ago, SimplifyAndAddCoffee said:

I have a UD disk that I am running my dockers on. 

 

I want to know if there is a way to create custom mount points and shares on the UD disk and control access via SMB users. 

 

When I share the UD disk, it creates a public share at \\server\Patriot_Blaze_DE3F07580DC602009379\

 

I do not want it public, and I also don't want it named Patriot_Blaze_DE3F07580DC602009379.

 

There are a couple things I am hoping to do with this:

  1.  I want to be able to run an rsync cron job to back up the contents of the UD disk to /mnt/user/backup/docker
  2. I would like to rename the disk, if possible
  3. I want to be able to mount and share arbitrary directories within the UD disk, for example /mnt/disks/Patriot_Blaze_DE3F07580DC602009379/appdata/swag/www as \\server\www only visible to specific samba users
  4. I want to be able to mount shares to arbitrary directories within the UD disk, for example I want to mount /mnt/user/media (or \\server\media) to /mnt/disks/Patriot_Blaze_DE3F07580DC602009379/appdata/swag/www/media
  5. I want to be able to persist all of this

What would be the way to go about this?

You can rename the disk by clicking on the mountpoint when the disk is not mounted.

 

For the rest of your request, the best is to use Unraid 6.9 and put the disk in the pool.  You can then manage access rights by Unraid shares.

Link to post
5 minutes ago, dlandon said:

For the rest of your request, the best is to use Unraid 6.9 and put the disk in the pool.  You can then manage access rights by Unraid shares.

Tempting but sounds risky. Is there even a way to pool the disk without losing the data that is currently on it? I have a ton of dockers and a VM all dependent on that disk.

Link to post
11 minutes ago, SimplifyAndAddCoffee said:

Tempting but sounds risky. Is there even a way to pool the disk without losing the data that is currently on it? I have a ton of dockers and a VM all dependent on that disk.

If it is formatted xfs or btrfs, you can just move i to the pool.

Link to post

Hey @dlandon!

 

First of all, thank you for implementing the toggle switch to ud!

 

I expirienced a bug today, which was just a few days ago reported from another user in a similar way.

 

Here's a snap:

image.thumb.png.c11fcdb2b7bca88dd0b5471ace757eef.png

 

In that moment I was copying a large vdisk to my new nvme (pool device 'images').

 

As you can see it does report roughly double the maximum theoretical throughput on that read sequence.

The nvme does report the correct write speed.

 

The other user I mentioned is able to achieve far over 10GB/s write speed reported in the ud section. In fact, his nvme is only capable of 1,7GB/s.

 

Just wanted to inform you... :) 

Link to post

The way UD does the disk speed calculations is not that accurate and should only be used as a rough measure of the speed.  It uses the reads and writes reported by Unraid and it's own time interval to determine the speed.  The reads and writes can be chunky at times.  There is no time averaging, or accounting for buffering of the data in ram to smooth out the disk speed.

Link to post

I replaced every drive in my array and was planning on using unassigned devices to move the data back to the new drives in the array. When I plug an old drive in to attempt to move data on to the new drives in the array it only shows the size and the filesystem just shows a dash. When I attempt xfs_repair I get this:

Phase 1 - find and verify superblock...
bad primary superblock - bad magic number !!!

attempting to find secondary superblock...
.found candidate secondary superblock...
unable to verify superblock, continuing...
.found candidate secondary superblock...
unable to verify superblock, continuing...

and that just goes on forever. I'm not sure what to do and would appreciate any help. No partitions show and I'm unable to mount the disk.

Edited by JahzyB
Link to post
53 minutes ago, jonathanm said:

There doesn't appear to be any attempt to attach the disk in question, and the array is stopped. Recreate the issue then collect the diagnostics and post them.

image.thumb.png.dae0773a02a1ef29f391c39e26f043de.png

That's how it looks with the array started or stopped. Not sure how I'd recreate the issue since it is ongoing and is the same as when the array is stopped. I started the array and am attaching diagnostics.

 

Edited by JahzyB
Link to post
6 minutes ago, JahzyB said:

I started the array and am attaching diagnostics.

Are you sure the drive you are trying to access was one of the data drives?

Do you have a list of the drives as they were in the array before?

Link to post
3 minutes ago, jonathanm said:

Are you sure the drive you are trying to access was one of the data drives?

Do you have a list of the drives as they were in the array before?

I'm sure it was one of the data drives and not parity. I took a snapshot of the array as it was before. I also just tried a different data drive from my previous configuration and the same thing is happening.

Link to post
7 minutes ago, JahzyB said:

I'm sure it was one of the data drives and not parity. I took a snapshot of the array as it was before. I also just tried a different data drive from my previous configuration and the same thing is happening.

Can you attach the drive directly to a SATA connection and try again?

Link to post
Just now, JahzyB said:

This worked!

Many USB adapters modify the addressing of drives. It's one of the reasons why USB is not recommended for array drives.

 

It's generally ok for unassigned devices as long as you don't expect to use the drive directly with SATA interchangeably.

Link to post
6 minutes ago, opdb said:

After i updated the Unassigned Devices Plugin the mounting works and the drive is accessible through krusader but the unmount button isn't working anymore.

 

 

 

977134573_Screenshot2021-02-06213857.thumb.png.90177625451e7926e5f8144857ba9535.png

Click on the '+' and show a screen shot of the mount point.  Also post diagnostics.

Link to post
1 minute ago, opdb said:

There is no file system on the first partition.  The disk 'Unmount' is based on the first partition.  You can unmount the second partition by clicking on the 'Unmount' button on that partition.

 

Unmount the second partition and then remove the first partition and it will go back to what you expect.

Link to post

Can't seem able to mount 2TB USB FAT32 formtted drive:

partd -l

Model: Seagate Expansion (scsi)
Disk /dev/sdg: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0.00B  2000GB  2000GB  fat32

 

fdisk -l /dev/sdg
Disk /dev/sdg: 1.82 TiB, 2000398933504 bytes, 3907029167 sectors
Disk model: Expansion
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x73696d20

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sdg1       1919230059 6204919772 4285689714     2T  a OS/2 Boot Manager
/dev/sdg2        544829025 1089655755  544826731 259.8G 65 Novell Netware 386
/dev/sdg3        168653938  168653938          0     0B 65 Novell Netware 386
/dev/sdg4       2885681152 2885734080      52929  25.8M  0 Empty

Partition table entries are not in disk order.

 

It was formatted on xbox 360, does it make a difference? On windows it just show as one fat32 partition. 

 

I'm able to mount it via shell with mount -t msdos

 

https://ibb.co/RgT0nrW
https://ibb.co/h2RTw52

 

But even mount with this command, I'm not able to make directories with long name , guess such mount method on linux can only do 8.3 naming? Is there an option I could tell mount to support long name just like use on windows?

Edited by rampage
Link to post

It is interesting that fdisk does not show any of the partitions as being a FAT type.  Maybe you would have better luck if you used Windows to delete the existing partitions and then created a new FAT/FAT32 one and formatted the drive on Windows?

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.