{"id":3288,"date":"2022-12-20T17:02:14","date_gmt":"2022-12-20T20:02:14","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/blkzone-man8\/"},"modified":"2022-12-20T17:02:14","modified_gmt":"2022-12-20T20:02:14","slug":"blkzone-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/blkzone-man8\/","title":{"rendered":"BLKZONE (man8)"},"content":{"rendered":"<h1 align=\"center\">BLKZONE<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#COMMANDS\">COMMANDS<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">blkzone \u2212 run zone command on a device<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>blkzone<\/b> <i>command<\/i> [options] <i>device<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>blkzone<\/b><\/i> is used to run zone command on device that support the Zoned Block Commands (ZBC) or Zoned-device ATA Commands (ZAC). The zones to operate on can be specified using the offset, count and length options.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>device<\/i> argument is the pathname of the block device.<\/p>\n<h2>COMMANDS <a name=\"COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>report<\/b> <br \/> The command <b>blkzone report<\/b> is used to report device zone information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">By default, the command will report all zones from the start of the block device. Options may be used to modify this behavior, changing the starting zone or the size of the report, as explained below.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Report output<\/b><\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><b><img decoding=\"async\" src=\"grohtml-1020411.png\" alt=\"Image grohtml-1020411.png\"><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Zone conditions<\/b><\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><b><img decoding=\"async\" src=\"grohtml-1020412.png\" alt=\"Image grohtml-1020412.png\"><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>reset<\/b> <br \/> The command <b>blkzone reset<\/b> is used to reset one or more zones. Unlike <b>sg_reset_wp<\/b>(8), this command operates from the block layer and can reset a range of zones.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>open<\/b> <br \/> The command <b>blkzone open<\/b> is used to explicitly open one or more zones. Unlike <b>sg_zone<\/b>(8), open action, this command operates from the block layer and can open a range of zones.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>close<\/b> <br \/> The command <b>blkzone close<\/b> is used to close one or more zones. Unlike <b>sg_zone<\/b>(8), close action, this command operates from the block layer and can close a range of zones.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>finish<\/b> <br \/> The command <b>blkzone finish<\/b> is used to finish (transition to full condition) one or more zones. Unlike <b>sg_zone<\/b>(8), finish action, this command operates from the block layer and can finish a range of zones.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">By default, the reset, open, close and finish commands will operate from the zone at device sector 0 and operate on all zones. Options may be used to modify this behavior as explained below.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>offset<\/i> and <i>length<\/i> option arguments may be followed by the multiplicative suffixes KiB (=1024), MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the &#8220;iB&#8221; is optional, e.g., &#8220;K&#8221; has the same meaning as &#8220;KiB&#8221;) or the suffixes KB (=1000), MB (=1000*1000), and so on for GB, TB, PB, EB, ZB and YB. Additionally, the 0x prefix can be used to specify <i>offset<\/i> and <i>length<\/i> in hex. <b><br \/> \u2212o<\/b>, <b>\u2212\u2212offset<\/b> <i>sector<\/i><\/p>\n<p style=\"margin-left:22%;\">The starting zone specified as a sector offset. The provided offset in sector units (512 bytes) should match the start of a zone. The default value is zero.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212l<\/b>, <b>\u2212\u2212length<\/b> <i>sectors<\/i><\/p>\n<p style=\"margin-left:22%;\">The maximum number of sectors the command should operate on. The default value is the number of sectors remaining after <i>offset<\/i>. This option cannot be used together with the option <b>\u2212\u2212count<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212c<\/b>, <b>\u2212\u2212count<\/b> <i>count<\/i><\/p>\n<p style=\"margin-left:22%;\">The maximum number of zones the command should operate on. The default value is the number of zones starting from <i>offset<\/i>. This option cannot be used together with the option <b>\u2212\u2212length<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212f<\/b>, <b>\u2212\u2212force<\/b><\/p>\n<p style=\"margin-left:22%;\">Enforce commands to change zone status on block devices used by the system.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212v<\/b>, <b>\u2212\u2212verbose<\/b><\/p>\n<p style=\"margin-left:22%;\">Display the number of zones returned in the report or the range of sectors reset.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Display version information and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display help text and exit.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Shaun Tancheff <shaun@tancheff.com> <br \/> Karel Zak <kzak@redhat.com><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>sg_rep_zones<\/b>(8)<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The blkzone command is part of the util-linux package and is available from <a href=\"https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\">Linux Kernel Archive<\/a>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  blkzone \u2212 run zone command on a device <\/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,421,4],"class_list":["post-3288","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-blkzone","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3288","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=3288"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3288\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}