Re: cephfs-fuse: set/getfattr, change pools

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

 



On Tue, Feb 3, 2015 at 5:21 AM, Daniel Schneller
<daniel.schneller@xxxxxxxxxxxxxxxx> wrote:
> Hi!
>
> We have a CephFS directory /baremetal mounted as /cephfs via FUSE on our
> clients.
> There are no specific settings configured for /baremetal.
> As a result, trying to get the directory layout via getfattr does not work
>
> getfattr -n 'ceph.dir.layout' /cephfs
> /cephfs: ceph.dir.layout: No such attribute

What version are you running? I thought it was zapped a while ago, but
in some versions of the code you can't access these xattrs on the root
inode (but you can on everything else).

>
> Using a dummy file I can work around this to get at least at the pool name:
>
> ➜ touch dummy.txt
> ➜ getfattr -n 'ceph.file.layout' dummy.txt
> # file: dummy.txt
> ceph.file.layout="stripe_unit=4194304 stripe_count=1 object_size=4194304
> pool=cephfs"
>
> (BTW: Why doesn't getfattr -d -m - dummy.txt show any of the Ceph
> attributes?)

They're virtual xattrs controlling layout: you don't want tools like
rsync trying to copy them around.

> Now, say I wanted to put /baremetal into a different pool, how would I go
> about this?
>
> Can I setfattr on the /cephfs mountpoint and assign it a different pool with
> e. g. different replication settings?

Generally, yes. Perhaps not on this version, as I mentioned.

>
> Or would I need to mount the CephFS / directory somewhere and modify the
> settings for /baremetal from there?
>
> Can I change this after the fact at all, or do I have to mount both pools at
> the same time and move data between them manually?

You can change the layout settings whenever you want, but there's no
mechanism for CephFS to move the data between different pools; it
simply applies the settings when the file is created.
-Greg
_______________________________________________
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