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


dlandon

Recommended Posts

1 hour ago, Adriano Frare said:

Dear friends,

 

I have 2 (two) SSDs not format /dev/sdc and /dev/sdd, the unraid server recognize both ssds, but only one show in dashboard.

 

[0:0:0:0]disk SanDisk' Cruzer Fit 1.00 /dev/sda 8.00GB

[1:0:0:0]disk ATA ST1000LM024 HN-M 0001 /dev/sdb 1.00TB

[1:0:1:0]disk ATA P4-480 522a /dev/sdc 480GB

[1:0:2:0]disk ATA P4-480 60 /dev/sdd 480GB

[1:0:3:0]disk ATA WDC WDS480G2G0A- 0000 /dev/sde 480GB

[1:0:4:0]disk ATA ST2000DM001-1ER1 CC43 /dev/sdf 2.00TB

[1:0:5:0]disk ATA ST1000DM003-1CH1 CC47 /dev/sdg 1.00TB

[1:0:6:0]disk ATA ST2000DM001-1ER1 CC43 /dev/sdh 2.00TB

[1:0:7:0]disk ATA ST2000DM001-1ER1 CC26 /dev/sdi 2.00TB

[2:0:0:0]disk ATA ST2000DM008-2FR1 0001 /dev/sdj 2.00TB

[3:0:0:0]disk ATA ST2000VX008-2E31 CV12 /dev/sdk 2.00TB

[4:0:0:0]disk ATA ST1000DM003-1CH1 CC47 /dev/sdl 1.00TB

[5:0:0:0]disk ATA ST1000DM003-1CH1 CC47 /dev/sdm 1.00TB

 

 

 Why dont show/dev/sdd ?

 

Thanks

 

Adriano

Capturar.PNG

How do you have the disks connected?

Link to comment

Hello!

 

I'm encountering an issue and I'm in a bit of a pickle.

 

After a data drive swap in my main array and a UD plugin update, I am no longer able to mount certain drives in UD. I have a total of 10 drives in UD. 2 SSDs, 7 pre-existing HDDs, and 1 new HDD. The 2 SSDs and 1 new HDD mount fine, but the 7 pre-existing HDDs no longer mount. When attempting to mount, the log shows:

 

Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] physical block alignment offset: 4096
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] 35156656128 512-byte logical blocks: (18.0 TB/16.4 TiB)
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] 4096-byte physical blocks
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Write Protect is off
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Mode Sense: 73 00 00 08
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Sep 6 22:08:32 Tower kernel: sdaa: sdaa1
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Attached SCSI disk
Sep 6 22:08:52 Tower emhttpd: WDC_WUH721818ALE6L4_3WKXN7LJ (sdaa) 512 35156656128
Sep 6 22:08:52 Tower emhttpd: read SMART /dev/sdaa
Sep 6 22:09:56 Tower unassigned.devices: Adding disk '/dev/sdaa1'...
Sep 6 22:09:56 Tower unassigned.devices: Mount drive command: /sbin/mount -t 'xfs' -o rw,noatime,nodiratime '/dev/sdaa1' '/mnt/disks/<drivename>'
Sep 6 22:09:56 Tower unassigned.devices: Mount of '/dev/sdaa1' failed: 'mount: /mnt/disks/<drivename>: mount point does not exist. '
Sep 6 22:15:30 Tower unassigned.devices: Adding disk '/dev/sdaa1'...
Sep 6 22:15:30 Tower unassigned.devices: Mount drive command: /sbin/mount -t 'xfs' -o rw,noatime,nodiratime '/dev/sdaa1' '/mnt/disks/<drivename>'
Sep 6 22:15:30 Tower unassigned.devices: Mount of '/dev/sdaa1' failed: 'mount: /mnt/disks/<drivename>: mount point does not exist. '
Sep 6 22:18:48 Tower unassigned.devices: Adding disk '/dev/sdaa1'...
Sep 6 22:18:48 Tower unassigned.devices: Mount drive command: /sbin/mount -t 'xfs' -o rw,noatime,nodiratime '/dev/sdaa1' '/mnt/disks/<drivename>'
Sep 6 22:18:48 Tower unassigned.devices: Mount of '/dev/sdaa1' failed: 'mount: /mnt/disks/<drivename>: mount point does not exist. '

 

This is the same error show for all 7 of my drives which previously mounted just fine. Anyone have any insight? I really need to get this fixed ASAP as these drives contain data I need to access.

 

I have tried reinstalling the plugin as well as full server restarts, neither seem to help.

Edited by doubley
Link to comment
4 hours ago, doubley said:

Hello!

 

I'm encountering an issue and I'm in a bit of a pickle.

 

After a data drive swap in my main array and a UD plugin update, I am no longer able to mount certain drives in UD. I have a total of 10 drives in UD. 2 SSDs, 7 pre-existing HDDs, and 1 new HDD. The 2 SSDs and 1 new HDD mount fine, but the 7 pre-existing HDDs no longer mount. When attempting to mount, the log shows:

 

Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] physical block alignment offset: 4096
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] 35156656128 512-byte logical blocks: (18.0 TB/16.4 TiB)
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] 4096-byte physical blocks
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Write Protect is off
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Mode Sense: 73 00 00 08
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Sep 6 22:08:32 Tower kernel: sdaa: sdaa1
Sep 6 22:08:32 Tower kernel: sd 8:0:7:0: [sdaa] Attached SCSI disk
Sep 6 22:08:52 Tower emhttpd: WDC_WUH721818ALE6L4_3WKXN7LJ (sdaa) 512 35156656128
Sep 6 22:08:52 Tower emhttpd: read SMART /dev/sdaa
Sep 6 22:09:56 Tower unassigned.devices: Adding disk '/dev/sdaa1'...
Sep 6 22:09:56 Tower unassigned.devices: Mount drive command: /sbin/mount -t 'xfs' -o rw,noatime,nodiratime '/dev/sdaa1' '/mnt/disks/<drivename>'
Sep 6 22:09:56 Tower unassigned.devices: Mount of '/dev/sdaa1' failed: 'mount: /mnt/disks/<drivename>: mount point does not exist. '
Sep 6 22:15:30 Tower unassigned.devices: Adding disk '/dev/sdaa1'...
Sep 6 22:15:30 Tower unassigned.devices: Mount drive command: /sbin/mount -t 'xfs' -o rw,noatime,nodiratime '/dev/sdaa1' '/mnt/disks/<drivename>'
Sep 6 22:15:30 Tower unassigned.devices: Mount of '/dev/sdaa1' failed: 'mount: /mnt/disks/<drivename>: mount point does not exist. '
Sep 6 22:18:48 Tower unassigned.devices: Adding disk '/dev/sdaa1'...
Sep 6 22:18:48 Tower unassigned.devices: Mount drive command: /sbin/mount -t 'xfs' -o rw,noatime,nodiratime '/dev/sdaa1' '/mnt/disks/<drivename>'
Sep 6 22:18:48 Tower unassigned.devices: Mount of '/dev/sdaa1' failed: 'mount: /mnt/disks/<drivename>: mount point does not exist. '

 

This is the same error show for all 7 of my drives which previously mounted just fine. Anyone have any insight? I really need to get this fixed ASAP as these drives contain data I need to access.

 

I have tried reinstalling the plugin as well as full server restarts, neither seem to help.

Are you out of memory?  Post your diagnostics.

Link to comment
On 9/7/2021 at 7:32 AM, Adriano Frare said:

 

Both SSD are attached board H310 disk controller.

 

[1:0:1:0]disk ATA P4-480 522a /dev/sdc 480GB

[1:0:2:0]disk ATA P4-480 60 /dev/sdd 480GB

 

why  both the ssds not show in dashboard as unassigned devices ?

 

On 9/7/2021 at 7:32 AM, Adriano Frare said:

 

 

 

 

Link to comment

I've got an issue with a hotswap drive that I've mounted to my unraid.

 

I want to back up some file to a cold storage drive. I formatted the drive as exfat in windows and can mount it in unraid and copy files to it over the smb share. 

However, I want to use mc to copy files on the fileserver itself.

The problem is the folders are all owned by root, so I cant copy files to it. 

 

The error I get is:

Quote

Cannot chown target directory /mnt/disks/sharename
Operation not permitted (1)


I can cp files with the command line. Just think its weird that mc can't do it.

Edited by AlexHackney
Link to comment

The plugin install script for some reason doesn't seem to write to `/boot/config/smb-extra.conf`. At first I thought it was because that file didn't exist for me, and `add-smb-extra` appends to it, but even after touching that file and reinstalling the plugin, it never gets written to. I just ended up running `/tmp/unassigned-devices/add-smb-extra` manually. Not sure what the reason behind this is, although I'm curious why the `add-smb-extra` script is invoked through `at` with a time of now...

Link to comment
On 9/9/2021 at 10:19 PM, bavism said:

The plugin install script for some reason doesn't seem to write to `/boot/config/smb-extra.conf`. At first I thought it was because that file didn't exist for me, and `add-smb-extra` appends to it, but even after touching that file and reinstalling the plugin, it never gets written to. I just ended up running `/tmp/unassigned-devices/add-smb-extra` manually. Not sure what the reason behind this is, although I'm curious why the `add-smb-extra` script is invoked through `at` with a time of now...

Working fine for me on plugin installation.

 

The 'at' was used because if it is not the plugin install will not show the 'Done' button.  Just a little fluke in the plugin install.

Link to comment
On 9/7/2021 at 5:03 AM, doubley said:

Ha, yep, that did it. Just curious - why the change? 

I've made a few security changes and the '#' character is a problem.  When the '#' and '&' character along with a few others like single and double quotes are used in the mount point, they are converted to underscore.

 

