2012-10-12 16:37:57 +04:00
.TH "BLKDEACTIVATE" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\" "
.SH "NAME"
2014-06-11 13:06:30 +04:00
blkdeactivate \(em utility to deactivate block devices
2012-10-12 16:37:57 +04:00
.SH SYNOPSIS
.B blkdeactivate
2014-11-19 02:35:04 +03:00
.RB [ \- d \ \fI dm_options\fP ]
.RB [ \- e ]
.RB [ \- h ]
.RB [ \- l \ \fI lvm_options\fP ]
.RB [ \- u ]
.RB [ \- v ]
.RI [ device ]
2012-10-12 16:37:57 +04:00
.SH DESCRIPTION
blkdeactivate utility deactivates block devices. If a device
is mounted, the utility can unmount it automatically before
trying to deactivate. The utility currently supports
2014-11-19 02:35:04 +03:00
device-mapper devices, including LVM volumes.
LVM volumes are handled directly using the \fB lvm\fP (8) command.
2012-10-12 16:37:57 +04:00
Other device-mapper based devices are handled using the
2014-11-19 02:35:04 +03:00
\fB dmsetup\fP (8) command.
2012-10-12 16:37:57 +04:00
.SH OPTIONS
2014-06-10 21:32:39 +04:00
.TP
2014-11-19 02:35:04 +03:00
.BR \- d ", " \- \- dmoption \ \fI dm_options\fP
Comma separated list of device-mapper specific options.
Accepted \fB dmsetup\fP (8) options are:
.RS
.IP \fI retry\fP
Retry removal several times in case of failure.
.IP \fI force\fP
Force device removal.
.RE
.TP
2014-06-10 21:32:39 +04:00
.BR \- e ", " \- \- errors
2014-11-19 02:35:04 +03:00
Show errors reported from tools called by \fB blkdeactivate\fP . Without this
option, any error messages from these external tools are suppressed and the
\fB blkdeactivate\fP itself provides only a summary message about device being
skipped or not.
2014-06-10 21:32:39 +04:00
.TP
.BR \- h ", " \- \- help
2012-10-12 16:37:57 +04:00
Display the help text.
2014-06-10 21:32:39 +04:00
.TP
2014-11-19 02:35:04 +03:00
.BR \- l ", " \- \- lvmoption \ \fI lvm_options\fP
Comma separated list of LVM specific options:
.RS
.IP \fI retry\fP
Retry removal several times in case of failure.
.IP \fI wholevg\fP
Deactivate the whole LVM Volume Group when processing a Logical Volume.
Deactivating Volume Group as a whole takes less time than deactivating each
Logical Volume separately.
.RE
.TP
2014-06-10 21:32:39 +04:00
.BR \- u ", " \- \- umount
2012-10-12 16:37:57 +04:00
Unmount a mounted device before trying to deactivate it.
Without this option used, a device that is mounted is not deactivated.
2014-06-10 21:32:39 +04:00
.TP
.BR \- v ", " \- \- verbose
2015-04-15 10:19:11 +03:00
Run in verbose mode. Use \- \- vv for even more verbose mode.
2012-10-12 16:37:57 +04:00
.SH EXAMPLES
.sp
Deactivate all supported block devices found in the system. If a device
is mounted, skip its deactivation.
.sp
.B blkdeactivate
Deactivate all supported block devices found in the system. If a device
is mounted, unmount it first if possible.
.sp
.B blkdeactivate \- u
Deactivate supplied device together with all its holders. If any of the
devices processed is mounted, unmount it first if possible.
.sp
.B blkdeactivate \- u /dev/vg/lvol0
Deactivate all supported block devices found in the system. Retry deactivation
of device-mapper devices in case the deactivation fails. Deactivate the whole
Volume Group at once when processing an LVM Logical Volume.
.sp
2014-06-11 13:06:30 +04:00
.B blkdeactivate \- u \- d retry \- l wholevg
2012-10-12 16:37:57 +04:00
Deactivate all supported block devices found in the system. Retry deactivation
of device-mapper devices in case the deactivation fails and force removal.
.sp
2014-06-11 13:06:30 +04:00
.B blkdeactivate \- d force,retry
2012-10-12 16:37:57 +04:00
.SH SEE ALSO
2014-11-19 02:35:04 +03:00
.BR dmsetup (8),
.BR lsblk (8),
.BR lvm (8),
2012-10-12 16:37:57 +04:00
.BR umount (8)