[Gluster-users] samba-vfs-glusterfs deleting only metadata and not the actual folders/files
Gmail
b.s.mikhael at gmail.com
Fri Feb 12 07:02:13 UTC 2016
If you are using ZFS as the underlying filesystem.
ZFS by default stores the extended attributes in a hidden directory instead of extending the file inode size like what XFS do!
There is a problem in ZFS on Linux implementation which the function responsible for deleting the files, it deletes only the files and forgets to delete the hidden directory which stores the extended attributes, and there seem no interest from ZFS on Linux community to fix this bug, it’s filed since 2013.
There is an option to change this to write the extended attributes to the inode instead of a hidden directory.
# zfs set xattr=sa <POOL_NAME>
— Bishoy
> On Feb 11, 2016, at 10:51 PM, Jason Chang <jhchang76 at gmail.com> wrote:
>
> ZFS :: glusterfs 3.7.6 :: samba-vfs-glusterfs 3.7
>
> Migrated distributed data from glusterfs 3.5 to newly installed OS with glusterfs 3.7.6
> When using gluster-client, folder/file manipulation all works normaily. However, when using samba -vfs-glusterfs module, file manipulation fails at deletion. It only deletes the metadata. when viewed through shell, it still exhibits the file in the directory. only way to delete fully is through glusterfs-client.
>
> -JGC
>
> On Tue, Feb 9, 2016 at 3:49 PM, Jason Chang <jhchang76 at gmail.com <mailto:jhchang76 at gmail.com>> wrote:
> I'm on glusterfs 3.7.6 running samba 4.1.6 with samba-vfs-glusterfs 3.7 from monotek.
> I have three nodes running in distributed mode.
>
> when going through cifs share provided by the module, I can create folders/files normally but when deleted through cifs share from windows, files disappears from the view but still exists in the storage.
>
> When mounting the volume using glusterfs client, the file creation and deletion all works correctly.
>
> Currently the volume is being shared through the mount point to the rest of the users avoiding the vfs module completely.
>
> I'm not sure what to catch for in the logs since it is very cryptic. Please let me know how I can provide the info you require.
>
> Thanks so much!
>
> -JGC
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160211/a4860c55/attachment.html>
More information about the Gluster-users
mailing list