Skip to contentSkip to conversation

Create/Quota/Mount pool

DISCUSSION Chu Duc Minh 2 participants 3 messages Mar 16, 2012 – Mar 17, 2012

lore
Share & tools
lore
#0 lore raw

Hi, i'm searching a way to create more data(s) pool and quota for each pool. Do you know how to select pool to mount when using ceph client. (i'm using kernel 3.0.x)

Thank you very much!

#1 lore raw
Quoted 3 lines · Chu Duc Minh

Hi, i'm searching a way to create more data(s) pool and quota for each pool. Do you know how to select pool to mount when using ceph client. (i'm using kernel 3.0.x)

You can create pools with

ceph osd pool create <poolname>

make them usable by the fs with

ceph mds add_data_pool <poolname>

and then set a subdirectory to use that pool for new files with cephfs (man cephfs).

If you run into problems, let us know; this isn't well documented yet!

sage

#2 lore raw
Quoted 10 lines · Sage Weil
Quoted 3 lines · Chu Duc Minh

Hi, i'm searching a way to create more data(s) pool and quota for each pool. Do you know how to select pool to mount when using ceph client. (i'm using kernel 3.0.x)

You can create pools with

ceph osd pool create<poolname>

make them usable by the fs with

Quoted 8 lines

ceph mds add_data_pool<poolname>

and then set a subdirectory to use that pool for new files with cephfs (man cephfs).

If you run into problems, let us know; this isn't well documented yet!

sage

Hi, how can I know the ID of new <poolname>, because it's needed for cephfs command? Or i must use numeric <poolname>? I'm using Cephx for auth, how can i set permission for a individual client only can mount & see a specify subdirectory/pool? I succeeded when using numeric poolname but fail on "ceph auth add ..." and mount.
(I tried many options for ceph auth add ... - but still does not success)

Thank you very much!