Feature #22287
closed
ceph-volume lvm deactivate
Added by Alwin Antreich over 6 years ago.
Updated almost 4 years ago.
Description
A nice to have feature would be a 'deactivate' to deactivate/remove the vg/lv. This may make the life easier of admins, when trying to remove the lv. Now you try to map the fsid to the osd.id to have the right disk.
root@sumi2:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sde 8:64 0 223.6G 0 disk
└─ceph--5a03e18d--d99d--4686--878c--f48dcdab3270-osd--block--d2260de7--84a4--4225--896d--41a695554f55 253:5 0 223.6G 0 lvm
root@sumi2:~# ceph-volume lvm list
====== osd.16 ======
[block] /dev/ceph-5a03e18d-d99d-4686-878c-f48dcdab3270/osd-block-d2260de7-84a4-4225-896d-41a695554f55
type block
osd id 16
cluster fsid 5a03e18d-d99d-4686-878c-f48dcdab3270
cluster name ceph
osd fsid d2260de7-84a4-4225-896d-41a695554f55
block uuid fiAa1o-tOzC-iFqu-HVec-RnyJ-gPUG-gOprTx
block device /dev/ceph-5a03e18d-d99d-4686-878c-f48dcdab3270/osd-block-d2260de7-84a4-4225-896d-41a695554f55
Example:
ceph-volume lvm deactivate 16
- Project changed from Ceph to ceph-volume
+1 and btw how does one do this manually today?
- Status changed from New to Need More Info
Is the expectation here to remove the vg (and lv) ? Because we can do that with `ceph-volume lvm zap`.
"activation" in ceph-volume means to create systemd services, and ensure things are ready for the OSD to start.
Alfredo Deza wrote:
Is the expectation here to remove the vg (and lv) ? Because we can do that with `ceph-volume lvm zap`.
"activation" in ceph-volume means to create systemd services, and ensure things are ready for the OSD to start.
Yes, that was what I was thinking about.
Just so I am clear :)
By deactivating you want the tooling to disable the systemd units so that they are stopped and they will not start back up again when the system restarts ?
or
You want to destroy the vg/lv?
Alfredo Deza wrote:
Just so I am clear :)
By deactivating you want the tooling to disable the systemd units so that they are stopped and they will not start back up again when the system restarts ?
or
You want to destroy the vg/lv?
Well, both would be nice. I thought about the task removing a OSD (disk replacement) from ceph with destroying the disk. To be able to remove disk in the end.
If a 'ceph-volume zap osd.id' would do that in one go, it would be nice. :)
- Status changed from Need More Info to Resolved
lvm zap --destroy should cover this iiuc.
Also available in: Atom
PDF