From: Greg Farnum <greg@inktank.com>
To: Grant Ashman <grant.ashman@mach.com.au>
Cc: ceph-devel@vger.kernel.org
Subject: Re: how to mount a specific pool in cephs
Date: Tue, 22 May 2012 10:58:32 -0700 [thread overview]
Message-ID: <8CBFE0C21212497AA50AEBE59EEFCAFF@inktank.com> (raw)
In-Reply-To: <loom.20120522T135204-38@post.gmane.org>
On Tuesday, May 22, 2012 at 5:02 AM, Grant Ashman wrote:
> Tommi Virtanen <tommi.virtanen <at> dreamhost.com (http://dreamhost.com)> writes:
> >
> > You don't mount pools directly; there's filesystem metadata (as
> > managed by metadata servers) that is needed too.
> >
> > What you probably want is to specify that a subtree of your ceph dfs
> > stores the file data in a separate pool, using "cephfs
> > /mnt/ceph/some/subtree set_layout --pool 6". Note that a numerical
> > pool id is currently required.
> >
> > http://ceph.newdream.net/docs/master/man/8/cephfs/
> >
> > You can mount any subtree of the ceph dfs directly, using
> > 10.32.0.10:6789:/some/subtree in your mount command.
>
>
>
> Hi Tommi,
>
> We have tried setting the layout as described below with:
> 'cephfs /mnt/ceph-backup/ set_layout --pool 3'
>
> However, I only ever receive the following output;
> 'Error setting layout: Invalid argument'
>
> I can run other view the current layout of the mount
> point, but cannot change the pool layout.
>
> My understanding of the numeric pool is as follows:
>
> root@dsan-test:/mnt# ceph osd dump -o -|grep 'pool'
> pool 0 'data' rep size 2 crush_ruleset 0
> pool 1 'metadata' rep size 2 crush_ruleset 1
> pool 2 'rbd' rep size 2 crush_ruleset 2
> pool 3 'backup' rep size 2 crush_ruleset 0
>
> (omitted detail I thought unnecessary)
>
> Therefore the backup pool which we specifically want to mount is 3?
>
> Are you able to assist with the syntax for cephfs set_layout?
That's the right pool ID; yes. I believe the problem is that the cephfs tool currently requires you to fill in all the fields, not just the one you wish to change. Try that (setting all the other values to match what you see when you view the layout). :)
-Greg
next prev parent reply other threads:[~2012-05-22 17:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-30 6:16 how to mount a specific pool in cephs Paul Pettigrew
2012-04-30 17:40 ` Tommi Virtanen
2012-05-22 12:02 ` Grant Ashman
2012-05-22 17:58 ` Greg Farnum [this message]
2012-05-22 21:12 ` Grant Ashman
2012-05-22 21:21 ` Greg Farnum
2012-05-22 21:31 ` Grant Ashman
2012-05-22 21:42 ` Greg Farnum
2012-05-22 21:51 ` Grant Ashman
2012-05-23 5:15 ` Gregory Farnum
2012-05-22 21:21 ` Grant Ashman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8CBFE0C21212497AA50AEBE59EEFCAFF@inktank.com \
--to=greg@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=grant.ashman@mach.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox