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


Recommended Posts

  

Can someone please tell me what these Errors are about? I've been regularly getting them for a few months now. Diagnostics attached.

 

Quote

Feb 8 09:58:32 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 10:02:15 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 10:29:09 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 10:32:52 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 10:41:54 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 11:32:49 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 11:37:38 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 11:38:18 SERV-X370 emhttpd: spinning down /dev/sdh Feb 8 11:38:26 SERV-X370 emhttpd: spinning down /dev/sdi Feb 8 11:38:27 SERV-X370 emhttpd: spinning down /dev/sdj Feb 8 11:38:27 SERV-X370 emhttpd: spinning down /dev/sda Feb 8 11:38:37 SERV-X370 kernel: mdcmd (50): set md_write_method 0 Feb 8 11:38:37 SERV-X370 kernel: Feb 8 11:40:50 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 12:00:01 SERV-X370 root: Starting Mover Feb 8 12:00:01 SERV-X370 root: Forcing turbo write on Feb 8 12:00:01 SERV-X370 kernel: mdcmd (51): set md_write_method 1 Feb 8 12:00:01 SERV-X370 kernel: Feb 8 12:00:01 SERV-X370 root: ionice -c 3 nice -n 5 /usr/local/emhttp/plugins/ca.mover.tuning/age_mover start 15 24 0 '' '' '' '' no 90 '' '' Feb 8 12:00:24 SERV-X370 root: Restoring original turbo write mode Feb 8 12:00:24 SERV-X370 kernel: mdcmd (52): set md_write_method auto Feb 8 12:00:24 SERV-X370 kernel: Feb 8 12:07:23 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 12:08:59 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 12:16:48 SERV-X370 emhttpd: spinning down /dev/sdg Feb 8 12:16:51 SERV-X370 emhttpd: spinning down /dev/sdk Feb 8 12:32:19 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 12:32:19 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 12:38:28 SERV-X370 emhttpd: spinning down /dev/sda Feb 8 12:45:34 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 12:47:05 SERV-X370 emhttpd: spinning down /dev/sdc Feb 8 12:59:58 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 13:03:10 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 13:27:40 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 13:34:05 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 13:35:41 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 13:37:17 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s! Feb 8 13:38:29 SERV-X370 emhttpd: spinning down /dev/sda Feb 8 13:40:30 SERV-X370 unassigned.devices: Error: shell_exec(/bin/lsblk -nb -o size '/dev/sda' 2>/dev/null) took longer than 5s!

 

 

serv-x370-diagnostics-20220208-1402.zip

Link to comment
On 1/23/2022 at 6:57 AM, wambo said:

