{"id":2767,"date":"2022-12-20T15:17:14","date_gmt":"2022-12-20T18:17:14","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/btrfsdevice-man8\/"},"modified":"2022-12-20T15:17:14","modified_gmt":"2022-12-20T18:17:14","slug":"btrfsdevice-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/btrfsdevice-man8\/","title":{"rendered":"BTRFS&minus;DEVICE (man8)"},"content":{"rendered":"<h1 align=\"center\">BTRFS\u2212DEVICE<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#DEVICE MANAGEMENT\">DEVICE MANAGEMENT<\/a><br \/> <a href=\"#SUBCOMMAND\">SUBCOMMAND<\/a><br \/> <a href=\"#TYPICAL USECASES\">TYPICAL USECASES<\/a><br \/> <a href=\"#DEVICE STATS\">DEVICE STATS<\/a><br \/> <a href=\"#EXIT STATUS\">EXIT STATUS<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/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\">btrfs-device \u2212 manage devices of btrfs filesystems<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>btrfs device<\/b> <i><subcommand> <args><\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>btrfs device<\/b> command group is used to manage devices of the btrfs filesystems.<\/p>\n<h2>DEVICE MANAGEMENT <a name=\"DEVICE MANAGEMENT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Btrfs filesystem can be created on top of single or multiple block devices. Data and metadata are organized in allocation profiles with various redundancy policies. There\u2019s some similarity with traditional RAID levels, but this could be confusing to users familiar with the traditional meaning. Due to the similarity, the RAID terminology is widely used in the documentation. See <b>mkfs.btrfs<\/b>(8) for more details and the exact profile capabilities and constraints.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The device management works on a mounted filesystem. Devices can be added, removed or replaced, by commands provided by <b>btrfs device<\/b> and <b>btrfs replace<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The profiles can be also changed, provided there\u2019s enough workspace to do the conversion, using the <b>btrfs balance<\/b> command and namely the filter <i>convert<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Type<\/p>\n<p style=\"margin-left:17%;\">The block group profile type is the main distinction of the information stored on the block device. User data are called <i>Data<\/i>, the internal data structures managed by filesystem are <i>Metadata<\/i> and <i>System<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Profile<\/p>\n<p style=\"margin-left:17%;\">A profile describes an allocation policy based on the redundancy\/replication constraints in connection with the number of devices. The profile applies to data and metadata block groups separately. Eg. <i>single<\/i>, <i>RAID1<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">RAID level<\/p>\n<p style=\"margin-left:17%;\">Where applicable, the level refers to a profile that matches constraints of the standard RAID levels. At the moment the supported ones are: RAID0, RAID1, RAID10, RAID5 and RAID6.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">See the section <b>TYPICAL USECASES<\/b> for some examples.<\/p>\n<h2>SUBCOMMAND <a name=\"SUBCOMMAND\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>add<\/b> [\u2212Kf] <i><device><\/i> [<i><device><\/i>&#8230;] <i><path><\/i><\/p>\n<p style=\"margin-left:17%;\">Add device(s) to the filesystem identified by <i><path><\/i>.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If applicable, a whole device discard (TRIM) operation is performed prior to adding the device. A device with existing filesystem detected by <b>blkid<\/b>(8) will prevent device addition and has to be forced. Alternatively the filesystem can be wiped from the device using eg. the <b>wipefs<\/b>(8) tool.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">The operation is instant and does not affect existing data. The operation merely adds the device to the filesystem structures and creates some block groups headers.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>Options<\/b><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2212K|\u2212\u2212nodiscard<\/p>\n<p style=\"margin-left:23%;\">do not perform discard (TRIM) by default<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2212f|\u2212\u2212force<\/p>\n<p style=\"margin-left:23%;\">force overwrite of existing filesystem on the given disk(s)<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2212\u2212enqueue<\/p>\n<p style=\"margin-left:23%;\">wait if there\u2019s another exclusive operation running, otherwise continue<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>remove<\/b> [options] <i><device><\/i>|<i><devid><\/i> [<i><device><\/i>|<i><devid><\/i>&#8230;] <i><path><\/i><\/p>\n<p style=\"margin-left:17%;\">Remove device(s) from a filesystem identified by <i><path><\/i><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Device removal must satisfy the profile constraints, otherwise the command fails. The filesystem must be converted to profile(s) that would allow the removal. This can typically happen when going down from 2 devices to 1 and using the RAID1 profile. See the <b>TYPICAL USECASES<\/b> section below.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">The operation can take long as it needs to move all data from the device.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">It is possible to delete the device that was used to mount the filesystem. The device entry in the mount table will be replaced by another device name with the lowest device id.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If the filesystem is mounted in degraded mode (\u2212o degraded), special term <i>missing<\/i> can be used for <i>device<\/i>. In that case, the first device that is described by the filesystem metadata, but not present at the mount time will be removed.<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b><big>Note<\/big><\/b> <br \/> In most cases, there is only one missing device in degraded mode, otherwise mount fails. If there are two or more devices missing (e.g. possible in RAID6), you need specify <i>missing<\/i> as many times as the number of missing devices to remove all of them.<\/p>\n<p style=\"margin-left:17%;\"><b>Options<\/b><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212\u2212enqueue<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>wait if there\u2019s another exclusive operation running, otherwise continue<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>delete<\/b> <i><device><\/i>|<i><devid><\/i> [<i><device><\/i>|<i><devid><\/i>&#8230;] <i><path><\/i><\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Alias of remove kept for backward compatibility<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>ready<\/b> <i><device><\/i><\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Wait until all devices of a multiple\u2212device filesystem are scanned and registered within the kernel module. This is to provide a way for automatic filesystem mounting tools to wait before the mount can start. The device scan is only one of the preconditions and the mount can fail for other reasons. Normal users usually do not need this command and may safely ignore it.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>scan<\/b> [options] [<i><device><\/i> [<i><device><\/i>&#8230;]]<\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Scan devices for a btrfs filesystem and register them with the kernel module. This allows mounting multiple\u2212device filesystem by specifying just one from the whole group.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>If no devices are passed, all block devices that blkid reports to contain btrfs are scanned.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>The options <i>\u2212\u2212all\u2212devices<\/i> or <i>\u2212d<\/i> can be used as a fallback in case blkid is not available. If used, behavior is the same as if no devices are passed.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>The command can be run repeatedly. Devices that have been already registered remain as such. Reloading the kernel module will drop this information. There\u2019s an alternative way of mounting multiple\u2212device filesystem without the need for prior scanning. See the mount option <i>device<\/i>.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big><b>Options<\/b><\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212d|\u2212\u2212all\u2212devices<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>Enumerate and register all devices, use as a fallback in case blkid is not available.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212u|\u2212\u2212forget<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>Unregister a given device or all stale devices if no path is given, the device must be unmounted otherwise it\u2019s an error.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>stats<\/b> [options] <i><path><\/i>|<i><device><\/i><\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Read and print the device IO error statistics for all devices of the given filesystem identified by <i><path><\/i> or for a single <i><device><\/i>. The filesystem must be mounted. See section <b>DEVICE STATS<\/b> for more information about the reported statistics and the meaning.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big><b>Options<\/b><\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212z|\u2212\u2212reset<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>Print the stats and reset the values to zero afterwards.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212c|\u2212\u2212check<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>Check if the stats are all zeros and return 0 if it is so. Set bit 6 of the return code if any of the statistics is no\u2212zero. The error values is 65 if reading stats from at least one device failed, otherwise it\u2019s 64.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>usage<\/b> [options] <i><path><\/i> [<i><path><\/i>&#8230;]<\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Show detailed information about internal allocations on devices.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>The level of detail can differ if the command is run under a regular or the root user (due to use of restricted ioctls). The first example below is for normal user (warning included) and the next one with root on the same filesystem:<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>WARNING: cannot read detailed chunk info, per\u2212device usage will not be shown, run as root <br \/> \/dev\/sdc1, ID: 1 <br \/> Device size: 931.51GiB <br \/> Device slack: 0.00B <br \/> Unallocated: 931.51GiB<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\/dev\/sdc1, ID: 1 <br \/> Device size: 931.51GiB <br \/> Device slack: 0.00B <br \/> Data,single: 641.00GiB <br \/> Data,RAID0\/3: 1.00GiB <br \/> Metadata,single: 19.00GiB <br \/> System,single: 32.00MiB <br \/> Unallocated: 271.48GiB<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\u2022 <i>Device size<\/i> \u2014 size of the device as seen by the filesystem (may be different than actual device size)<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\u2022 <i>Device slack<\/i> \u2014 portion of device not used by the filesystem but still available in the physical space provided by the device, eg. after a device shrink<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\u2022 <i>Data,single<\/i>, <i>Metadata,single<\/i>, <i>System,single<\/i> \u2014 in general, list of block group type (Data, Metadata, System) and profile (single, RAID1, &#8230;) allocated on the device<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\u2022 <i>Data,RAID0\/3<\/i> \u2014 in particular, striped profiles RAID0\/RAID10\/RAID5\/RAID6 with the number of devices on which the stripes are allocated, multiple occurences of the same profile can appear in case a new device has been added and all new available stripes have been used for writes<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\u2022 <i>Unallocated<\/i> \u2014 remaining space that the filesystem can still use for new block groups<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big><b>Options<\/b><\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212b|\u2212\u2212raw<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>raw numbers in bytes, without the <i>B<\/i> suffix<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212h|\u2212\u2212human\u2212readable<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>print human friendly numbers, base 1024, this is the default<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212H<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>print human friendly numbers, base 1000<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212\u2212iec<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>select the 1024 base for the following options, according to the IEC standard<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212\u2212si<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>select the 1000 base for the following options, according to the SI standard<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212k|\u2212\u2212kbytes<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>show sizes in KiB, or kB with \u2212\u2212si<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212m|\u2212\u2212mbytes<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>show sizes in MiB, or MB with \u2212\u2212si<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212g|\u2212\u2212gbytes<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>show sizes in GiB, or GB with \u2212\u2212si<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>\u2212t|\u2212\u2212tbytes<\/big><\/p>\n<p style=\"margin-left:23%;\"><big>show sizes in TiB, or TB with \u2212\u2212si<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>If conflicting options are passed, the last one takes precedence.<\/big><\/p>\n<h2>TYPICAL USECASES <a name=\"TYPICAL USECASES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>STARTING WITH A SINGLE\u2212DEVICE FILESYSTEM<\/b> <br \/> Assume we\u2019ve created a filesystem on a block device <i>\/dev\/sda<\/i> with profile <i>single\/single<\/i> (data\/metadata), the device size is 50GiB and we\u2019ve used the whole device for the filesystem. The mount point is <i>\/mnt<\/i>.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>The amount of data stored is 16GiB, metadata have allocated 2GiB.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b><big>ADD NEW DEVICE<\/big><\/b><\/big><\/p>\n<p style=\"margin-left:17%;\"><big>We want to increase the total size of the filesystem and keep the profiles. The size of the new device <i>\/dev\/sdb<\/i> is 100GiB.<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>$ btrfs device add \/dev\/sdb \/mnt<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>The amount of free data space increases by less than 100GiB, some space is allocated for metadata.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b><big>CONVERT TO RAID1<\/big><\/b><\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Now we want to increase the redundancy level of both data and metadata, but we\u2019ll do that in steps. Note, that the device sizes are not equal and we\u2019ll use that to show the capabilities of split data\/metadata and independent profiles.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>The constraint for RAID1 gives us at most 50GiB of usable space and exactly 2 copies will be stored on the devices.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>First we\u2019ll convert the metadata. As the metadata occupy less than 50GiB and there\u2019s enough workspace for the conversion process, we can do:<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>$ btrfs balance start \u2212mconvert=raid1 \/mnt<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>This operation can take a while, because all metadata have to be moved and all block pointers updated. Depending on the physical locations of the old and new blocks, the disk seeking is the key factor affecting performance.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>You\u2019ll note that the system block group has been also converted to RAID1, this normally happens as the system block group also holds metadata (the physical to logical mappings).<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>What changed:<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\u2022 available data space decreased by 3GiB, usable roughly (50 \u2212 3) + (100 \u2212 3) = 144 GiB<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>\u2022 metadata redundancy increased<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>IOW, the unequal device sizes allow for combined space for data yet improved redundancy for metadata. If we decide to increase redundancy of data as well, we\u2019re going to lose 50GiB of the second device for obvious reasons.<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>$ btrfs balance start \u2212dconvert=raid1 \/mnt<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>The balance process needs some workspace (ie. a free device space without any data or metadata block groups) so the command could fail if there\u2019s too much data or the block groups occupy the whole first device.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>The device size of <i>\/dev\/sdb<\/i> as seen by the filesystem remains unchanged, but the logical space from 50\u2212100GiB will be unused.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b><big>REMOVE DEVICE<\/big><\/b><\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Device removal must satisfy the profile constraints, otherwise the command fails. For example:<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>$ btrfs device remove \/dev\/sda \/mnt <br \/> ERROR: error removing device &#8216;\/dev\/sda&#8217;: unable to go below two devices on raid1<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>In order to remove a device, you need to convert the profile in this case:<\/big><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><big>$ btrfs balance start \u2212mconvert=dup \u2212dconvert=single \/mnt <br \/> $ btrfs device remove \/dev\/sda \/mnt<\/big><\/p>\n<h2>DEVICE STATS <a name=\"DEVICE STATS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>The device stats keep persistent record of several error classes related to doing IO. The current values are printed at mount time and updated during filesystem lifetime or from a scrub run.<\/big><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><big>$ btrfs device stats \/dev\/sda3 <br \/> [\/dev\/sda3].write_io_errs 0 <br \/> [\/dev\/sda3].read_io_errs 0 <br \/> [\/dev\/sda3].flush_io_errs 0 <br \/> [\/dev\/sda3].corruption_errs 0 <br \/> [\/dev\/sda3].generation_errs 0<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>write_io_errs<\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Failed writes to the block devices, means that the layers beneath the filesystem were not able to satisfy the write request.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>read_io_errors<\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Read request analogy to write_io_errs.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>flush_io_errs<\/big><\/p>\n<p style=\"margin-left:17%;\"><big>Number of failed writes with the <i>FLUSH<\/i> flag set. The flushing is a method of forcing a particular order between write requests and is crucial for implementing crash consistency. In case of btrfs, all the metadata blocks must be permanently stored on the block device before the superblock is written.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>corruption_errs<\/big><\/p>\n<p style=\"margin-left:17%;\"><big>A block checksum mismatched or a corrupted metadata header was found.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>generation_errs<\/big><\/p>\n<p style=\"margin-left:17%;\"><big>The block generation does not match the expected value (eg. stored in the parent node).<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>Since kernel 5.14 the device stats are also available in textual form in <i>\/sys\/fs\/btrfs\/FSID\/devinfo\/DEVID\/error_stats<\/i>.<\/big><\/p>\n<h2>EXIT STATUS <a name=\"EXIT STATUS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>btrfs device<\/b> returns a zero exit status if it succeeds. Non zero is returned in case of failure.<\/big><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>If the <i>\u2212s<\/i> option is used, <b>btrfs device stats<\/b> will add 64 to the exit status if any of the error counters is non\u2212zero.<\/big><\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>btrfs<\/b> is part of btrfs\u2212progs. Please refer to the btrfs wiki <b><font color=\"#0000FF\">http:\/\/btrfs.wiki.kernel.org<\/font><\/b> <font color=\"#000000\">for further details.<\/font><\/big><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><font color=\"#000000\"><b>mkfs.btrfs<\/b>(8), <b>btrfs\u2212replace<\/b>(8), <b>btrfs\u2212balance<\/b>(8)<\/font><\/big><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  btrfs-device \u2212 manage devices of btrfs filesystems <\/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,121,4],"class_list":["post-2767","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-btrfs-device","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2767","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=2767"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2767\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=2767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=2767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=2767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}