CEPH filesystem development
 help / color / mirror / Atom feed
From: Grant Ashman <grant.ashman@mach.com.au>
To: ceph-devel@vger.kernel.org
Subject: Re: how to mount a specific pool in cephs
Date: Tue, 22 May 2012 12:02:58 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120522T135204-38@post.gmane.org> (raw)
In-Reply-To: CAORUGqCMGZeVRO_dB7GEt8NJ=M63NZNejUMT75LEPFM3MaJVoA@mail.gmail.com

Tommi Virtanen <tommi.virtanen <at> 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?

Thanks
Grant


  reply	other threads:[~2012-05-22 12:25 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 [this message]
2012-05-22 17:58     ` Greg Farnum
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=loom.20120522T135204-38@post.gmane.org \
    --to=grant.ashman@mach.com.au \
    --cc=ceph-devel@vger.kernel.org \
    /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