I think I found out why I did not find it earlier:
The help for UD  / SMB / Shares and such opens from the Click on Boot Device
I'm not sure whether the entry Boot device was present before I installed UD (I guess it was), but its a bit counter intuitive to check there.
(Click red to open both blue (and the following blue as well, not on screenshot)

image.thumb.png.2523570982db45ba8e7f7bcff9195623.png

This is fixed in the next release.

Link to comment

2022.02.09 release of UD.  The biggest changes are:

  • The handling of the display tables in UD has been changed.  The tables are initially created and then filled after an update.  You'll probably see the Unraid spinner at times instead of a blank screen as previously.
  • The help works properly now.  Clicking on the disk devices table header will toggle the help.  This also fixes the situation where the UD help will show in the non-tabbed view when toggling the help on other device table headers.
  • Udev actions are cleaned up even more.  No udevadm triggers are initiated any more.
  • Php errors are logged to help in tracking down php issues.

Please update as there are several issues that have been addressed in this latest version:

  • Same device shows in UD and historical devices.
  • Device information not being updated in UD after a change in the mountpoint name.  This causes the old device label to be shown.
  • udev being triggered causing btrfs duplicate uuid messages in log when the array is rebooted.

Before asking for support, update UD first and see if the issue is addressed.  If it's not we need the diagnostics from the latest version to offer support.

Link to comment

future feature request  for UD plugin on the main page.. offer "View"  just like you can do for Array, pools , flash

 

so incase you dont do "share"  you can least click the File Folder icon to see whats on the unassigned drive .. to see the contents instead of either mounting share or needing to run  Krusader to view the drive

 

i tried to see a feature  in the UD settings or disk settings if it was   Unraid that didnt allow it but couldnt..

 

but be a nice feature if possible

 

Edited by comet424
Link to comment

which icon lets me browse?  if its supposed to be that white box  beside the name transport data ..  thats unclickable.. i tried changing the setting  pass through  but that didnt help.. not sure what the pass through does

 

also checked my other unraids  the little box  is also white unclickable if thats what you mean by browse

unless i need to enable something?

ud disk.PNG

ud disk2.PNG

Edited by comet424
Link to comment

ah ok its working now  what i did was refresh

 

what seems maybe its a chrome issue?

 

when i click the "transport data"     it actually  loaded up the part says "Change Disk Mount Point"

 

so even though it was with the white box..  and you clicked the name  it get Change Disk Mount Point"  but i had to hit F5  and then it worked....

 

gonna try if it works on IE   

 

Link to comment

Hi,

I am unable to mount a single drive. I am able to mount all others.

 

 

 Mount of 'sda2' failed: '$MFTMirr does not match $MFT (record 28). Failed to mount '/dev/sda2': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details. '
Feb 11 11:21:06 Tower unassigned.devices: Partition '4TB_Intern' cannot be mounted.
Feb 11 11:21:37 Tower unassigned.devices: Partition 'sda1' does not have a file system and cannot be mounted.
Feb 11 11:21:37 Tower unassigned.devices: Adding partition 'sda2'...
Feb 11 11:21:37 Tower unassigned.devices: Mounting partition 'sda2' at mountpoint '/mnt/disks/4TB_Intern'...
Feb 11 11:21:37 Tower unassigned.devices: Mount drive command: /sbin/mount -t 'ntfs' -o ro,noatime,nodiratime,nodev,nosuid,nls=utf8,umask=000 '/dev/sda2' '/mnt/disks/4TB_Intern'
Feb 11 11:21:37 Tower unassigned.devices: Mount of 'sda2' failed: '$MFTMirr does not match $MFT (record 28). Failed to mount '/dev/sda2': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details. '
Feb 11 11:21:37 Tower unassigned.devices: Partition '4TB_Intern' cannot be mounted.

 

I have already used chkdsk. It does not find any errors.

The drive is shown normally in Win10.

 

Anything else I could do?

Link to comment

Found these errors in my syslog.  At the time I was just checking the User Scripts plugin script logs.  I don't remember seeing any errors on the console.  Not even sure if what I was doing triggered the errors to be honest.

 

Feb 11 21:25:29 tdm webGUI: Successful login user root from xx.xx.xx.xx
Feb 11 21:25:43 tdm emhttpd: cmd: /usr/local/emhttp/plugins/user.scripts/showLog.php tdmrsync init
Feb 11 21:25:43 tdm emhttpd: spinning down /dev/sdg
Feb 11 21:25:43 tdm emhttpd: spinning down /dev/sdf
Feb 11 21:26:10 tdm emhttpd: cmd: /usr/local/emhttp/plugins/user.scripts/showLog.php modprobe
Feb 11 21:26:26 tdm unassigned.devices: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 126
Feb 11 21:26:26 tdm unassigned.devices: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 126
Feb 11 21:26:26 tdm unassigned.devices: PHP Warning: rename(/var/state/unassigned.devices/unassigned.devices.ini-,/var/state/unassigned.devices/unassigned.devices.ini): No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 168
Feb 11 21:26:49 tdm emhttpd: shcmd (2330269): /usr/local/sbin/update_cron
Feb 11 21:27:13 tdm emhttpd: shcmd (2330420): /usr/local/sbin/mover |& logger &

Diagnostics attached

tdm-diagnostics-20220211-2133.zip

Link to comment
8 minutes ago, dalben said:

Not even sure if what I was doing triggered the errors to be honest.

Those are php program errors.  I've implemented logging of php errors so I can track them down.  It's a programming issue and nothing you've done.  They shouldn't affect you.  I will have these fixed in the next release.

Link to comment

Hello fellow Unraid users!

 

Yesterday I had to restart my Unraid server and found that my autostart VM no longer worked. After some troubleshooting I found that the issue was that the disk image could no longer be found, and the reason for that is because the unassigned device I was using changed its name for an unknown reason after a restart. Is this normal?

 

I guess the better question is, why do both paths still exist? It looks like some of the directory hierarchy is left in the original path, but the content is gone and only available from the new path.

 

Did I just miss an update message with the Unassigned Devices plugin? :)

 

