Project

General

Profile

Actions

Feature #22287

closed

ceph-volume lvm deactivate

Added by Alwin Antreich over 6 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

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

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

Actions

Also available in: Atom PDF