Project

General

Profile

Actions

Feature #13163

open

Add flag to delete a pool and its cache tier.

Added by Robert LeBlanc over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

There doesn't seem to be a way to delete a pool with a cache tier without going through a number of time consuming steps to evict the cache pool and remove the caching.[1] Since it is anticipated that none of the data wants to be saved in the pool, it doesn't need to be gracefully torn down.

Please add a --delete-cache-tier to the ceph osd pool delete command as such:

ceph osd pool delete <poolname> <poolname> <--delete-cache-pool> --yes-i-really-really-mean-it

Which destroys both pools as the same time.

[1] http://permalink.gmane.org/gmane.comp.file-systems.ceph.user/23913

Actions #1

Updated by Igor Fedotov over 8 years ago

Just tried to delete cache pool with some data ( pretty small though ) in it using following command sequence:
./ceph -c ceph.conf osd tier remove-overlay ecpool
./ceph -c ceph.conf osd tier remove ecpool cachepool
./ceph -c ceph.conf osd pool delete cachepool cachepool --yes-i-really-really-mean-it

I don't see any eviction during the process - no new data in backing pool on operation completion:
Before removal:
pool name KB objects clones degraded unfound rd rd KB wr wr KB
cachepool 1 10 0 0 0 110 84 18 2
ecpool 0 0 0 0 0 0 0 0 0

After removal:
pool name KB objects clones degraded unfound rd rd KB wr wr KB
ecpool 0 0 0 0 0 0 0 0 0

May be it took that long time to delete existing data from the store in you case? I.e. that's not eviction but slow data removal issue?

PS. Tried against master branch.

Actions

Also available in: Atom PDF