{"id":3703,"date":"2022-12-20T17:19:49","date_gmt":"2022-12-20T20:19:49","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/blkdeactivate-man8\/"},"modified":"2022-12-20T17:19:49","modified_gmt":"2022-12-20T20:19:49","slug":"blkdeactivate-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/blkdeactivate-man8\/","title":{"rendered":"BLKDEACTIVATE (man8)"},"content":{"rendered":"<h1 align=\"center\">BLKDEACTIVATE<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">blkdeactivate \u2014 utility to deactivate block devices<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>blkdeactivate<\/b> [<b>\u2212d\u00a0<\/b><i>dm_options<\/i>] [<b>\u2212e<\/b>] [<b>\u2212h<\/b>] [<b>\u2212l\u00a0<\/b><i>lvm_options<\/i>] [<b>\u2212m\u00a0<\/b><i>mpath_options<\/i>] [<b>\u2212r\u00a0<\/b><i>mdraid_options<\/i>] [<b>\u2212o\u00a0<\/b><i>vdo_options<\/i>] [<b>\u2212u<\/b>] [<b>\u2212v<\/b>] [<i>device<\/i>]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The blkdeactivate utility deactivates block devices. For mounted block devices, it attempts to unmount it automatically before trying to deactivate. The utility currently supports device-mapper devices (DM), including LVM volumes and software RAID MD devices. LVM volumes are handled directly using the <b>lvm<\/b>(8) command, the rest of device-mapper based devices are handled using the <b>dmsetup<\/b>(8) command. MD devices are handled using the <b>mdadm<\/b>(8) command.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212d<\/b>, <b>\u2212\u2212dmoptions\u00a0<\/b><i>dm_options<\/i><\/p>\n<p style=\"margin-left:22%;\">Comma separated list of device-mapper specific options. Accepted <b>dmsetup<\/b>(8) options are:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"7%\">\n<p><i>retry<\/i><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Retry removal several times in case of failure.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"7%\">\n<p><i>force<\/i><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Force device removal.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212e<\/b>, <b>\u2212\u2212errors<\/b><\/p>\n<p style=\"margin-left:22%;\">Show errors reported from tools called by <b>blkdeactivate<\/b>. Without this option, any error messages from these external tools are suppressed and the <b>blkdeactivate<\/b> itself provides only a summary message to indicate the device was skipped.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display the help text.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212l<\/b>, <b>\u2212\u2212lvmoptions\u00a0<\/b><i>lvm_options<\/i><\/p>\n<p style=\"margin-left:22%;\">Comma-separated list of LVM specific options:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"7%\">\n<p><i>retry<\/i><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Retry removal several times in case of failure.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><i>wholevg<\/i><\/p>\n<p style=\"margin-left:32%;\">Deactivate the whole LVM Volume Group when processing a Logical Volume. Deactivating the Volume Group as a whole is quicker than deactivating each Logical Volume separately.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212m<\/b>, <b>\u2212\u2212mpathoptions\u00a0<\/b><i>mpath_options<\/i><\/p>\n<p style=\"margin-left:22%;\">Comma-separated list of device-mapper multipath specific options: <i><br \/> disablequeueing<\/i><\/p>\n<p style=\"margin-left:32%;\">Disable queueing on all multipath devices before deactivation. This avoids a situation where blkdeactivate may end up waiting if all the paths are unavailable for any underlying device-mapper multipath device.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212r<\/b>, <b>\u2212\u2212mdraidoptions\u00a0<\/b><i>mdraid_options<\/i><\/p>\n<p style=\"margin-left:22%;\">Comma-separated list of MD RAID specific options:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p><i>wait<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"68%\">\n<p>Wait MD device\u2019s resync, recovery or reshape action to complete before deactivation.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212o<\/b>, <b>\u2212\u2212vdooptions\u00a0<\/b><i>vdo_options<\/i><\/p>\n<p style=\"margin-left:22%;\">Comma-separated list of VDO specific options: <i><br \/> configfile=file<\/i><\/p>\n<p style=\"margin-left:32%;\">Use specified VDO configuration file.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212u<\/b>, <b>\u2212\u2212umount<\/b><\/p>\n<p style=\"margin-left:22%;\">Unmount a mounted device before trying to deactivate it. Without this option used, a device that is mounted is not deactivated.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212v<\/b>, <b>\u2212\u2212verbose<\/b><\/p>\n<p style=\"margin-left:22%;\">Run in verbose mode. Use \u2212\u2212vv for even more verbose mode.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Deactivate all supported block devices found in the system, skipping mounted devices. # <b>blkdeactivate<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Deactivate all supported block devices found in the system, unmounting any mounted devices first, if possible. # <b>blkdeactivate \u2212u<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Deactivate the device \/dev\/vg\/lvol0 together with all its holders, unmounting any mounted devices first, if possible. # <b>blkdeactivate \u2212u \/dev\/vg\/lvol0<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Deactivate all supported block devices found in the system. If the deactivation of a device-mapper device fails, retry it. Deactivate the whole Volume Group at once when processing an LVM Logical Volume. # <b>blkdeactivate \u2212u \u2212d retry \u2212l wholevg<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Deactivate all supported block devices found in the system. If the deactivation of a device-mapper device fails, retry it and force removal. # <b>blkdeactivate \u2212d force,retry<\/b><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>dmsetup<\/b>(8), <b>lsblk<\/b>(8), <b>lvm<\/b>(8), <b>mdadm<\/b>(8), <b>multipathd<\/b>(8), <b>vdo<\/b>(8), <b>umount<\/b>(8)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  blkdeactivate \u2014 utility to deactivate block devices <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,814,4],"class_list":["post-3703","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-blkdeactivate","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3703"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3703\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}