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


dlandon

5531 posts in this topic Last Reply

Recommended Posts

Reboot? Oh, sh*t.

 

This is USB, disks can go offline. User simply remove them without unmounting before. Something they do on Windows, etc. all the time. Linux can't work with that? Unbelievable.

 

In my case I could not Unmount thru the UD plugin. It simply didn't unmount. So I simply removed the device. 

 

Thanks.

 

Edited by hawihoney
Link to post
  • Replies 5.5k
  • 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

<step on soap box> Keep in mind that the Unraid array disk configuration is static and doesn't change until it is stopped.  UD has to deal with hot plugged disks, devices being dynamically

Posted Images

25 minutes ago, hawihoney said:

Reboot? Oh, sh*t.

 

This is USB, disks can go offline. User simply remove them without unmounting before. Something they do on Windows, etc. all the time. Linux can't work with that? Unbelievable.

 

In my case I could not Unmount thru the UD plugin. It simply didn't unmount. So I simply removed the device. 

 

Thanks.

 

Try:

unmount /dev/sdb1

at the command line and see if it will unmount.  Let me know if it does and I will try to come up with an answer for UD to handle this situation.

Link to post
42 minutes ago, hawihoney said:

Reboot? Oh, sh*t.

 

This is USB, disks can go offline. User simply remove them without unmounting before. Something they do on Windows, etc. all the time. Linux can't work with that? Unbelievable.

 

In my case I could not Unmount thru the UD plugin. It simply didn't unmount. So I simply removed the device. 

 

Thanks.

 

If a disk won't unmount, the answer is not to just yank it out of the system.  Find out why it won't unmount and clear it up.  Linux is a lot more particular about unmounting devices.

Link to post
8 hours ago, dlandon said:

Looks like it was recognized by UD:


Dec 23 00:37:59 iNAS kernel: usb 3-9: new high-speed USB device number 6 using xhci_hcd
Dec 23 00:37:59 iNAS kernel: usb-storage 3-9:1.0: USB Mass Storage device detected
Dec 23 00:37:59 iNAS kernel: scsi host7: usb-storage 3-9:1.0
Dec 23 00:38:00 iNAS kernel: scsi 7:0:0:0: Direct-Access     PNY      USB 2.0 FD       1100 PQ: 0 ANSI: 4
Dec 23 00:38:00 iNAS kernel: sd 7:0:0:0: Attached scsi generic sg6 type 0
Dec 23 00:38:00 iNAS kernel: sd 7:0:0:0: [sdg] 15950592 512-byte logical blocks: (8.17 GB/7.61 GiB)
Dec 23 00:38:00 iNAS kernel: sd 7:0:0:0: [sdg] Write Protect is off
Dec 23 00:38:00 iNAS kernel: sd 7:0:0:0: [sdg] Mode Sense: 43 00 00 00
Dec 23 00:38:00 iNAS kernel: sd 7:0:0:0: [sdg] No Caching mode page found
Dec 23 00:38:00 iNAS kernel: sd 7:0:0:0: [sdg] Assuming drive cache: write through
Dec 23 00:38:00 iNAS kernel: sdg: sdg1
Dec 23 00:38:00 iNAS kernel: sd 7:0:0:0: [sdg] Attached SCSI removable disk
Dec 23 00:38:00 iNAS unassigned.devices: Disk with serial 'USB_2.0_FD_AD6AHE03000000194', mountpoint 'PNY_USB_2.0_FD' is not set to auto mount.
Dec 23 00:38:00 iNAS unassigned.devices: Issue spin down timer for device '/dev/sdg'.

Does it not show up in the UD page?

hi, this is my USB stick which I also tried. its 8GB and it appears in UD page but when I insert the 8TB external nothing shows in UD page. 

Edited by emersonicus
Link to post
1 hour ago, dlandon said:

Try:


unmount /dev/sdb1

at the command line and see if it will unmount.  Let me know if it does and I will try to come up with an answer for UD to handle this situation.

root@Tower:~# mount | grep sdb
/dev/sdb1 on /mnt/disks/Elements type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)

 

root@Tower:~# umount /dev/sdb1
umount: /mnt/disks/Elements: not mounted.

 

Funny result.

 

Link to post
On 12/16/2020 at 4:36 PM, dlandon said:

I don't know where that inappropriate name came from, but UD can't handle that.  I'd like to try to understand how this happened.  It looks like your remote server gave some html code.

 

Please post diagnostics first, then delete the /flash/config/plugins/unassigned.devices/samba_mount.cfg file and reboot.

 

This will remove all of your remote mounts.

Thanks a lot for the fast answer.

I defently try to delete the samba_mount.cfg from the UAD folder.

I also attached the diagnostics.

 

Thanks again and happy holiday
 

