[ceph-users] Stripping data

2014-12-14 Thread Kevin Shiah
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.


Many thanks,
Kevin
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] File System stripping data

2014-12-16 Thread Kevin Shiah
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 
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 
> wrote:
> > On Sun, Dec 14, 2014 at 10:38 AM, Kevin Shiah  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@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] File System stripping data

2014-12-17 Thread Kevin Shiah
Hi John,

I am using 0.56.1. Could it be because data striping is not supported in
this version?

Kevin

On Wed Dec 17 2014 at 4:00:15 AM PST Wido den Hollander 
wrote:

> On 12/17/2014 12:35 PM, John Spray wrote:
> > On Wed, Dec 17, 2014 at 10:25 AM, Wido den Hollander 
> wrote:
> >> I just tried something similar on Giant (0.87) and I saw this in the
> logs:
> >>
> >> parse_layout_vxattr name layout.pool value 'cephfs_svo'
> >>  invalid data pool 3
> >> reply request -22
> >>
> >> I resolves the pool to a ID, but then it's unable to set it?
> >
> > Was the 'cephfs_svo' pool already added as a data pool with "ceph mds
> > add_data_pool"?
> >
>
> Ah, indeed. Working fine right now. Same goes for any other layout
> settings.
>
> > There are paths where if a pool was added very recently, MDSs/clients
> > might not know about the pool yet and can generate errors like this.
> >
> > John
> >
>
>
> --
> Wido den Hollander
> 42on B.V.
> Ceph trainer and consultant
>
> Phone: +31 (0)20 700 9902
> Skype: contact42on
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com