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


Recommended Posts

Just now, DanielPT said:

It is becurse my app data backup is going to that drive. And that is a problem when i restore that it is with root. I will like to do it with nobody 😊

Your backup is in archives, right? If so the user/perms of the backed up files are stored in the archive and the drive perms don't matter.

Link to comment
15 minutes ago, dlandon said:

Someone please post the output of this command:

cat /var/state/unassigned.devices/share_names.json
root@Unraid:~# cat /var/state/unassigned.devices/share_names.json
{
    "\/\/KILRAH\/D": "KILRAH_D_SMB",
    "\/\/KILRAH\/unraid": "KILRAH_unraidbackup"
}

 

Link to comment
7 hours ago, Kilrah said:

Your backup is in archives, right? If so the user/perms of the backed up files are stored in the archive and the drive perms don't matter.

Yea they are :)

But when i  restore with duplicacy it tryes to restore the owner :)

 

Thats why i will like it to just be "nobody" :)

 

 

 

 

Link to comment

Unassigned devices is not working correctly for me after upgrading to 6.12.8, device is set for automount and it does mount but is not reflected in the UI:

image.thumb.png.6353810ec73559e85d1b0c5e1d287538.png

If i click MOUNT. the button just goes back to the same state

Additionally the SMB share is not created even if it says so in the syslog:

Feb 17 11:36:23 Tower unassigned.devices: Mounting partition 'sdg1' at mountpoint '/mnt/disks/ZCH0859H'...
Feb 17 11:36:23 Tower unassigned.devices: Mount cmd: /sbin/mount -t 'xfs' -o rw,relatime '/dev/sdg1' '/mnt/disks/ZCH0859H'
Feb 17 11:36:23 Tower unassigned.devices: Successfully mounted '/dev/sdg1' on '/mnt/disks/ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Adding SMB share 'ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Warning: Unassigned Devices are not set to be shared with NFS.

 

UPDATE:

SMB share is created if I execute the script manually:

/tmp/unassigned.devices/add-smb

 

Edited by bubbl3
Added finding
Link to comment
17 minutes ago, bubbl3 said:

Unassigned devices is not working correctly for me after upgrading to 6.12.8, device is set for automount and it does mount but is not reflected in the UI:

image.thumb.png.6353810ec73559e85d1b0c5e1d287538.png

If i click MOUNT. the button just goes back to the same state

Additionally the SMB share is not created even if it says so in the syslog:

Feb 17 11:36:23 Tower unassigned.devices: Mounting partition 'sdg1' at mountpoint '/mnt/disks/ZCH0859H'...
Feb 17 11:36:23 Tower unassigned.devices: Mount cmd: /sbin/mount -t 'xfs' -o rw,relatime '/dev/sdg1' '/mnt/disks/ZCH0859H'
Feb 17 11:36:23 Tower unassigned.devices: Successfully mounted '/dev/sdg1' on '/mnt/disks/ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Adding SMB share 'ZCH0859H'.
Feb 17 11:36:23 Tower unassigned.devices: Warning: Unassigned Devices are not set to be shared with NFS.

 

UPDATE:

SMB share is created if I execute the script manually:

/tmp/unassigned.devices/add-smb

 

Post diagnostics.

Link to comment
1 minute ago, dlandon said:

Give me the output of this command:

cat /proc/mounts

 

root@Tower:~# cat /proc/mounts
rootfs / rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,relatime,size=65536k,mode=755,inode64 0 0
/dev/sda1 /boot vfat rw,noatime,nodiratime,fmask=0177,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,flush,errors=remount-ro 0 0
/dev/loop0 /lib squashfs ro,relatime,errors=continue 0 0
overlay /lib overlay rw,relatime,lowerdir=/lib,upperdir=/var/local/overlay/lib,workdir=/var/local/overlay-work/lib 0 0
/dev/loop1 /usr squashfs ro,relatime,errors=continue 0 0
overlay /usr overlay rw,relatime,lowerdir=/usr,upperdir=/var/local/overlay/usr,workdir=/var/local/overlay-work/usr 0 0
devtmpfs /dev devtmpfs rw,relatime,size=8192k,nr_inodes=16465424,mode=755,inode64 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime,inode64 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
hugetlbfs /hugetlbfs hugetlbfs rw,relatime,pagesize=2M 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
tmpfs /var/log tmpfs rw,relatime,size=131072k,mode=755,inode64 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
rootfs /mnt rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
tmpfs /mnt/disks tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/remotes tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/addons tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/rootshare tmpfs rw,relatime,size=1024k,inode64 0 0
nfsd /proc/fs/nfs nfsd rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
/dev/sdg1 /mnt/disks/ZCH0859H xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md1p1 /mnt/disk1 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md2p1 /mnt/disk2 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md3p1 /mnt/disk3 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md4p1 /mnt/disk4 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md5p1 /mnt/disk5 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md6p1 /mnt/disk6 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md7p1 /mnt/disk7 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/nvme0n1p1 /mnt/cache btrfs rw,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0
shfs /mnt/user0 fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
shfs /mnt/user fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
/dev/loop2 /var/lib/docker btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop2 /var/lib/docker/btrfs btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop3 /etc/libvirt btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
nsfs /run/docker/netns/d4f21cba8555 nsfs rw 0 0
nsfs /run/docker/netns/99301db2a02f nsfs rw 0 0
nsfs /run/docker/netns/e2f446f6a4a5 nsfs rw 0 0
nsfs /run/docker/netns/4671951dc6db nsfs rw 0 0
nsfs /run/docker/netns/ea6dae047f70 nsfs rw 0 0
nsfs /run/docker/netns/dcd0116882af nsfs rw 0 0
nsfs /run/docker/netns/3141f5f422ad nsfs rw 0 0
nsfs /run/docker/netns/9130782b52fb nsfs rw 0 0
nsfs /run/docker/netns/7dab268b47f0 nsfs rw 0 0
nsfs /run/docker/netns/6e12348ec98d nsfs rw 0 0
nsfs /run/docker/netns/1b7c59eaca16 nsfs rw 0 0
nsfs /run/docker/netns/86b1c75956dc nsfs rw 0 0
nsfs /run/docker/netns/0f8eedf38d1b nsfs rw 0 0
/dev/sdg1 /mnt/disks/ZCH0859H/incomplete xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
nsfs /run/docker/netns/225a436b9432 nsfs rw 0 0
nsfs /run/docker/netns/5210094db0a7 nsfs rw 0 0
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=13175704k,nr_inodes=3293926,mode=700,inode64 0 0

Of course this is after i manually executed the smbshare script

Link to comment

@dlandon can confirm the UI is fixed and reflects the disk being mounted, but the SMB share was not created at boot. See the diagnostics attached and the output of cat /proc/mounts , this time I didn't run the add-smb script manually.
 

root@Tower:~# cat /proc/mounts
rootfs / rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,relatime,size=65536k,mode=755,inode64 0 0
/dev/sda1 /boot vfat rw,noatime,nodiratime,fmask=0177,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,flush,errors=remount-ro 0 0
/dev/loop0 /lib squashfs ro,relatime,errors=continue 0 0
overlay /lib overlay rw,relatime,lowerdir=/lib,upperdir=/var/local/overlay/lib,workdir=/var/local/overlay-work/lib 0 0
/dev/loop1 /usr squashfs ro,relatime,errors=continue 0 0
overlay /usr overlay rw,relatime,lowerdir=/usr,upperdir=/var/local/overlay/usr,workdir=/var/local/overlay-work/usr 0 0
devtmpfs /dev devtmpfs rw,relatime,size=8192k,nr_inodes=16465424,mode=755,inode64 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime,inode64 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
hugetlbfs /hugetlbfs hugetlbfs rw,relatime,pagesize=2M 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
tmpfs /var/log tmpfs rw,relatime,size=131072k,mode=755,inode64 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
rootfs /mnt rootfs rw,size=65861692k,nr_inodes=16465423,inode64 0 0
tmpfs /mnt/disks tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/remotes tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/addons tmpfs rw,relatime,size=1024k,inode64 0 0
tmpfs /mnt/rootshare tmpfs rw,relatime,size=1024k,inode64 0 0
nfsd /proc/fs/nfs nfsd rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
/dev/md1p1 /mnt/disk1 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md2p1 /mnt/disk2 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md3p1 /mnt/disk3 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md4p1 /mnt/disk4 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md5p1 /mnt/disk5 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md6p1 /mnt/disk6 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/md7p1 /mnt/disk7 xfs rw,noatime,nouuid,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/nvme0n1p1 /mnt/cache btrfs rw,noatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0
shfs /mnt/user0 fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
shfs /mnt/user fuse.shfs rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
/dev/sdg1 /mnt/disks/ZCH0859H xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/loop2 /var/lib/docker btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop2 /var/lib/docker/btrfs btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/loop3 /etc/libvirt btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
nsfs /run/docker/netns/133a2385364a nsfs rw 0 0
nsfs /run/docker/netns/5e2c60229e3f nsfs rw 0 0
nsfs /run/docker/netns/86b05786ef76 nsfs rw 0 0
nsfs /run/docker/netns/54188258c33f nsfs rw 0 0
nsfs /run/docker/netns/1429a1c211de nsfs rw 0 0
nsfs /run/docker/netns/b06ebc25f551 nsfs rw 0 0
nsfs /run/docker/netns/dcefdc5d840d nsfs rw 0 0
nsfs /run/docker/netns/50061aaae80d nsfs rw 0 0
nsfs /run/docker/netns/58f45d9663bf nsfs rw 0 0
nsfs /run/docker/netns/f1c5a05c5df4 nsfs rw 0 0
nsfs /run/docker/netns/8227e3776579 nsfs rw 0 0
nsfs /run/docker/netns/4583b25e57bb nsfs rw 0 0
nsfs /run/docker/netns/a27582ff11e7 nsfs rw 0 0
/dev/sdg1 /mnt/disks/ZCH0859H/incomplete xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
nsfs /run/docker/netns/4ef83a37736d nsfs rw 0 0
nsfs /run/docker/netns/eaf7b8eddd9e nsfs rw 0 0
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=13175704k,nr_inodes=3293926,mode=700,inode64 0 0

 

tower-diagnostics-20240217-1455.zip

Edited by bubbl3
Link to comment
26 minutes ago, bubbl3 said:

this time I didn't run the add-smb script manually.

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.

Link to comment
40 minutes ago, bubbl3 said:

can confirm the UI is fixed and reflects the disk being mounted, but the SMB share was not created at boot. See the diagnostics attached and the output of cat /proc/mounts , this time I didn't run the add-smb script manually.

Give me the output of this command:

ls /etc/samba/unassigned.devices/

 

Link to comment
27 minutes ago, dlandon said:

Give me the output of this command:

ls /etc/samba/unassigned.devices/

 

 

Looks like it's not there:
 

root@Tower:~# ls /etc/samba/unassigned.devices/
/bin/ls: cannot access '/etc/samba/unassigned.devices/': No such file or directory

 

The one there is called unassigned-shares

root@Tower:/etc/samba# ls
lmhosts  smb-fruit.conf  smb-names.conf  smb-shares.conf  smb-unassigned.conf  smb.conf  unassigned-shares/
root@Tower:/etc/samba# cd unassigned-shares/
root@Tower:/etc/samba/unassigned-shares# ls
ZCH0859H.conf


 

Edited by bubbl3
Link to comment
18 minutes ago, bubbl3 said:

 

Looks like it's not there:
 

root@Tower:~# ls /etc/samba/unassigned.devices/
/bin/ls: cannot access '/etc/samba/unassigned.devices/': No such file or directory

 

The one there is called unassigned-shares

root@Tower:/etc/samba# ls
lmhosts  smb-fruit.conf  smb-names.conf  smb-shares.conf  smb-unassigned.conf  smb.conf  unassigned-shares/
root@Tower:/etc/samba# cd unassigned-shares/
root@Tower:/etc/samba/unassigned-shares# ls
ZCH0859H.conf


 

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

 

Link to comment
5 minutes ago, dlandon said:

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

 

 

 

root@Tower:/etc/samba/unassigned-shares# cat /etc/samba/unassigned-shares/ZCH0859H.conf
[ZCH0859H]
        comment = ZCH0859H
        path = /mnt/disks/ZCH0859H
        browseable = yes
        valid users = emanuele
        write list = emanuele
        vfs objects = catia fruit streams_xattr
        fruit:encoding = native
        case sensitive = auto
        preserve case = yes
        short preserve case = yes
[global]

 

root@Tower:/etc/samba/unassigned-shares# cat /etc/samba/smb-unassigned.conf
include = /etc/samba/unassigned-shares/ZCH0859H.conf

 

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.