Red Hat Bugzilla – Bug 1261714
[RFE][docker-storage-setup] rollback or remove storage is created by docker-storage-setup
Last modified: 2015-09-10 22:51:05 EDT
Description of problem:
It will be very convenient for users if we can provide a kind of rollback function like docker-storage-rollback when fail to create backend storage(VG, LVM, etc) for docker via docker-storage-setup, a similar idea is also to provide docker-storage-cleanup to support removing created storage by docker-storage-setup for users.
Version-Release number of selected component (if applicable):
# rpm -q kernel docker
Steps to Reproduce:
While it will be convenient, I think it is not trivial at the same time this path will be filled with various kind of errors.
- First of all d-s-s will have to have some kind of persistent data which keeps
track of all the actions d-s-s performed. So that these actions can be rolled
- If user created some volumes or directories which have same name what d-s-s uses then cleanup will remove those too and user will lose data.
So I prefer that we document it and let user do the cleanup manually, carefully making sure they are not losing any important data they might want to retain.
(In reply to Vivek Goyal from comment #2)
> - If user created some volumes or directories which have same name what
> d-s-s uses then cleanup will remove those too and user will lose data.
Perhaps, the docker-migrate script can help save important data before removing storage.