OminosCe r151038d smb file lock issues

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

expertaz

New Member
Apr 19, 2015
8
0
1
46
Hello @gea and everybody,
I have migrated my old samba3 file share server(CentOs) to OminosCe r151038d with napp-it.

Everything working fine,only having smb file lock issues sometimes.
I know smb on Omnios working in-kernel and it is not same bits with samba project.

You know there is smbstatus command in Samba package for investigating lock issues,is there any alternative command under smb Omnios?

Regards,
Hafiz.
 

gea

Well-Known Member
Dec 31, 2010
3,141
1,182
113
DE
There are two locking related settings that you can try/switch)

1. nbmand (ZFS property, see menu ZFS Filesystems)
2. oplock (SMB property, see menu Services > SMB > properties)

Users and open files can be viewed from Windows > Computer Management.
(SMB connect first as a user that is member of the SMB admin group on OmniOS)
 

expertaz

New Member
Apr 19, 2015
8
0
1
46
1.nbmand on ,because when its off it's not possible 2nd one open file,even read-only
2.oplock is now oplock_enable=true

acctually I mean do we have command like smbstatus(samba) to control granually locked files on OmniOsCe?
 

gea

Well-Known Member
Dec 31, 2010
3,141
1,182
113
DE
The development goal of the ZFS/ kernelbased SMB server was to be a real Windows server replacement. This is why it supports ntfs alike ACL based on Windows sid and Windows alike SMB groups. Just like on a Windows server, management and control of user and open files is done via Computer Management on Windows. There is no local CLI tool as a replacement.
 

expertaz

New Member
Apr 19, 2015
8
0
1
46
Hello Gea,getting this errors on omnios log file;
Why i am getting these oplock reg errors?

Here is my conf:

system_comment=
max_workers=1024
netbios_enable=true
netbios_scope=
lmauth_level=4
keep_alive=0
wins_server_1=
wins_server_2=
wins_exclude=
signing_enabled=true
signing_required=true
restrict_anonymous=false
pdc=
ads_site=
ddns_enable=false
autohome_map=/etc
ipv6_enable=false
print_enable=false
traverse_mounts=true
map=
unmap=
disposition=
max_protocol=
encrypt=disabled
min_protocol=
bypass_traverse_checking=true
oplock_enable=true


Jul 26 11:18:06 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:18:06 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:18:08 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:18:08 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:18:09 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:18:57 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:18:57 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:14 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.106.61 oplock req. err 0xc000000d
Jul 26 11:19:17 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.106.61 oplock req. err 0xc000000d
Jul 26 11:19:26 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:26 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:27 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.106.61 oplock req. err 0xc000000d
Jul 26 11:19:28 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:35 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.109.51 oplock req. err 0xc000000d
Jul 26 11:19:35 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.106.61 oplock req. err 0xc000000d
Jul 26 11:19:41 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:42 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:43 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.106.61 oplock req. err 0xc000000d
Jul 26 11:19:45 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.106.61 oplock req. err 0xc000000d
Jul 26 11:19:52 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:52 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:53 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
Jul 26 11:19:54 dosya smbsrv: [ID 197244 kern.notice] NOTICE: clnt 192.168.104.76 oplock req. err 0xc000000d
 

gea

Well-Known Member
Dec 31, 2010
3,141
1,182
113
DE
you can try with oplock disabled