LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-06-2011, 04:32 PM   #1
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: CentOS 7.4 with KDE
Posts: 262

Rep: Reputation: 22
WARNING: BTRFS Will Screw Your Debian/Ubuntu System


Well I've just been through Hell, trying to resolve a problem that's not fixable apparently. I chose to set up /boot with ext3 and / with BTRFS because of all the nice features it has.

Things were fine for a couple months until this most recent dist-upgrade. The new grub has an incompatibility with BTRFS which nearly caused me to lose everything, as grub couldn't set up the boot system since it can't see the BTRFS partition.

I worked for days trying to get help in the linux-btrfs listserv, but they don't seem to understand Debian/Ubuntu, and they kept referring me to Debian and grub devs. I asked them how those devs will know any more about BTRFS than they do, but there was no reply.

They said the new grub (1.99~rc1-13) will fix it, but unfortunately the Debian package management system was jammed by BTRFS as well and I couldn't install/deinstall anything. I finally had to unpack the grub-pc .deb and manually install it, but guess what? It didn't fix the problem.

I've now had to completely rebuild my system without BTRFS. This has cost me days, which I cannot spare.

I realize it says 'experimental' on the BTRFS website, but it is in the stable kernel, and there is not a word anywhere about it being completely non-functional in Debian/Ubuntu.

So don't make the same mistake I did.

Last edited by Quantumstate; 05-06-2011 at 04:36 PM.
 
Old 05-06-2011, 05:27 PM   #2
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
It's not btrfs responsibility to ensure debain and grub can use it. Grub has the responsibility to make sure it can understand BtrFS and, failing that, it's Debains responsibility to decide to add it to grub if they want their system to support it. But they don't claim to support it. Only that it's available if you want to play with it. Honestly, I don't see how a filesystem could 'break' the package tools on debain other than you not being able to mount all the partitions on recovery... OR you filled up the /var or other partition which would have caused the partition to lock up. This would also cause the package manager to refuse to install something if it didn't have the free space to do so. You don't get the full sapce on the partition availalbe to data on a BtrFS. They also recomend you using a partition larger than 1G. You can sometimes recover a little extraspace using a balance operation. This would give you the ability to reorganize data a little bit and make changes. When I first used BtrFs, I used it like I would any other filesystem and had a root partition of 1G, var of 500M and usr/ of the rest. I quickly found out that 1G was more like 500Mb and 600Mb after a tree balance and the var never got over 150Mb. So I consolidated the data onto the /usr partition with subvolumes (in the hopes that they will eventually have quota options). I also did a bunch of other stuff to make all the data for this install under a subvolume of the partition and made it the default subvolume. This makes it easier to take snapshots and store them outside of the normal mount point.

Like other things that go into the stable kernel, they are often still marked at "experimental". BtrFs is still marked as "experimental" in the kernel as of 2.6.39-rc5. It even has the label "Unstable disk format" even though it's not going to change unless an unforseable fix/feature causes them to change it.

By the way, BtrFs works fine with Lilo, even old versions of Lilo. But that's because Lilo boots a different way. You still need the ext3 /boot partition and an initrd. But that's beside the point.

Last edited by lumak; 05-06-2011 at 05:33 PM.
 
Old 05-06-2011, 11:03 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Not a lot of sympathy here either. If experimental stuff breaks you get to keep all the pieces. Always been that way.
I run (non-prod) almost exclusively btrfs - have done for ages. Exclusively grub - haven't used lilo since last millenium I'm guessing. Haven't seen the issue, but I don't run much Debian based stuff. I have a Mint LMDE somewhere - might check that and see if it behaves similar.
 
Old 05-07-2011, 12:18 AM   #4
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
I'm betting on the partition that was way too small and got filled up. That's the most logical reason for the package manager 'not working any more.'
 
Old 05-07-2011, 02:29 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
O.K., so I checked my LMDE system - this is a rolling release based on Debian testing. Needed a truckload of updates including grub 1.99~rc1-13, so I kicked it off and went and fed the dog.

