]> git.proxmox.com Git - ceph.git/blob - ceph/doc/ceph-volume/lvm/zap.rst
update sources to v12.2.3
[ceph.git] / ceph / doc / ceph-volume / lvm / zap.rst
1 .. _ceph-volume-lvm-zap:
2
3 ``zap``
4 =======
5
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.
10
11 .. note:: The lv or partition will be kept intact.
12
13 .. note:: If the logical volume, raw device or partition is being used for any ceph related
14 mount points they will be unmounted.
15
16 Zapping a logical volume::
17
18 ceph-volume lvm zap {vg name/lv name}
19
20 Zapping a partition::
21
22 ceph-volume lvm zap /dev/sdc1
23
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.
29
30 Zapping a raw device and destroying any vgs or lvs present::
31
32 ceph-volume lvm zap /dev/sdc --destroy