diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-03-05 01:47:43 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-03-05 01:47:43 -0800 |
commit | 44a3c2255bc480c82f34db156553a595606d8a0b (patch) | |
tree | 5e6df96a6c6e40207cb3a711860e16b543918c0d /man/blkdeactivate.8.in | |
parent | 8bd28eea831fd5215c12e6fcecc8e9a772398ed9 (diff) | |
download | device-mapper-44a3c2255bc480c82f34db156553a595606d8a0b.tar.gz device-mapper-44a3c2255bc480c82f34db156553a595606d8a0b.tar.bz2 device-mapper-44a3c2255bc480c82f34db156553a595606d8a0b.zip |
Imported Upstream version 2.02.98upstream/2.02.98upstream/1.02.77
Diffstat (limited to 'man/blkdeactivate.8.in')
-rw-r--r-- | man/blkdeactivate.8.in | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/man/blkdeactivate.8.in b/man/blkdeactivate.8.in new file mode 100644 index 0000000..6e566c8 --- /dev/null +++ b/man/blkdeactivate.8.in @@ -0,0 +1,72 @@ +.TH "BLKDEACTIVATE" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\"" +.SH "NAME" +blkdeactivate \- utility to deactivate block devices +.SH SYNOPSIS +.B blkdeactivate +.RI [ options ] +.RI [ device... ] +.sp +.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 +\fIdevice-mapper\fP devices, including \fILVM\fP volumes. +LVM volumes are handled directly using the \fIlvm\fP command. +Other device-mapper based devices are handled using the +\fIdmsetup\fP command. +.SH OPTIONS +.IP "\fB\-h, \-\-help\fP" +Display the help text. +.IP "\fB\-u, \-\-umount\fP" +Unmount a mounted device before trying to deactivate it. +Without this option used, a device that is mounted is not deactivated. +.IP "\fB\-d, \-\-dmoption\fP \fIdm_options\fP" +Comma separated list of device-mapper specific options. +.IP "\fB\-l, \-\-lvmoption\fP \fIlvm_options\fP" +Comma separated list of LVM specific options. +.SH DM_OPTIONS +.IP "\fBretry\fP" +Retry removal several times in case of failure. +.IP "\fBforce\fP" +Force device removal. See \fBdmsetup\fP(8) for more information. +.SH LVM_OPTIONS +.IP "\fBretry\fP" +Retry removal several times in case of failure. +.IP "\fBwholevg\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. + +.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 +.B blkdeactivate \-u -d retry -l wholevg + +Deactivate all supported block devices found in the system. Retry deactivation +of device-mapper devices in case the deactivation fails and force removal. +.sp +.B blkdeactivate -d force,retry + +.SH SEE ALSO +.BR lsblk (8) +.BR umount (8) +.BR dmsetup (8) +.BR lvm (8) |