unraid-diagnostics-20201223-1431.zip

Link to post
6 hours ago, hawihoney said:

root@Tower:~# mount | grep sdb
/dev/sdb1 on /mnt/disks/Elements type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)

 

root@Tower:~# umount /dev/sdb1
umount: /mnt/disks/Elements: not mounted.

 

Funny result.

 

What shows in UD now?

Link to post
31 minutes ago, dlandon said:

What shows in UD now?

The same as in the screenshot of the main page above. UD shows sdb1/AW11 while mount reports sdb1/Elements.

 

sdb1/Elements is not attached to mainboard. Currently attached, but not mounted and not useable, is sdb1/AW11.

 

Unraid is completely out of sync here. Can't believe that something like that still happens.

 

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

Stupid question to the post above.

 

Linux seems to see AW11. Is it possible to mount it manually:

 

root@Tower:~# ls /dev/disk/by-label
AW11@  UNRAID@

 

Probably not.  So it seems that you had the Elements disk installed then pulled it out when it wouldn't unmount, then installed the AW11? The AW11 got the sdb designation when it was installed, that was originally the Elements disk?

 

It looks like you are completely messed up and a reboot might be he only answer.

Link to post
7 hours ago, Squid said:

That's yet another reason why USB drives aren't recommended for use as array drives (even though you're not using it like that).  Oft times the bridging plays havoc with SNs, SMART etc.

I was using the USB 3.0 dock to preclear a hard drive for later when my LSI 9211-8i card arrives instead of using a spare PC.

 

Will the name preclear uses affect adding to the array later? I.e.  clear drive again even though it doesn't need to.

 

I also had to double check it was the 6TB EFRX drive and not preclear the wrong drive.

Edited by Paul_Ber
Link to post

Unraid itself IDs the drive model and s/n correctly, so it is UD not IDing correctly. 20201225_105620.thumb.jpg.661eaa949e6184002dac4fb4d0f7d480.jpg

 

UD section of main Unraid screen not getting models and s/n correct. 

Screenshot_20201225-105847_Chrome.jpg.d88f90f3462ae3e677c6558f5d88adad.jpg

 

So it looks like maybe UD gets its information from this part of Unraid?   See how Unraid is splitting the names in the 3rd column?

Screenshot_20201225-110320_Chrome.thumb.jpg.be180cd592dc903010989b0c341a271d.jpg

Edited by Paul_Ber
Link to post
3 hours ago, Paul_Ber said:

Unraid itself IDs the drive model and s/n correctly, so it is UD not IDing correctly. 

Looks to me like UD is working fine.

 

The information you are showing comes from he drive, not Unraid.

 

3 hours ago, Paul_Ber said:

Oft times the bridging plays havoc with SNs, SMART etc.

This is an issue UD cannot get around.

Link to post
4 hours ago, DoItMyselfToo said:

i changed the mount point of an unassigned disk.  noticed that the old mount point with a "?" mark in front of it is showing when browsing MC and when browsing Krusader.

 

unassigned_disk_questionmark.jpeg.abb1ff9ffe90639ea6ea871ee4db8cfa.jpeg

 

how to get rid of this?

 

thanks.

You actually entered a '?' in the mount point?  Is it a physical disk or a remote share mount?  Can you show a screen shot of UD?

Link to post
On 12/27/2020 at 5:55 AM, dlandon said:

You actually entered a '?' in the mount point?  Is it a physical disk or a remote share mount?  Can you show a screen shot of UD?

no, i did not enter a "?" mark in the mount point.  a physical disk.

 

unassigned_disk_questionmark_moreinfo.thumb.jpeg.dd1cc44c66276f653e167ee2e5046727.jpeg

 

 

so, the "?unassigned_disk4" mount point does not show up in the UD.  it is the one i changed.  new is in circled in red above.  but i can see old one when navigating (/mnt/disks/) Krusader or MC.

 

unassigned_disk_questionmark_mc.jpeg.ae6d811060a970b703850d4a46c6d994.jpeg

 

but cannot delete it due to permissions.  was going to change permissions, then delete but wanted to get your input first.

Edited by DoItMyselfToo
Link to post
2 hours ago, dlandon said:

A "Show Partitions" switch has been added to set showing all partitions by specific hard drive device and not generically as before.  The option to show all partitions has been removed from the UD Settings.

 

Perfect, I was wondering where this went, thanks for the explainer. I got it figured out.

 

Early first impression after 2 minutes of use... I like it! Positive enhancements, thank you @dlandon !

 

Link to post

Yes, here the headline flashes too.  (Safari on iPad)
BTW, I wish there is a switch in the header where I can switch off the automatic refresh.

In the Main page, the Reads and Writes are switchable between absolute number of Reads/Writes and Bytes/s. Is the possible for Unassigned Devices too?

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