LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-15-2016, 02:54 AM   #1
steveoelliott
LQ Newbie
 
Registered: May 2005
Posts: 20

Rep: Reputation: 0
BTRFS File System Checks


Hi all,

I have a ReadyNAS which essentially runs Debian and leverages the BTRFS filesystem.

If I am honest, I am a little uneasy at using BTRFS as some consider it not to be stable whereas many say it is perfectly stable / proven.

Nevertheless, what does concern me is the seemingly inability to run a filesystem check like fsck with it like you would with EXT2/3/4.

Anybody have much experience with BTRFS and filesystem corruption... No issues currently but thinking proactive.

Thanks...
 
Old 12-15-2016, 07:40 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
I have used it in only two builds, and ran into no issues. To my knowledge, the instability appears in the code for the raid configurations supporting raid-5 and raid-6 features. If you stick with no raid features or mirroring only, the common laptop case, there should be no more problems than using ext4.

I would still like an in-depth check and correct tool for the file system, but we may have to wait a while for that. I monitor the stability section on THIS page https://btrfs.wiki.kernel.org/index.php/Main_Page for changes, and the basic file system on disk has been stable for several months now. (since sometime in 2014 I believe)
 
Old 12-15-2016, 09:34 AM   #3
steveoelliott
LQ Newbie
 
Registered: May 2005
Posts: 20

Original Poster
Rep: Reputation: 0
OK Thanks... Seems odd that it never had a file checker that EXT2/3/4.

I wonder how well it handles power outages.
 
Old 12-15-2016, 10:10 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
Quote:
Originally Posted by steveoelliott View Post
OK Thanks... Seems odd that it never had a file checker that EXT2/3/4.

I wonder how well it handles power outages.
It has several kinds of internal checking, and a few one-time checks like fsck runs that can be activated on mount with a command-line option. I suggest hitting the site and doing some reading before using it in any production environment. As always, there is confidence and power in having multiple layers of backups no matter what file system you use.

While I am willing to use it on a non-critical system for convenience, it does not perform as well as EXT4 for server (database) operations. OK for a laptop now, and I expect it to get better, just do not expect it to be fully mature. Yet.
 
Old 12-15-2016, 04:41 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
How to put this "gently". fsck is to ensure the filesystem integrity.
Not (necessarily) your files.

That's why lost+found exists - your files might finish up there. Or even just fragments of them.
Not common, but happens. If I have a major "event" (say a power outage) and find any errors, I restore my important systems (in full) without even thinking about it.

btrfs RAID5/6 has been public for a while now and I find it great - but RAID (btrfs or not) doesn't override the need for backups.
 
Old 12-15-2016, 08:39 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
For a file server I would expect rait5/6 SHOULD work... and btrfs doesn't work reliably for that (still has problems with power failures, and recovery - check the current status: https://btrfs.wiki.kernel.org/index.php/Status. Still unstable after a number of years, and will not perform repair; so I for one will not use btrfs)

Ext2/3/4 do have a fsck available (same one for all three). Never had problems with md raid5.

You can also check with using LVM.

Last edited by jpollard; 12-15-2016 at 08:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] The installer can't put a btrfs file system in a partition that already contains a file system. Didier Spaier Slackware 6 03-11-2016 01:13 PM
installation on btrfs file system is not possible Andrey@ Slackware - Installation 5 09-03-2015 07:00 AM
[SOLVED] Are ext4 file system checks disabled by default on 14.0? sparkyhall Slackware 4 10-21-2012 09:33 AM
BTRFS system file zanier Linux - General 2 07-24-2012 09:21 AM
BTRFS file system zanier Linux - Kernel 3 05-27-2012 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration