Re: File System stripping data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to set the extended attribute to a newly created created directory (call it "dir" here) using setfattr. I run the following command. 

setfattr -n ceph.dir.layout.stripe_count -v 2 dir

And return:

setfattr: dir: Operation not supported


I am wondering if the underlying file system does not support xattr. Has anyone ever run into similar problem before?

I deployed CephFS on Debian wheezy. 
And here is the mounting information:
ceph-fuse on /dfs type fuse.ceph-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)

Many thanks,
Kevin

On Mon Dec 15 2014 at 1:49:15 AM PST John Spray <john.spray@xxxxxxxxxx> wrote:
Yes, setfattr is the preferred way.  The docs are here:
http://ceph.com/docs/master/cephfs/file-layouts/

Cheers,
John

On Mon, Dec 15, 2014 at 8:12 AM, Ilya Dryomov <ilya.dryomov@xxxxxxxxxxx> wrote:
> On Sun, Dec 14, 2014 at 10:38 AM, Kevin Shiah <aganwin@xxxxxxxxx> wrote:
>> Hello All,
>>
>> Does anyone know how to configure data stripping when using ceph as file
>> system? My understanding is that configuring stripping with rbd is only for
>> block device.
>
> You should be able to set layout.* xattrs on directories and empty
> files (directory layout just sets the default layout for the newly
> created files within it).  There are also a couple of ioctls which do
> essentially the same thing but I think their use is discouraged.
> John will correct me if I'm wrong.
>
> Thanks,
>
>                 Ilya
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux