Btrfs best practices
This document (7018154) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
This TID is about giving some ideas for working with this filesystem (btrfs).
This is message will be printed if it has been detected that your hard drive does not support barriers.
It is important to note that barriers make sure the data got written to disk before returning from the
I/O operation. In case the hard drive has no battery backed up unit, data which have not been written back will be lost. This can lead to a severe file-system corruption. In case such message is printed make sure to disable the write cache on each hard drive the message is printed for.
To do so, please run as root:
'hdparm -W0 /dev/<devicename>' ============================================================================================================ Other topics:
- What to do if btrfs claims it is running out of space but still plenty of space is available.
- If there's a problem with resuming balance on mount, mount with -o skip_balance.
- If there is a corrupted root on mount, mount with -o recovery to try backup roots.
- If there are weird ENOSPC issues, mount with -o clear_cache (mount may take longer than is typical as the cache is rebuilt)
- If there are wierd quota issues that prevent mounting, a newer fsck can repair them. Otherwise, quota issues should be fixed with 'btrfs quota rescan'
- As a last resort, btrfs check will identify if there are errors that need repairing. It's typically a good idea to attempt a check without repair before repairing outright.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7018154
- Creation Date: 14-Oct-2016
- Modified Date:02-Aug-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: firstname.lastname@example.org