Re: [ceph-users] mounting a pool via fuse
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. -- WBR, Dzianis Kahanovich AKA Denis Kaganovich, http://mahatma.bspu.unibel.by/ ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] mounting a pool via fuse
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? 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 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.hoellr...@xidras.com 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@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] mounting a pool via fuse
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.hoellr...@xidras.com 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@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
Re: [ceph-users] mounting a pool via fuse
Can you elaborate on what behavior you are looking for? -Sam On Fri, Aug 9, 2013 at 4:37 AM, Georg Höllrigl georg.hoellr...@xidras.com wrote: Hi, 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? Kind Regards, Georg ___ 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