Re: Mount Cephfs subtree

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

 



Hi...

Here are a couple of examples based on what we do.

We have not tried all of them so some are just extrapolations based on the underlying logic. Maybe someone else can correct me if I am wrong. I the following examples, the root of the filesystem is /cephfs

- Mounting your cephfs filesystem as /cephfs:

# mount -t ceph <MON IP>:/  /cephfs -o name=admin,secretfile=<secret file>
# df -h
(...)
192.231.127.8:6789:/   87T  1.4G   87T   1% /cephfs

- Mounting your /cephfs filesystem as /mydata/cephfs (which must exit) then

# mount -t ceph <MON IP>:/cephfs  /mydata/cephfs -o name=admin,secretfile=<secret file>

- Mounting the subtree /cephf/mydir under, for example, /mydata/cephfs/mydir/   (which must exit)  then

# mount -t ceph <MON IP>:/cephfs/mydir  /mydata/cephfs/mydir/ -o name=admin,secretfile=<secret file>

- Mounting the subtree /cephf/mydir under, for example, /mydata/mydir/   (which must exit)  then

# mount -t ceph <MON IP>:/cephfs/mydir  /mydata/mydir/ -o name=admin,secretfile=<secret file>

I would also would advise you to create a special user / client to mount and not use the admin key. Permissions for that user should be something like


client.mount_user
    key: <...>
    caps: [mds] allow
    caps: [mon] allow r
    caps: [osd] allow rw pool=<your cephfs data pool>

Cheers
Goncalo
 


On 09/28/2016 01:36 AM, mayqui.quintana@xxxxxxxxx wrote:
How to mount a cephfs using subtree ??   mount.ceph mon0:/web/data /data/ -o name=admin,secretfile=/etc/ceph/admin.secret Receive mount error 2 = No such file or directory.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

-- 
Goncalo Borges
Research Computing
ARC Centre of Excellence for Particle Physics at the Terascale
School of Physics A28 | University of Sydney, NSW  2006
T: +61 2 93511937
_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux