[SOLVED] SMB share contents missing after update from 6.2 to 6.4 to 7.0

decipheran

New Member
Feb 20, 2022
5
0
1
32
hi totally a noob here ...

I am running ZFS on PVE. created SMB share on ZFS and was shared to a PLEX media server
after updating from 6.2 to 6.4 to 7.0, I am not seeing any folders that are supposed to be in the share . All got deleted ? while updating proxmox ?
I did select " keep the smb.conf" during the update prompts.

please help . missing all media content! :(

root@pve:~# zfs get name,mounted,mountpoint
NAME PROPERTY VALUE SOURCE
RAID-Z10 name RAID-Z10 -
RAID-Z10 mounted yes -
RAID-Z10 mountpoint /RAID-Z10 default
RAID-Z10/share name RAID-Z10/share -
RAID-Z10/share mounted yes -
RAID-Z10/share mountpoint /RAID-Z10/share default
RAID-Z10/share/SMB name RAID-Z10/share/SMB -
RAID-Z10/share/SMB mounted no -
RAID-Z10/share/SMB mountpoint /RAID-Z10/share/SMB default
RAID-Z10/share/downloads name RAID-Z10/share/downloads -
RAID-Z10/share/downloads mounted yes -
RAID-Z10/share/downloads mountpoint /RAID-Z10/share/downloads default
RAID-Z10/share/iso name RAID-Z10/share/iso -
RAID-Z10/share/iso mounted yes -
RAID-Z10/share/iso mountpoint /RAID-Z10/share/iso default
RAID-Z10/share/vmstorage name RAID-Z10/share/vmstorage -
RAID-Z10/share/vmstorage mounted yes -
RAID-Z10/share/vmstorage mountpoint /RAID-Z10/share/vmstorage default
RAID-Z10/share/vmstorage/limited name RAID-Z10/share/vmstorage/limited -
RAID-Z10/share/vmstorage/limited mounted yes -
RAID-Z10/share/vmstorage/limited mountpoint /RAID-Z10/share/vmstorage/limited default
RAID-Z10/vmstorage name RAID-Z10/vmstorage -
RAID-Z10/vmstorage mounted yes -
RAID-Z10/vmstorage mountpoint /RAID-Z10/vmstorage default
RAID-Z10/vmstorage/limited name RAID-Z10/vmstorage/limited -
RAID-Z10/vmstorage/limited mounted yes -
RAID-Z10/vmstorage/limited mountpoint /RAID-Z10/vmstorage/limited default
RAID-Z10/vmstorage/vm-101-disk-0 name RAID-Z10/vmstorage/vm-101-disk-0 -
RAID-Z10/vmstorage/vm-101-disk-0 mounted - -
RAID-Z10/vmstorage/vm-101-disk-0 mountpoint - -
 

decipheran

New Member
Feb 20, 2022
5
0
1
32
output of ZFS list shows there is 2.5 TB used on "RAID-Z10/share/SMB"

root@pve:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
RAID-Z10 3.09T 11.3T 96K /RAID-Z10
RAID-Z10/share 3.09T 11.3T 104K /RAID-Z10/share
RAID-Z10/share/SMB 2.50T 11.3T 2.50T /RAID-Z10/share/SMB
RAID-Z10/share/downloads 96K 1000G 96K /RAID-Z10/share/downloads
RAID-Z10/share/iso 608G 11.3T 608G /RAID-Z10/share/iso
RAID-Z10/share/vmstorage 192K 11.3T 96K /RAID-Z10/share/vmstorage
RAID-Z10/share/vmstorage/limited 96K 11.3T 96K /RAID-Z10/share/vmstorage/limited
RAID-Z10/vmstorage 3.19M 11.3T 96K /RAID-Z10/vmstorage
RAID-Z10/vmstorage/limited 96K 1000G 96K /RAID-Z10/vmstorage/limited
RAID-Z10/vmstorage/vm-101-disk-0 3M 11.3T 88K -
 

decipheran

New Member
Feb 20, 2022
5
0
1
32
Thanks Dunuin for quick reply .. i get insufficient privilege error

root@pve:~# zfs mount RAID-Z10/share/SMB
cannot mount 'RAID-Z10/share/SMB': Insufficient privileges
 

decipheran

New Member
Feb 20, 2022
5
0
1
32
output of "testparm" of (smb.conf)

root@pve:~# testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb


[homes]
comment = Home Directories
create mask = 0777
directory mask = 0777
read only = No
valid users = %S


[share]
comment = root share
create mask = 0777
directory mask = 0777
guest ok = Yes
path = /RAID-Z10/share/SMB
read only = No
 

decipheran

New Member
Feb 20, 2022
5
0
1
32
Thanks found the fix : its all pointed to "nbmd" I found here

https://serverfault.com/questions/1080820/zfs-datasets-wont-mount-after-upgrade-to-ubuntu-21-10


root@pve:~# zfs inherit nbmand RAID-Z10 && zfs mount -a
cannot mount 'RAID-Z10/share/SMB': Insufficient privileges
root@pve:~# zfs inherit nbmand RAID-Z10
root@pve:~# zfs inherit nbmand RAID-Z10 && zfs mount -a
cannot mount 'RAID-Z10/share/SMB': Insufficient privileges
root@pve:~# zfs inherit nbmand RAID-Z10/share/ SMB && zfs mount -a
root@pve:~# zfs inherit nbmand RAID-Z10/share/SMB && zfs mount -a
root@pve:~# zfs get name,mounted,mountpoint
NAME PROPERTY VALUE SOURCE
RAID-Z10 name RAID-Z10 -
RAID-Z10 mounted yes -
RAID-Z10 mountpoint /RAID-Z10 default
RAID-Z10/share name RAID-Z10/share -
RAID-Z10/share mounted yes -
RAID-Z10/share mountpoint /RAID-Z10/share default
RAID-Z10/share/SMB name RAID-Z10/share/SMB -
RAID-Z10/share/SMB mounted yes -
RAID-Z10/share/SMB mountpoint /RAID-Z10/share/SMB default
RAID-Z10/share/downloads name RAID-Z10/share/downloads -
RAID-Z10/share/downloads mounted yes -
RAID-Z10/share/downloads mountpoint /RAID-Z10/share/downloads default
RAID-Z10/share/iso name RAID-Z10/share/iso -
RAID-Z10/share/iso mounted yes -
RAID-Z10/share/iso mountpoint /RAID-Z10/share/iso default
RAID-Z10/share/vmstorage name RAID-Z10/share/vmstorage -
RAID-Z10/share/vmstorage mounted yes -
RAID-Z10/share/vmstorage mountpoint /RAID-Z10/share/vmstorage default
RAID-Z10/share/vmstorage/limited name RAID-Z10/share/vmstorage/limited -
RAID-Z10/share/vmstorage/limited mounted yes -
RAID-Z10/share/vmstorage/limited mountpoint /RAID-Z10/share/vmstorage/limited default
RAID-Z10/vmstorage name RAID-Z10/vmstorage -
RAID-Z10/vmstorage mounted yes -
RAID-Z10/vmstorage mountpoint /RAID-Z10/vmstorage default
RAID-Z10/vmstorage/limited name RAID-Z10/vmstorage/limited -
RAID-Z10/vmstorage/limited mounted yes -
RAID-Z10/vmstorage/limited mountpoint /RAID-Z10/vmstorage/limited default
RAID-Z10/vmstorage/vm-101-disk-0 name RAID-Z10/vmstorage/vm-101-disk-0 -
RAID-Z10/vmstorage/vm-101-disk-0 mounted - -
RAID-Z10/vmstorage/vm-101-disk-0 mountpoint - -
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!