1 .. _ceph-volume-lvm-zap:
6 This subcommand is used to zap lvs, partitions or raw devices that have been used
7 by ceph OSDs so that they may be reused. If given a path to a logical
8 volume it must be in the format of vg/lv. Any filesystems present
9 on the given lv or partition will be removed and all data will be purged.
11 .. note:: The lv or partition will be kept intact.
13 .. note:: If the logical volume, raw device or partition is being used for any ceph related
14 mount points they will be unmounted.
16 Zapping a logical volume::
18 ceph-volume lvm zap {vg name/lv name}
22 ceph-volume lvm zap /dev/sdc1
24 If you are zapping a raw device or partition and would like any vgs or lvs created
25 from that device removed use the ``--destroy`` flag. A common use case is to simply
26 deploy OSDs using a whole raw device. If you do so and then wish to reuse that device for
27 another OSD you must use the ``--destroy`` flag when zapping so that the vgs and lvs that
28 ceph-volume created on the raw device will be removed.
30 Zapping a raw device and destroying any vgs or lvs present::
32 ceph-volume lvm zap /dev/sdc --destroy