Cheers,

Ben.

 

PS: I posted this in General Support first but it was not appreciated...

MxZIF3BAV6.png

Link to comment
11 hours ago, dlandon said:

Those are php program errors.  I've implemented logging of php errors so I can track them down.  It's a programming issue and nothing you've done.  They shouldn't affect you.  I will have these fixed in the next release.

 

Thanks.  Correct, I didn't have any issues but just thought I'd report the alerts. 

Link to comment

im getting these php errors  not sure why?

Feb 11 19:22:18 mitchsserver kernel: ACPI: Early table checksum verification disabled
Feb 11 19:22:18 mitchsserver kernel: floppy0: no floppy controllers found
Feb 11 19:22:18 mitchsserver kernel: random: 7 urandom warning(s) missed due to ratelimiting
Feb 11 19:22:27 mitchsserver rpc.statd[1731]: Failed to read /var/lib/nfs/state: Success
Feb 11 19:23:00 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:03 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:05 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:08 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:11 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 21:07:29 mitchsserver dhcpcd[1686]: br0: failed to renew DHCP, rebinding

 

 

mitchsserver-diagnostics-20220212-0035.zip

Link to comment
17 hours ago, Fulgurator said:

because the unassigned device I was using changed its name for an unknown reason after a restart. Is this normal?

You have let the mount point default and the default is now different.  Click on the mount point and set it to the value it was originally and save it.  UD will then always use the value you set.  If you want to keep the default after installing a new disk, click on the mount point to change it and then just click 'Change' to commit it.

  • Like 1
Link to comment
7 hours ago, comet424 said:

im getting these php errors  not sure why?

Feb 11 19:22:18 mitchsserver kernel: ACPI: Early table checksum verification disabled
Feb 11 19:22:18 mitchsserver kernel: floppy0: no floppy controllers found
Feb 11 19:22:18 mitchsserver kernel: random: 7 urandom warning(s) missed due to ratelimiting
Feb 11 19:22:27 mitchsserver rpc.statd[1731]: Failed to read /var/lib/nfs/state: Success
Feb 11 19:23:00 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:03 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:05 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:08 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 19:23:11 mitchsserver unassigned.devices: PHP Warning: parse_ini_file(state/diskload.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unassigned.devices/include/lib.php on line 351
Feb 11 21:07:29 mitchsserver dhcpcd[1686]: br0: failed to renew DHCP, rebinding

 

 

mitchsserver-diagnostics-20220212-0035.zip 85.94 kB · 1 download

FIxed in the next release.

Link to comment

@dlandon

I really like to see mounting SFTP servers through Unassigned Devices. How I do it at the moment:

# settings
sftp_user="john"
sftp_pass="password"
sftp_host="192.168.178.8"
sftp_port="4321"
sftp_path="/uploads"
# install sshfs
cd /tmp
wget https://slacky.eu/repository/slackware64-14.2/system/sshfs-fuse/2.8/sshfs-fuse-2.8-x86_64-1sl.txz
upgradepkg --install-new sshfs-fuse-2.8-x86_64-1sl.txz
# add fingerprint only once
if [[ $(cat /root/.ssh/known_hosts) != *"$sftp_host"* ]]; then
  ssh-keyscan 192.168.178.8 2>&1 | grep -v "^#" >> /root/.ssh/known_hosts
fi
# mount sftp server
mkdir -p "/mnt/disks/$sftp_user-at-$sftp_host$sftp_path"
sshfs -p "$sftp_port" -o reconnect -o password_stdin "$sftp_user@$sftp_host:$sftp_path" "/mnt/disks/$sftp_user-at-$sftp_host$sftp_path" <<< "$sftp_pass"

 

Of course there would be mechanism needed if the fingerprint changes. Or it gets automatically deleted after the user removes the UD mount. So the user is forced to re-add the SFTP mount if the fingerprint has changed. Which I think is ok as it shouldn't happen.

  • Like 1
Link to comment
1 hour ago, dlandon said:

You have let the mount point default and the default is now different.

Thanks, changing it back to what I had (and moving back my VMs & Docker paths to their preferred spot...) solved it, I should have paid more attention when setting up UD long ago. Now that I've specified an explicit mount point, the next time the default changes I won't be affected. :)

 

Cheers!

Ben.

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.