dlandon

Community Developer
  • Posts

    10161
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by dlandon

  1. I thought I found something, but I was working with an encrypted disk that is differnet. So, back to your issue. I don't understand how you can have different results when the disk is hot plugged and the lightning icon is used. The script is executed in exactly the same way.
  2. The remount is only a work around. We will have to come up with a solution.
  3. 'df' shows it's mounted: Filesystem Size Used Avail Use% Mounted on rootfs 2.9G 299M 2.6G 11% / tmpfs 32M 4.0M 29M 13% /run /dev/sda1 15G 993M 14G 7% /boot overlay 2.9G 299M 2.6G 11% /lib overlay 2.9G 299M 2.6G 11% /usr devtmpfs 8.0M 0 8.0M 0% /dev tmpfs 2.9G 0 2.9G 0% /dev/shm tmpfs 128M 304K 128M 1% /var/log tmpfs 1.0M 0 1.0M 0% /mnt/disks tmpfs 1.0M 0 1.0M 0% /mnt/remotes tmpfs 1.0M 0 1.0M 0% /mnt/addons tmpfs 1.0M 0 1.0M 0% /mnt/rootshare /dev/md1p1 11T 4.0T 7.0T 37% /mnt/disk1 /dev/sdb1 3.7T 992G 2.7T 27% /mnt/download_drive /dev/nvme0n1p1 477G 21G 456G 5% /mnt/unraid_files shfs 11T 4.0T 7.0T 37% /mnt/user0 shfs 11T 4.0T 7.0T 37% /mnt/user /dev/loop2 20G 5.6G 14G 29% /var/lib/docker /dev/sdd1 932G 94M 932G 1% /mnt/disks/transport data The log shows it was mounted, but no unmount was ever initiated: Feb 18 11:14:01 mitchsserver unassigned.devices: Successfully mounted '/dev/sdd1' on '/mnt/disks/transport data'. Feb 18 11:14:01 mitchsserver unassigned.devices: Device '/dev/sdd1' is not set to be shared. Feb 18 11:14:01 mitchsserver unassigned.devices: Running device script: 'transport_data.sh' with action 'ADD'. Feb 18 11:14:21 mitchsserver emhttpd: WDC_WDS100T2B0A-00SM50_200802A003DE (sdd) 512 1953525168 Feb 18 11:14:21 mitchsserver emhttpd: read SMART /dev/sdd These are the last lines in the log.
  4. Not in the diagnostics you posted: Filesystem Size Used Avail Use% Mounted on rootfs 2.9G 314M 2.6G 11% / tmpfs 32M 4.1M 28M 13% /run /dev/sda1 15G 993M 14G 7% /boot overlay 2.9G 314M 2.6G 11% /lib overlay 2.9G 314M 2.6G 11% /usr devtmpfs 8.0M 0 8.0M 0% /dev tmpfs 2.9G 0 2.9G 0% /dev/shm tmpfs 128M 468K 128M 1% /var/log tmpfs 1.0M 0 1.0M 0% /mnt/disks tmpfs 1.0M 0 1.0M 0% /mnt/remotes tmpfs 1.0M 0 1.0M 0% /mnt/addons tmpfs 1.0M 0 1.0M 0% /mnt/rootshare /dev/md1p1 11T 4.0T 7.0T 37% /mnt/disk1 /dev/sdb1 3.7T 991G 2.7T 27% /mnt/download_drive /dev/nvme0n1p1 477G 21G 456G 5% /mnt/unraid_files shfs 11T 4.0T 7.0T 37% /mnt/user0 shfs 11T 4.0T 7.0T 37% /mnt/user /dev/loop2 20G 5.6G 14G 29% /var/lib/docker
  5. The notification in the upper right is under the control of your script and is only a notification. If the mount button shows mounted after your script has completed, that's different. It's this code that shows the device is unmounted: /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device unmounted" -i "normal" This displays in the notifications in the upper right of the UI after the disk is unmounted. ls -la /mnt/disks/ Look for the mount point. If it's missing, the device is unmounted.
  6. Your diagnostics shows the disk is unmounted. Does the UI show it is mounted?
  7. The diagnostics you posted earlier did not show any of that activity. Can you post diagnostics after the unmount issue you are talking about?
  8. Change the 'umount $DEVICE' to 'umount $UD_DEVICE' and see if it makes a difference. The $UD_DEVICE is the 'devX' designation of the disk.
  9. Post diagnostics after all that. Also, try detaching the disk, then re-attaching the disk. This simulates removing the disk and re-installing it. There are different sections of code in the script that get executed.
  10. Run it using the lightning icon and see where it errors out. You have a lot of echo's and can see where it is failing,
  11. Your device script is showing an error. The unmount $device is working from my testing.
  12. Can you take a little closer look and see if you can figure out what is taking all the space? I'm seeing Apparent size: 511.3 KiB.
  13. We're going to take a look at this. I believe it may be a bug.
  14. PID files should not really take that much space. Post the output of this command: ls -la /run/
  15. One of the things you should rethink is the stuff you have in your go file. If it were me, I'd put that in a user script (User Scripts Plugin) and have it run on first array start. Also review what you are doing and see if it is really necessary. Adding stuff to the go file is not recommended.
  16. Everyrthing looks right. Is the share showing up in the network shares? If not, go to the device settings and toggle the 'Share' switch off and then back on and see if the share shows in network shares.
  17. Thanks. Looks like I gave you the wrong path. Now show the output of this command: cat /etc/samba/unassigned-shares/ZCH0859H.conf and cat /etc/samba/smb-unassigned.conf
  18. Please don't do that. That is not what that script is for. It just so happens that that script reloads SMB settings and makes the share appear in this case. You should never have to use the command line to get UD to work. Just go to the disk settings and toggle the share switch. That should enbale SMB for that device. I'm not seeing anything yet, but I'm looking.
  19. Depends on the NIC. Some have issues and some don't. Just experiment.
  20. @bubbl3 Update UD and your disk will then show as mounted. It is actually mounted.
  21. I see the problem, but I don't understand how it happens. Give me some time to work on a solution.