This system is a simple 2 partition setup (plus swap) - a ext3 /boot, and a (single) btrfs /. It doesn't update the MBR, but is chain-loaded from grub1 - which is itself chain-loaded from the Win7 loader - just to make things interesting.
Updated fine, and this is being posted from it. No problems at all.
 
Old 05-08-2011, 07:39 AM   #6
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: CentOS 7.4 with KDE
Posts: 262

Original Poster
Rep: Reputation: 22
No, the partition is not full.

lumak and syg00, you misinterpret my intention here as seeking help or "sympathy". No.

As I say, this is intended as a WARNING to others. Take it as you will.
 
Old 05-08-2011, 08:40 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by lumak View Post
Honestly, I don't see how a filesystem could 'break' the package tools on debain other than you not being able to mount all the partitions on recovery... OR you filled up the /var or other partition which would have caused the partition to lock up.
Simple as that, an update to the installed kernel will cause automatically a run of update-grub, which fails because it can't find the /-partition, since it is formatted with BTRFS. Since update-grub reports an error to the package manager the package manager marks the package as unconfigured and will try to configure this package every time the package manager is invoked. This makes it difficult to install anything on that system. It is not impossible, but difficult.

@Quantumstate:
Quote:
which nearly caused me to lose everything
No backups?
Quote:
I've now had to completely rebuild my system without BTRFS. This has cost me days, which I cannot spare.
This makes me assuming that you have installed an experimental file-system (and you clearly state that you in fact did know that) to a production machine. Why should someone do that? And why complaining about the time it consumed to re-install with a stable file-system?
 
Old 05-08-2011, 09:26 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
If you want to avoid wasting time or getting a headache, don't use an experimental filesystem or anything else explicitly marked experimental.

What exactly do you want from a filesystem ? XFS and JFS are stable (non-experimental) high performance filesystems, if you want to try them.
 
Old 05-08-2011, 12:50 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I'll accept the warning as is. I thought about trying btrfs. Shame more on the update that didn't support that file system.

Still the source pages has plenty of warnings. Just not that one yet.

Last edited by jefro; 05-08-2011 at 12:52 PM.
 
Old 05-08-2011, 06:54 PM   #10
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
@TobiSGD

Ahhh yes, I forgot package managers try to help too much and screw things up. This is exactly why package managers shouldn't do anything more than blindly installing packages at the administrators request. Not saying that 'update-grub' was wrong for the package to do... But more of the fact that it forces the package manager to attempt it on each run afterwards. Tell the amdin the error and go away. The Admin will deal with it.
 
Old 05-08-2011, 07:01 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Quantumstate View Post
As I say, this is intended as a WARNING to others. Take it as you will.
Then it (the thread title) should have been framed as a warning - not an absolute statement.

Lots of things might screw your system, btrfs amongst them, but as my experiment proves, there is no basis to say it will screw your (Debian based) system.
I have no issue with you sharing your (unfortunate) experience to warn others.
 
Old 05-09-2011, 01:23 AM   #12
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
Additionally, BtrFs was not the problem. It was the pkgmgr, grub, and user error.
 
0 members found this post helpful.
Old 05-09-2011, 06:57 AM   #13
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: CentOS 7.4 with KDE
Posts: 262

Original Poster
Rep: Reputation: 22
lumak, it doesn't matter. The choice of BTRFS is the problem.

Furthermore, have a quick look at their patches; it's a forest. Reiser didn't have these problems when it got started.

Are you just trying to be argumentative?
 
0 members found this post helpful.
  


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
LXer: Ubuntu 10.10's New File System: btrfs, A Closer Look LXer Syndicated Linux News 0 08-04-2010 05:10 AM
LXer: Btrfs May Be The Default File-System In Ubuntu 10.10 LXer Syndicated Linux News 1 05-16-2010 12:20 AM
LXer: Boot On BTRFS With Debian LXer Syndicated Linux News 0 08-02-2009 02:30 PM
LXer: The Btrfs file system LXer Syndicated Linux News 0 07-17-2009 02:00 PM
WARNING -- Firefox "UPDATE" from CNR will royally screw your setup plumnilly Linspire/Freespire 16 05-27-2006 07:30 AM

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

All times are GMT -5. The time now is 11:00 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