Hi Greg, 

Thanks for your prompt reply. I appreciate, if you could also help me with the 
following issues:

1) After mounting a directory to a pool called cold-pool, I started to save 
data through CephFS. By removing all of the created files from CephFS, I could 
not remove objects from the cold-pool!

2) Then I thought to remove the cold-pool instead. After removing the cache 
tier pool of cold-pool, I was not able to remove the cold-pool! I got the 
following error:
pool cold-storage does not exist
error 16: (16) Device or resource busy.
This is where all of my PGs are clean+active! By the way, I disabled CephX.

Thanks in advance,
Sherry




On Thursday, June 19, 2014 3:16 AM, Gregory Farnum <g...@inktank.com> wrote:
 


On Wed, Jun 18, 2014 at 12:54 AM, Sherry Shahbazi <shoo...@yahoo.com> wrote:
> Hi everyone,
>
> If I have a pool called cold-storage (1) and a pool called hot-storage (2)
> that hot-storage is a cache tier for the cold-storage.
>
> I normally do the followings in order to map a directory in my client to a
> pool.
>
> on a Ceph monitor,
> ceph mds add_data_pool 1
> ceph mds add_data_pool 2
> Q1) Do I need to add both cold-storage and hot-storage to the data pools?

Nooo...generally whenever using cache pools, you should only refer to
the base pool. (You might change that if using read-only caching or
something, but none of that is really "certified".)


>
> on client,
> mkdir /mnt/test
> mount -t ceph ceph-mon1:6789,ceph-mon2:6789,ceph-mon3:6789:/ /mnt/test -o
> name=admin,secretfile=/etc/ceph/client.admin
>
> cephfs /mnt/test set_layout -p 1 OR cephfs /mnt/test set_layout -p 2
> Q2) Do I need to set the layout of the directory to pool1 (cold-storage) or
> pool2 (hot-storage)?

Again, only refer to the base pool (cold pool). The cache handling
happens within the RADOS layer and the filesystem isn't really aware
of it.
The only bit that's different is that if you're granting cephx
permissions on individual pools, you'll need to grant permissions on
both the cold and hot storage pool.
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to