[Gluster-devel] Problem with afr_setxattr_cbk on 1.3.4

Krishna Srinivas krishna at zresearch.com
Fri Oct 12 09:07:32 UTC 2007


AB,
xattr support is enabled in the backend (Karl has confirmed it)
I think ACL support in kernel has been disabled.
Krishna

On 10/12/07, Anand Babu Periasamy <ab at gnu.org.in> wrote:
> You have copying a file /mnt/sharedbig/test6.jpg that has ACL
> permissions. In order to use ACL, you need extended attributes support
> in your underlying disk file system. GlusterFS should handle
> ACL/Extended-Attributes correctly.
>
> If you are using Ext3 as your backend disk filesystem, extended
> attributes are not enabled by default. To enable extended
> attributes..
>
> Example /etc/fstab entry:
> /dev/sda2  /export  ext3  defaults,user_xattr   0   1
>
> Edit your fstab like the line above and remount
> # mount -o remount /export
>
> Krishna Srinivas writes:
> >> getxattr("/www/thumbs/originals/0/199/199000_0.jpg",
> >> "system.posix_acl_access", 0xbfe6e9f0, 132) = -1 EOPNOTSUPP (Operation
> >> not supp
> >> orted)
> >> setxattr("/mnt/sharedbig/test6.jpg", "system.posix_acl_access",
> >> "\x02\x00\x00\x00\x01\x00\x07\x00\xff\xff\xff\xff\x04\x00\x07\x00\xf
> >> f\xff\xff\xff \x00\x07\x00\xff\xff\xff\xff", 28, 0) = -1 EOPNOTSUPP
> >> (Operation not supported)
> >> chmod("/mnt/sharedbig/test6.jpg", 0100777) = 0
> >> unlink("/www/thumbs/originals/0/199/199000_0.jpg") = 0
> >
> > It is trying to set some ACL related xattrs and failing in the
> > backend. I think it is harmless. What distribution are you using?
> >
> >
> >> close(1)                                = 0
> >> exit_group(0)
> >>
> >> Krishna Srinivas wrote:
> >> > Hi Karl,
> >> >
> >> > Can you paste strace of mv command when you see those errors
> >> > in the log? The last few relavent lines of the strace outout will do.
> >> > you can use the -o option for specifying output file.
> >> >
> >> > strace -o /tmp/mv.log mv file1 file2
> >> >
> >> > Krishna
> >> >
> >> > On 10/11/07, Karl Bernard <karl at vomba.com> wrote:
> >> >
> >> >> Krishna,
> >> >>
> >> >> I only get those errors with a "mv", I tried a cp and I don't see those
> >> >> errors.
> >> >> getfattr --dump on both the original and copied files return no error
> >> >> but an empty string
> >> >>
> >> >> Amar,
> >> >>
> >> >> My filesystem was not originally mounted with the specific option
> >> >> user_xattr, however it is my understanding CentOS has it enabled by
> >> >> default. I later added the mount option but still get the errors.
> >> >> /dev/mapper/VolGroup00-data on /data type ext3
> >> >> (rw,noatime,nodiratime,user_xattr)
> >> >>
> >> >> I tried soing the same mv operation as root on the client and the same
> >> >> errors  get logged.
> >> >>
> >> >> Karl
> >> >>
> >> >> Krishna Srinivas wrote:
> >> >>
> >> >>> are you just doing mv? or any other specific command?
> >> >>> Can you do a "getfattr --dump" on the original and copied
> >> >>> file and see if there are any differences.
> >> >>>
> >> >>> Thanks
> >> >>> Krishna
> >> >>>
> >> >>>
> >> >>>
> >> >> Amar S. Tumballi wrote:
> >> >>
> >> >>> Karl,
> >> >>>   can you check if your backend filsystem has been mounted with -o
> >> >>> user_xattr (option in fstab). Also, do you get the same problem when
> >> >>> you try to access the files via glusterfs as root (on the client side)?
> >> >>>
> >> >>> thanks
> >> >>>
> >> >>> On 10/11/07, Karl Bernard <karl at vomba.com> wrote:
> >> >>>
> >> >>>
> >> >>>> Hello All.
> >> >>>>
> >> >>>> I'm having some issues copying files from local filesystem to gluster.
> >> >>>> The files seem to get copied fine, however I get tons of log errors.
> >> >>>>
> >> >>>> The errors I get:
> >> >>>> 2007-10-10 17:41:20 E [afr.c:1120:afr_setxattr_cbk] afr3-4:
> >> >>>> (path=/dev-www.sxx.com/thumbnails/originals/thumbs/0/107/107668_1.jpg
> >> >>>> child=sxx03) op_ret=-1 op_errno=95
> >> >>>>
> >> >>>> I'm doing a mv and each error repeats 4 times.
> >> >>>>
> >> >>>> I've made sure Extended Attributes where enabled. and tested doing:
> >> >>>> setfattr -n user.test -v 1
> >> >>>> /data/glusterfs/dataspace/dev-www.sxx.com/thumbnails/originals/thumbs/0/107/107668_1.jpg
> >> >>>>
> >> >>>> Version:
> >> >>>>   glusterfs-1.3.4
> >> >>>>   fuse-2.7.0-glfs4
> >> >>>>
> >> >>>> here's some debug log. Can anyone suggest what might be wrong? I can
> >> >>>> post more info on my setup if needed.
> >
> >
> > _______________________________________________
> > Gluster-devel mailing list
> > Gluster-devel at nongnu.org
> > http://lists.nongnu.org/mailman/listinfo/gluster-devel
>





More information about the Gluster-devel mailing list