blkdeactivate(8) - Linux man page
Name
blkdeactivate - utility to deactivate block devicesSynopsis
blkdeactivate [options] [device...]Description
Options
- -h, --help
- Display the help text.
- -u, --umount
- Unmount a mounted device before trying to deactivate it. Without this option used, a device that is mounted is not deactivated.
- -d, --dmoption dm_options
- Comma separated list of device-mapper specific options.
- -l, --lvmoption lvm_options
- Comma separated list of LVM specific options.
Dm_options
- retry
- Retry removal several times in case of failure.
- force
- Force device removal. See dmsetup(8) for more information.
Lvm_options
- retry
- Retry removal several times in case of failure.
- wholevg
- 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.
Examples
Deactivate all supported block devices found in the system. If a device is mounted, skip its deactivation.
blkdeactivate
Deactivate all supported block devices found in the system. If a device is mounted, unmount it first if possible.
blkdeactivate -u
Deactivate supplied device together with all its holders. If any of the devices processed is mounted, unmount it first if possible.
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.
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.
blkdeactivate -d force,retry