Re: mounting a pool via fuse

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

 



On Tue, 13 Aug 2013, Georg H?llrigl wrote:
> Thank you for the explaination.
> 
> By mounting as filesystem I'm talking about something similar to this:
> http://www.sebastien-han.fr/blog/2013/02/11/mount-a-specific-pool-with-cephfs/
> 
> Using the kernel module, I can mount a subdirectory into my directory 
> tree - a directory, where I have assigned a pool.
> Using fuse, I can't mount a subdirectory?

ceph-fuse --mount-root /some/path /mnt/ceph

should do the trick.

> By the way setting the layout seems to have a bug:
> 
> # cephfs /mnt/macm01 set_layout -p 4
> Error setting layout: Invalid argument
> 
> I have to add the -u option, then it works:
> 
> # cephfs /mnt/mailstore set_layout -p 5 -u 4194304

Curious.  Opened a bug!

sage

> 
> Kind Regards,
> Georg
> 
> 
> 
> 
> 
> On 13.08.2013 12:09, Dzianis Kahanovich wrote:
> > Georg H?llrigl ?????:
> >
> >> I'm using ceph 0.61.7.
> >>
> >> When using ceph-fuse, I couldn't find a way, to only mount one pool.
> >>
> >> Is there a way to mount a pool - or is it simply not supported?
> >
> > This mean "mount as fs"?
> > Same as kernel-level cephfs (fuse & cephfs = same instance). You cannot
> "mount
> > pool", but can mount filesystem and can map pool to any point of filesystem
> > (file or directory), include root.
> >
> > First, mount ceph via kernel - "mount -t ceph" (just for "cephfs" tool
> syntax
> > compatibility). For example - to /mnt/ceph. Then say "ceph df" and lookup
> pool
> > number (not name!), for example pool number is "10". And last:
> > mkdir -p /mnt/ceph/pools/pool1
> > cephfs /mnt/ceph/pools/pool1 set_layout -p 10
> >
> > or just (for ceph's root):
> >
> > cephfs /mnt/ceph set_layout -p 10
> >
> > Next you can unmount kernel-level and mount this point via fuse.
> >
> > PS For ceph developers: trying this for qouta (with "ceph osd pool
> set-quota")
> > semi-working: on quota overflow - nothing limited, but "ceph health" show
> > warning. In case of no other ways to quota, it may qualified as "bug" and
> not
> > too actual only while big number of pools performance limitation. So, FYI.
> >
> 
> -- 
> Dipl.-Ing. (FH) Georg H?llrigl
> Technik
> 
> ________________________________________________________________________________
> 
> Xidras GmbH
> Stockern 47
> 3744 Stockern
> Austria
> 
> Tel:     +43 (0) 2983 201 - 30505
> Fax:     +43 (0) 2983 201 - 930505
> Email:   georg.hoellrigl@xxxxxxxxxx
> Web:     http://www.xidras.com
> 
> FN 317036 f | Landesgericht Krems | ATU64485024
> 
> ________________________________________________________________________________
> 
> VERTRAULICHE INFORMATIONEN!
> Diese eMail enth?lt vertrauliche Informationen und ist nur f?r den 
> berechtigten
> Empf?nger bestimmt. Wenn diese eMail nicht f?r Sie bestimmt ist, bitten 
> wir Sie,
> diese eMail an uns zur?ckzusenden und anschlie?end auf Ihrem Computer und
> Mail-Server zu l?schen. Solche eMails und Anlagen d?rfen Sie weder nutzen,
> noch verarbeiten oder Dritten zug?nglich machen, gleich in welcher Form.
> Wir danken f?r Ihre Kooperation!
> 
> CONFIDENTIAL!
> This email contains confidential information and is intended for the 
> authorised
> recipient only. If you are not an authorised recipient, please return 
> the email
> to us and then delete it from your computer and mail-server. You may neither
> use nor edit any such emails including attachments, nor make them accessible
> to third parties in any manner whatsoever.
> Thank you for your cooperation
> 
> ________________________________________________________________________________ 
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 
_______________________________________________
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