1BLKDEACTIVATE(8) BLKDEACTIVATE(8)
2
3
4
6 blkdeactivate — utility to deactivate block devices
7
9 blkdeactivate [-d dm_options] [-e] [-h] [-l lvm_options]
10 [-m mpath_options] [-r mdraid_options] [-o vdo_options] [-u] [-v]
11 [device]
12
14 The blkdeactivate utility deactivates block devices. For mounted block
15 devices, it attempts to unmount it automatically before trying to deac‐
16 tivate. The utility currently supports device-mapper devices (DM),
17 including LVM volumes and software RAID MD devices. LVM volumes are
18 handled directly using the lvm(8) command, the rest of device-mapper
19 based devices are handled using the dmsetup(8) command. MD devices are
20 handled using the mdadm(8) command.
21
23 -d, --dmoptions dm_options
24 Comma separated list of device-mapper specific options.
25 Accepted dmsetup(8) options are:
26
27 retry Retry removal several times in case of failure.
28
29 force Force device removal.
30
31 -e, --errors
32 Show errors reported from tools called by blkdeactivate. Without
33 this option, any error messages from these external tools are
34 suppressed and the blkdeactivate itself provides only a summary
35 message to indicate the device was skipped.
36
37 -h, --help
38 Display the help text.
39
40 -l, --lvmoptions lvm_options
41 Comma-separated list of LVM specific options:
42
43 retry Retry removal several times in case of failure.
44
45 wholevg
46 Deactivate the whole LVM Volume Group when processing a
47 Logical Volume. Deactivating the Volume Group as a whole
48 is quicker than deactivating each Logical Volume sepa‐
49 rately.
50
51 -m, --mpathoptions mpath_options
52 Comma-separated list of device-mapper multipath specific
53 options:
54
55 disablequeueing
56 Disable queueing on all multipath devices before deacti‐
57 vation. This avoids a situation where blkdeactivate may
58 end up waiting if all the paths are unavailable for any
59 underlying device-mapper multipath device.
60
61 -r, --mdraidoptions mdraid_options
62 Comma-separated list of MD RAID specific options:
63
64 wait Wait MD device's resync, recovery or reshape action to
65 complete before deactivation.
66
67
68 -o, --vdooptions vdo_options
69 Comma-separated list of VDO specific options:
70
71 configfile=file
72 Use specified VDO configuration file.
73
74
75 -u, --umount
76 Unmount a mounted device before trying to deactivate it. With‐
77 out this option used, a device that is mounted is not deacti‐
78 vated.
79
80 -v, --verbose
81 Run in verbose mode. Use --vv for even more verbose mode.
82
84 Deactivate all supported block devices found in the system, skipping
85 mounted devices. # blkdeactivate
86
87 Deactivate all supported block devices found in the system, unmounting
88 any mounted devices first, if possible. # blkdeactivate -u
89
90 Deactivate the device /dev/vg/lvol0 together with all its holders,
91 unmounting any mounted devices first, if possible. # blkdeactivate -u
92 /dev/vg/lvol0
93
94 Deactivate all supported block devices found in the system. If the
95 deactivation of a device-mapper device fails, retry it. Deactivate the
96 whole Volume Group at once when processing an LVM Logical Volume. #
97 blkdeactivate -u -d retry -l wholevg
98
99 Deactivate all supported block devices found in the system. If the
100 deactivation of a device-mapper device fails, retry it and force
101 removal. # blkdeactivate -d force,retry
102
104 dmsetup(8), lsblk(8), lvm(8), mdadm(8), multipathd(8), vdo(8),
105 umount(8)
106
107
108
109Red Hat, Inc LVM TOOLS 2.03.10(2) (2020-08-09) BLKDEACTIVATE(8)