btrfs-rescue(8)


NAME

   btrfs-rescue - Recover a damaged btrfs filesystem

SYNOPSIS

   btrfs rescue <subcommand> <args>

DESCRIPTION

   btrfs rescue is used to try to recover a damaged btrfs filesystem.

SUBCOMMAND

   chunk-recover [options] <device>
       Recover the chunk tree by scanning the devices

       Options

       -y
           assume an answer of yes to all questions.

       -v
           verbose mode.

       -h
           help.

       Note
       Since chunk-recover will scan the whole device, it will be VERY
       slow especially executed on a large device.

   super-recover [options] <device>
       Recover bad superblocks from good copies.

       Options

       -y
           assume an answer of yes to all questions.

       -v
           verbose mode.

   zero-log <device>
       clear the filesystem log tree

   This command will clear the filesystem log tree. This may fix a
   specific set of problem when the filesystem mount fails due to the log
   replay. See below for sample stacktraces that may show up in system
   log.

   The common case where this happens has been fixed a long time ago, so
   it is unlikely that you will see this particular problem, but the
   utility is kept around.

       Note
       clearing the log may lead to loss of changes that were made since
       the last transaction commit. This may be up to 30 seconds (default
       commit period) or less if the commit was implied by other
       filesystem activity.

   One can determine whether zero-log is needed according to the kernel
   backtrace:

       ? replay_one_dir_item+0xb5/0xb5 [btrfs]
       ? walk_log_tree+0x9c/0x19d [btrfs]
       ? btrfs_read_fs_root_no_radix+0x169/0x1a1 [btrfs]
       ? btrfs_recover_log_trees+0x195/0x29c [btrfs]
       ? replay_one_dir_item+0xb5/0xb5 [btrfs]
       ? btree_read_extent_buffer_pages+0x76/0xbc [btrfs]
       ? open_ctree+0xff6/0x132c [btrfs]

   If the errors are like above, then zero-log should be used to clear the
   log and the filesystem may be mounted normally again. The keywords to
   look for are open_ctree which says that it's during mount and function
   names that contain replay, recover or log_tree.

EXIT STATUS

   btrfs rescue returns a zero exit status if it succeeds. Non zero is
   returned in case of failure.

AVAILABILITY

   btrfs is part of btrfs-progs. Please refer to the btrfs wiki
   http://btrfs.wiki.kernel.org for further details.

SEE ALSO

   mkfs.btrfs(8), btrfs-scrub(8), btrfs-check(8)


More Linux Commands

manpages/XtVaCreateWidget.3.html
XtVaCreateWidget(3) - create and destroy widgets (Man Page)
The XtCreateWidget function performs much of the boilerplate operations of widget creation: * Checks to see if the class_initialize procedure has been called fo

manpages/accessdb.8.html
accessdb(8) - dumps the content of a man-db database in a hu
accessdb will output the data contained within a man-db database in a human readable form. By default, it will dump the data from /var/cache/man/index.&lt;db-type&gt;

manpages/menu.3menu.html
menu(3menu) - curses extension for programming menus........
The menu library provides terminal-independent facilities for composing menu systems on character-cell terminals. The library includes: item routines, which cre

manpages/XOpenIM.3.html
XOpenIM(3) - open, close, and obtain input method informatio
The XOpenIM function opens an input method, matching the current locale and modifiers specification. Current locale and modifiers are bound to the input method

manpages/wcscspn.3.html
wcscspn(3) - search a wide-character string for any of a set
The wcscspn() function is the wide-character equivalent of the strcspn(3) function. It determines the length of the longest initial segment of wcs which consist

manpages/glPixelTransfer.3gl.html
glPixelTransfer(3gl) - set pixel transfer modes (Man Page)
glPixelTransfer sets pixel transfer modes that affect the operation of subsequent glCopyPixels, glCopyTexImage1D, glCopyTexImage2D, glCopyTexSubImage1D, glCopyT

manpages/iscsiadm.8.html
iscsiadm(8) open-iscsi administration utility (Man Page)....
The iscsiadm utility is a command-line tool allowing discovery and login to iSCSI targets, as well as access and management of the open-iscsi database. Open-isc

manpages/glPushMatrix.3gl.html
glPushMatrix(3gl) - push and pop the current matrix stack...
There is a stack of matrices for each of the matrix modes. In GL_MODELVIEW mode, the stack depth is at least 32. In the other modes, GL_COLOR, const(PROJECTION)

manpages/ldap_dcedn2dn.3.html
ldap_dcedn2dn(3) - LDAP DN handling routines (Man Page).....
These routines allow LDAP entry names (Distinguished Names, or DNs) to be obtained, parsed, converted to a user-friendly form, and tested. A DN has the form des

manpages/inputattach.1.html
inputattach(1) attach a serial line to an input-layer device
inputattach attaches a serial line to an input-layer device via a line discipline. Exactly one of the available modes must be specified on the command line. OPT

manpages/snmp_sess_timeout.3.html
snmp_sess_timeout(3) - session functions - Linux man page...
These functions define a subset of the API that can be used to manage single SNMP sessions in a multi-threaded application. Except for snmp_sess_session(), thes

manpages/glRasterPos4fv.3gl.html
glRasterPos4fv(3gl) - specify the raster position for pixel
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma





We can't live, work or learn in freedom unless the software we use is free.