UD is written in php and there are some reserved and inappropriate characters that cannot be used in variables.

  • Like 1
Link to comment

Hello, I'm trying to mount a remote SMB share but it won't mount.  I've seen some people saying to use the IP address vs the hostname, but I don't even see where that can be edited.

 

From the system log:

Sep 12 06:16:54 Tower unassigned.devices: Mount SMB share '//DIETPI/sda2' using SMB default protocol.
Sep 12 06:16:54 Tower unassigned.devices: Mount SMB command: /sbin/mount -t 'cifs' -o rw,noserverino,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100,credentials='/tmp/unassigned.devices/credentials_sda2' '//DIETPI/sda2' '/mnt/remotes/DIETPI_sda2'
Sep 12 06:16:54 Tower kernel: CIFS: Attempting to mount //DIETPI/sda2
Sep 12 06:16:54 Tower kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Sep 12 06:16:54 Tower unassigned.devices: Mount of '//DIETPI/sda2' failed: 'mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) '.

 

I have verified that the mount point exists and I made the DIETPI_sda2 folder myself and ensure it was 777 just like the unassigned device folders in the disks mount point.

root@Tower:/mnt/remotes# ls -la
total 0
drwxrwxrwt  3 nobody users  60 Sep 12 22:16 ./
drwxr-xr-x 26 root   root  520 Sep 11 12:41 ../
drwxrwxrwx  2 root   root   40 Sep 12 22:16 DIETPI_sda2/
root@Tower:/mnt/remotes#

 

I am running unRaid 6.9.2 and UD 2021.08.28 

Link to comment
3 minutes ago, nerbonne said:

Hello, I'm trying to mount a remote SMB share but it won't mount.  I've seen some people saying to use the IP address vs the hostname, but I don't even see where that can be edited.

 

From the system log:

Sep 12 06:16:54 Tower unassigned.devices: Mount SMB share '//DIETPI/sda2' using SMB default protocol.
Sep 12 06:16:54 Tower unassigned.devices: Mount SMB command: /sbin/mount -t 'cifs' -o rw,noserverino,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100,credentials='/tmp/unassigned.devices/credentials_sda2' '//DIETPI/sda2' '/mnt/remotes/DIETPI_sda2'
Sep 12 06:16:54 Tower kernel: CIFS: Attempting to mount //DIETPI/sda2
Sep 12 06:16:54 Tower kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Sep 12 06:16:54 Tower unassigned.devices: Mount of '//DIETPI/sda2' failed: 'mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) '.

 

I have verified that the mount point exists and I made the DIETPI_sda2 folder myself and ensure it was 777 just like the unassigned device folders in the disks mount point.

root@Tower:/mnt/remotes# ls -la
total 0
drwxrwxrwt  3 nobody users  60 Sep 12 22:16 ./
drwxr-xr-x 26 root   root  520 Sep 11 12:41 ../
drwxrwxrwx  2 root   root   40 Sep 12 22:16 DIETPI_sda2/
root@Tower:/mnt/remotes#

 

I am running unRaid 6.9.2 and UD 2021.08.28 

That looks like a credentials issue.  Be sure not to use special characters like '#', '?', '!', or quotes.

 

You enter the IP address where you choose the server.  Just type it in and don't click the search for servers button.

Link to comment

New release of UD:

 

The major change is support for NFSv4.  You will need 6.10.rc2e or later for NFSv4 support.  The default is to mount all remote NFS shares with NFSv3.  If you want to enable NFSv4, go to the UD settings and select 'NFSv4' as the default version to mount.

Link to comment
23 hours ago, dlandon said:

That looks like a credentials issue.  Be sure not to use special characters like '#', '?', '!', or quotes.

 

You enter the IP address where you choose the server.  Just type it in and don't click the search for servers button.

 

it was, in fact, an incorrect username.  for some reason i used a different username for the samba share than the ssh user.  anyways, all sorted and thank you.  also i was able to use the IP address.

Link to comment

[Feature request] Add encrypted icon when the HDD is encrypted

 

Hello, this is not priority, but I noticed that my Unassigned device hdd doesn't show the encrypted icon, like the ones in my array.

I know this is not a bug or anything, just cosmetics, but wanted to let you know to see if in the future can be added.

image.png.afb485392cded7adf2f0698bb328fe03.png

Link to comment
21 minutes ago, hrv231 said:

[Feature request] Add encrypted icon when the HDD is encrypted

 

Hello, this is not priority, but I noticed that my Unassigned device hdd doesn't show the encrypted icon, like the ones in my array.

I know this is not a bug or anything, just cosmetics, but wanted to let you know to see if in the future can be added.

image.png.afb485392cded7adf2f0698bb328fe03.png

Already There:

181364893_EncryptedIcon.png.bbeb71ad446d97513a773fe2501dd654.png

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.