[Samba] CTDB and locking issues in 4.4.6 (Classic domain)
Jeremy Allison
jra at samba.org
Fri Nov 4 16:22:10 UTC 2016
On Fri, Nov 04, 2016 at 08:12:02AM +0100, Volker Lendecke via samba wrote:
> On Thu, Nov 03, 2016 at 09:21:46PM +0000, Alex Crow via samba wrote:
> > [root at zalma ~]# stat testfile
> > ...
> > Size: 1286700 Blocks: 2514 IO Block: 65536 regular file
> > Device: 29h/41d Inode: 35820037 Links: 1
> > Access: (0774/-rwxrwxr--) Uid: ( 3535/ jh3) Gid: ( 513/Domain Users)
> > Access: 2016-11-03 19:51:46.000000000 +0000
> > Modify: 2016-11-01 13:06:04.000000000 +0000
> > Change: 2016-11-01 13:06:04.000000000 +0000
> > Birth: -
> > [root at zalma ~]# ssh zearing "stat testfile"
> > root at zearing's password:
> > ...
> > Size: 1286700 Blocks: 2514 IO Block: 65536 regular file
> > Device: 29h/41d Inode: 35820037 Links: 1
> > Access: (0774/-rwxrwxr--) Uid: ( 3535/ jh3) Gid: ( 513/Domain Users)
> > Access: 2016-11-03 19:51:46.000000000 +0000
> > Modify: 2016-11-01 13:06:04.000000000 +0000
> > Change: 2016-11-01 13:06:04.000000000 +0000
> > Birth: -
> > [root at zalma ~]# ssh metropolis "stat testfile"
> > root at metropolis's password:
> > ...
> > Size: 1286700 Blocks: 2514 IO Block: 65536 regular file
> > Device: 26h/38d Inode: 35820037 Links: 1
> > Access: (0774/-rwxrwxr--) Uid: ( 3535/ jh3) Gid: ( 513/Domain Users)
> > Access: 2016-11-03 19:51:46.000000000 +0000
> > Modify: 2016-11-01 13:06:04.000000000 +0000
> > Change: 2016-11-01 13:06:04.000000000 +0000
> > Birth: -
> >
> > NB this is a FUSE mounted FS.
> >
> > What does the Device: XXh/YYd mean?
>
> That's the so-called device number. Unix concept from the early days.
>
> You can use
>
> vfs objects = fileid
>
> and
>
> fileid:mapping = fsname
>
> to fix this issue.
Well that's an interesting little vfs module I don't
remember existing ! You learn something new every day :-).
I still think your filesystem should try and get dev/ino
pairs the same on different nodes though in the long run.
More information about the samba
mailing list