Feature #22287
closedceph-volume lvm deactivate
0%
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
Updated by Patrick Donnelly over 6 years ago
- Project changed from Ceph to ceph-volume
Updated by Dan van der Ster over 6 years ago
+1 and btw how does one do this manually today?
Updated by Alfredo Deza almost 6 years ago
- 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.
Updated by Alwin Antreich almost 6 years ago
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.
Updated by Alfredo Deza almost 6 years ago
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?
Updated by Alwin Antreich almost 6 years ago
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. :)
Updated by Jan Fajerski almost 4 years ago
- Status changed from Need More Info to Resolved
lvm zap --destroy should cover this iiuc.