Slashdot Mirror


Btrfs Could Be the Default File System In Ubuntu Meerkat

An anonymous reader writes "The EXT family of file systems (ext2, ext3, ext4) have ruled many Linux distributions for a long time, and Ubuntu has been no exception. But things may no longer be the same for Ubuntu 10.10 Maverick Meerkat. Canonical's Scott James Remnant said in a blog post that plans are on for doing work to have btrfs as an installation option, and that the possibility of making it the default file system in Ubuntu 10.10 has not been ruled out."

50 of 269 comments (clear)

  1. Hmm... I am going to pass for now on servers... by ls671 · · Score: 4, Interesting

    Hmm... I am going to pass for now on servers. I might try it on desktops/workstations. Not that I use Ubuntu at all. Btrfs is supported by kernel 2.6.32 on other distros as well if you care to configure it properly.

    I remember failure stories with other latest and greatest filesystems lately and I will let others continue to test and identify bugs before I use it on servers/SAN with critical data.

    From the btrfs wiki https://btrfs.wiki.kernel.org/index.php/Main_Page :


    btrfs is a new copy on write filesystem for Linux...

    Btrfs is under heavy development, but every effort is being made to keep the filesystem stable and fast. As of 2.6.31, we only plan to make forward compatible disk format changes, and many users have been experimenting with Btrfs on their systems with good results. Please email the Btrfs mailing list if you have any problems or questions while using Btrfs.

    --
    Everything I write is lies, read between the lines.
    1. Re:Hmm... I am going to pass for now on servers... by jd · · Score: 4, Interesting

      I've run filesystems that were considered ok-but-early-adopter on servers before. Early XFS releases, for example. It's perhaps not really comparable as SGI had already developed XFS v1 on their workstations and so most of the code was fairly heavily-tested before the Linux port of XFS v2. But there's another consideration - if you look at the way btrfs is described, most of the individual components look a lot simpler than are used in other next-gen filesystems. The difference isn't great between, say, a b-tree and a b+tree or a b*tree, and most filesystem coders are well beyond the stage of making errors on simple abstract data types (right?), but simple components assembled in complex ways are generally more trust-worthy than complex components assembled in simple ways.

      In fact, going back to the early XFS days (when SGI released Red Hat installers and even a few releases before), I found XFS to be much more stable and much more reliable than reiserfs, even though reiserfs has been around longer and was considered mainstream.

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    2. Re:Hmm... I am going to pass for now on servers... by icebike · · Score: 4, Interesting

      Two is your sample size?

      I ran reiser on 108 production servers for years and never lost a byte of data due to the FS. It was robust as hell.

      We had two instances where power surges did take down a server all we needed to do was mount the drive in another machine and run reiserfsck. The resize capability was a godsend.

      I suggest your problem was somewhere other than Reiserfs.

      --
      Sig Battery depleted. Reverting to safe mode.
  2. Ubuntu... by ProdigyPuNk · · Score: 3, Funny

    Making Debian look better with every release!

    1. Re:Ubuntu... by DeadDecoy · · Score: 5, Funny

      Yeah, stupid ubuntu for trying to incorporate usability features into Linux. How's a linux user supposed to retain their air of smug supperiority if the average schmoe can install it. At least I have my HC11 microcontroller and assembly code to fall back on!

    2. Re:Ubuntu... by Tumbleweed · · Score: 4, Funny

      You can keep your ugly old broad. Me, I want something young and fresh, even if she's a little loopy.

      Loopy chicks fsck better.

    3. Re:Ubuntu... by dstar · · Score: 2, Interesting

      'Usability'? As far as I can tell, Ubuntu doesn't give a damn about usability, or they wouldn't have broken wireless on *both* the last two releases (10.04, anyone using a rt2870 based card on a WPA2 network was out of luck, 9.10, anyone using a WPA2 network period (or was that WPA at all? I can't remember) was out of luck, because the version of NetworkManager forcibly installed (never mind that the copy of wicd I had installed worked fine, Ubuntu knew what I needed better than I did, so it helpfully uninstalled it) couldn't handle it).

      I've run Debian *unstable* on my server for the last decade or so, and I've never had this kind of problem.

    4. Re:Ubuntu... by Requiem18th · · Score: 2, Insightful

      Ubuntu won't install some poorly tested alpha quality file system until the next LTS and viceversa, a filesystem can't make it into ubuntu unless its buggy enough to get into the LTS a week after feature freeze.

      --
      But... the future refused to change.
    5. Re:Ubuntu... by CAIMLAS · · Score: 4, Funny

      How's a linux user supposed to retain their air of smug supperiority if the average schmoe can install it.

      Become a FreeBSD user, of course. Or was that a rhetorical question? Have you ever met a FreeBSD user?

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    6. Re:Ubuntu... by fishexe · · Score: 4, Funny

      You can keep your ugly old broad. Me, I want something young and fresh, even if she's a little loopy.

      Loopy chicks fsck better.

      And you can mount them more times in a row. Loopback mounting, even.

      --
      "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
  3. ZFS comparison by GoNINzo · · Score: 2, Informative

    Alternately, you could consider using ZFS if you can live with the uncertainty of the opensolaris project. The major plus is that all the functionality is already there.

    ZFS has all the features that btrfs hopes to achieve already, plus major speed increases when using an SSD drive. When you have a read taking place in .3 ms instead of 9 ms, the speed increases are incredible.

    My hope is that ZFS can be salvaged after Oracle decides what to do with the opensolaris project. If it's on linux, even better.

    --
    Gonzo Granzeau
    "Nothing the god of biomechanics wouldn't let you into heaven for.." -Roy Batty
    1. Re:ZFS comparison by EvanED · · Score: 3, Informative

      Alternately, you could consider using ZFS if you can live with the uncertainty of the opensolaris project. The major plus is that all the functionality is already there.

      Don't forget that FreeBSD has a native implementation of ZFS as well. (You can also get ZFS for FUSE, but as such it's probably not suited for a main file system.)

    2. Re:ZFS comparison by phoenix_rizzen · · Score: 4, Informative

      ZFS is also available in FreeBSD 7.0 and later. It's even marked as "production quality" in FreeBSD 8.0 and later.

      It's a few versions behind (ZFSv14) OpenSolaris (ZFSv24), but on par with Solaris 10 (ZFSv15). FreeBSD 8.1 should have ZFSv15 in it by the time it's released this summer. And there's work ongoing to bring ZFSv20-something into 9.0.

    3. Re:ZFS comparison by jtosburn · · Score: 5, Interesting

      I think you don't give quite enough credit to btrfs; it isn't merely a johnny-come-lately, but rather another step forward in filesystem evolution. Try here for a good article on btrfs, by one of the zfs developers, Valerie Aurora. If you like, just skip to the section entitled "btrfs: A brief comparison with ZFS", one flamebait bit of which is this: "In my opinion, the basic architecture of btrfs is more suitable to storage than that of ZFS."

      With that said, no one thinks it's ready for critical data storage yet.

    4. Re:ZFS comparison by Anonymous Coward · · Score: 3, Informative

      ...except it's not production quality. Please skim the past 6-8 months of posts to the freebsd-fs and freebsd-stable lists: you'll be surprised at the number of error reports.

      Booting from a ZFS pool on FreeBSD is also somewhat broken; users are still reporting issues with it, and booting from raidz still doesn't appear possible. Supposedly booting from a ZFS mirror works.

      Simply put: if you want to use ZFS and expect stability, run OpenSolaris or Solaris 10.

    5. Re:ZFS comparison by ducomputergeek · · Score: 3, Informative

      Or you can run FreeBSD 8, which has ZFS and has had DTrace for a while now.

      --
      "The problem with socialism is eventually you run out of other people's money" - Thatcher.
    6. Re:ZFS comparison by CAIMLAS · · Score: 3, Interesting

      Despite FreeBSD now having version 13 implementation of ZFS in 7.3 and 8.0 RELEASE, it's still a complete gongshow. (I'd argue that's largely the case with FreeBSD methods in general - lacking "best practices" and all that, but I'm sure I'd get flamed.)

      In the 7.x releases, there's support for ZFS. It works, mostly, with some cryptic kernel loader configuration changes to set memory allocation and the like - provided you've got at least 4GB of RAM. Otherwise, expect instability and file loss.

      In 8.0 RELEASE, this situation has been much improved. Except there's still no ability to boot from ZFS directly, and so you're stuck with a half-assed kludge. The workable technique of booting from USB devices in 7.x no longer is on account of the "new and improved" USB stack which uh, isn't improved on account of it barely ever working properly (storage doesn't get recognized, devices falling off the bus, little stuff). Oh yeah, and the "needs 4GB of RAM, or else" issue is still there, though in light of everything else is relatively minor.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    7. Re:ZFS comparison by Anonymous Coward · · Score: 3, Informative

      FreeBSD 8-STABLE is now at zfs pool version 14 and you can now boot from zfs directly if you wish so. I don't because, well I use full disk encryption with geli so I need a separate boot partition anyway. And though my laptop indeed have 4GB of memory, I still have 2.5GB free after a few hours of using Gnome, Firefox, Thunderbird, PostgreSQL and a bunch of xterm... Although I use usb keys, webcam, mouse, printer, I don't have any usb related problems so I guess I'm just lucky.

      All in all, it beats the crap out of using Linux with ext2/3/4 and LVM. Try to use snapshots on LVM and you'll quickly find why it's a bad idea. The good news is that with btrfs, Linux may catch up to where FreeBSD is now in 2-3 years time.

      Oh, by the way, as an added bonus you completely avoid the clusterfuck of alsa/pulseaudio...

  4. Re:please... by 0123456 · · Score: 3, Interesting

    Btfrs already seems to be more stable than ext4: every PC I own with an ext4 partition has failed to boot at some point due to disk corruption, whereas the one with an Btfrs partition has worked fine for the few months since I configured it. I eventually turned on data journaling to try to stop ext4 corrupting disks and so far that's been safe but largely because it's eliminated all the supposed performance benefits of ext4.

  5. Re:please... by jornak · · Score: 2, Funny

    In humble your opinion, sir?
    I not understand do.

  6. It hasn't been ruled out, but it is ruled unlikely by pwagland · · Score: 4, Informative
    From the article:

    It’s a tough gauntlet, and it would only made with the knowledge that production servers and desktops can be run on Lucid as a fully supported version of Ubuntu at the same time. I’d give it a 1-in-5 chance.

    There are quite a few pre-conditions for it to be made alpha, so it is not as likely as the summary makes it out to be.

  7. features by Lord+Ender · · Score: 4, Informative

    The main Btrfs features include:

    Extent based file storage (2^64 max file size)
    Space efficient packing of small files
    Space efficient indexed directories
    Dynamic inode allocation
    Writable snapshots
    Subvolumes (separate internal filesystem roots)
    Object level mirroring and striping
    Checksums on data and metadata (multiple algorithms available)
    Compression
    Integrated multiple device support, with several raid algorithms
    Online filesystem check
    Very fast offline filesystem check
    Efficient incremental backup and FS mirroring
    Online filesystem defragmentation
    Currently the code is in an early implementation phase, and not all of these have yet been implemented. See the Development timeline for detailed release plans.

    https://btrfs.wiki.kernel.org/index.php/Main_Page

    --
    A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
  8. Re:features & performance by Anonymous Coward · · Score: 3, Funny

    You can't compare it to Reiser4. Reiser just kills everything out there.

  9. Re:please... by MrHanky · · Score: 3, Insightful

    Are you certain that it's due to FS corruption? I've had ext4 fail to boot due to silly errors like the last write being one hour into the future (some kind of time zone confusion), but no corruption at all. I ask only because most people seem incapable of reading an error message and just doing the /sbin/fsck.ext4 /dev/sdaX that it explicitly calls for.

  10. Re:please... by Mordok-DestroyerOfWo · · Score: 2, Funny

    Do not question master Yoda!

    --
    "Never let your sense of morals prevent you from doing what is right" - Salvor Hardin
  11. Ubuntu speculation? MeeGo confirmation wins. by Anonymous Coward · · Score: 3, Informative

    Btrfs will be the default filesystem for MeeGo:

    http://article.gmane.org/gmane.comp.handhelds.meego.devel/1510

  12. Re:features & performance by Anonymous Coward · · Score: 4, Funny

    Reiser is a killer FS, but you have to keep your eyes on it...it totally chokes under certain conditions, with the result being your system gets locked up.

  13. Re:It hasn't been ruled out, but it is ruled unlik by emj · · Score: 2, Funny

    Thank you, exacly what I wanted to say. I mean it hasn't been ruled out that the Meerkat CDs will ship on ICMB from South Africa, which is slightly more likely than the CDs shipping with Btrfs as default.

  14. Re:Encryption? by Anonymous Coward · · Score: 2, Informative
  15. Re:Encryption? by palegray.net · · Score: 2

    Why wouldn't you just do your encryption at the block device level using dm-crypt? Then it doesn't matter what filesystem you're using.

  16. Re:please... by gbjbaanb · · Score: 4, Insightful

    regardless of why, I've never heard of that happen with an ext3 filesystem. Now imagine you're running a server, a trip to the datacentre to run fsck would be annoying.

  17. btrfs may have a better foundation by thule · · Score: 5, Interesting

    But btrfs may actually have a better foundation than ZFS. When ZFS was first conceived they didn't believe a file system could do btree's and COW. btrfs has proven that it can be done. See the section "btrfs: Pre-history" at:

    A short history of btrfs

  18. Right by dnaumov · · Score: 5, Insightful

    This is a filesystem, where the developers keep finding major (including fatal) bugs basically every other week. If even the slightest idea of making it the default filesystem in a distribution scheduled for release in 6 months crosses your mind, seek professional help. Now.

    1. Re:Right by diegocg · · Score: 4, Informative

      Indeed. Btrfs is still making disk format changes. They aren't very serious, but hey, they are there. Not a sign of stability, no matter how much cheksumming you throw at it.

  19. Re:Why does this article scare me? by Artifakt · · Score: 2, Informative

    Reiser is basically out - it's simply not being developed fast enough to keep up with the curve. EXT 4 seems unstable.
          (Just my humble opinion, but I went back to EXT 3 for a complete reinstall of Kubuntu 9.4 after giving it a try for a good 3 months, and I've been installing various Linux's since stormlinux back in 2001. I haven't completely wiped an install (well, not at the cost of losing any data that might have even minimal value at all) and rebuilt from scratch in years, outside of that one case.).
            EXT 3 is sufficient for most users needs, probably 90% of users overall, but I have to respect the ones who feel its limits - they are probably right to chafe under them. People do the damnedest things with Linux, and some of those things genuinely need very specific, perhaps idiosyncratic journaling methods, and other specialised file management techniques.

    --
    Who is John Cabal?
  20. Re:Encryption? by timeOday · · Score: 2, Interesting

    I think hardware full disk encryption is the only way to go. There's no performance penalty and it's transparent to the OS (which is great for those of us who multiboot). Our experience with PGP and Credant has been horrible, making some laptops unusably slow. Is dm-crypt that much better?

  21. Better Options by sunderland56 · · Score: 3, Insightful
    How about either
    • Having no default, and presenting a list of options (with suitable help, detailing why each would be a good or a bad choice); or
    • Having an intelligent default, based on disk capacity, use (i.e. boot volume or not), and technology (magnetic versus solid state)
    1. Re:Better Options by Daengbo · · Score: 2, Insightful

      Your second point is very good, but Ubuntu has always been about opinionated choices. When 4.10 came out, it was decided to forgo the normal Linux 5 CD installation's 10 text editors, four word processors, and three browsers (practically required in the early 2000s because some apps worked for some things and not for others) and instead install just one type of each application on one CD. In short, having no default totally goes against their mission.

      The installer always gives you the option to go advanced and choose your own partition setup and file systems.

  22. Re:features & performance by XCondE · · Score: 3, Informative

    Really? Are we still doing that?

  23. volume management by Anonymous Coward · · Score: 2, Interesting

    But btrfs may actually have a better foundation than ZFS. When ZFS was first conceived they didn't believe a file system could do btree's and COW. btrfs has proven that it can be done. See the section "btrfs: Pre-history" at: A short history of btrfs

    And ZFS incorporates volume management, so no more pvcreate/vgcreate/lvcreate rigamarole; and LVM doesn't even give you mirroring/RAID--you have you have to use a completely different software stack for that.

    You can have your b-trees, I'll take my "zpool create <mirror|raidz[1-3]> <devs>", thanks. "zfs send/recv" is also awesome.

    Just waiting for built-in crypto and "bp rewrite" now, but otherwise I've been happily using ZFS in production for a few years.

    1. Re:volume management by diegocg · · Score: 4, Informative

      Obviously, Btrfs also does volume management without LVM. It even manages to do better than ZFS in some areas, for example Btrfs can reduce the pool capacity easily thanks to back references (a new and cool fs technique which is being incorporated to Btrfs), whereas ZFS still can't reduce the capacity of a pool and it will take a lot of complexity to implement it (you really should read the link)

  24. Re:please... by X3J11 · · Score: 2, Funny

    1. The file system has the power to brick your machine because of a clock setting

    I do not think this word means what you think it means.

  25. Is it better in the recovery department than ext3? by Enleth · · Score: 4, Interesting

    Personally, I'm using reiserfs (that is, reiser3, not reiser4) solely due to its outstanding disaster recovery capabilities. No matter what happens to the media or the filesystem itself, "reiserfsck --rebuild-tree" is going to bring back everything that was not directly overwritten or corrupted. I've had many things happen to my disks (head crashes, several gigabytes from the beginnig of the partition being overwritten by a borked OS isntaller, "rm -rf blah/ *" instead of "rm -rf blah/*" and so on), and every single time, --rebuild-tree recovered everything that still was there to be recovered. As far as I know, this is due to the fact that all the filesystem metadata is distributed evenly throughout the partition, heavily replicated and identifiable using some kind of magic hashes even when there is no higher-order structure left (so a --rebuild-tree process can just do a linear scan of the damaged partition and find all the "dangling" inodes with ease).

    As far as I know, this is not possible (especially using the standard fsck utility as with reiserfs) with the ext* family of filesystems.

    So, does btrfs have similar capabilities? If so, I'm going to be quite interested in testing it, even though I'm not using Ubuntu.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  26. Re:please... by PRMan · · Score: 2, Funny

    Yeah. Not to troll, but if you want to be user-friendly like Windows, you can't dump out to a black screen and tell the user to run some command-line gobbledygook... every 3 months....

    --
    Peter predicted that you would "deliberately forget" creation 2000 years ago...
  27. Re:please... by fishexe · · Score: 4, Funny

    When 900 years old you reach, use ext2 you will not! Hmph!

    --
    "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
  28. Re:Is it better in the recovery department than ex by kimvette · · Score: 3, Interesting

    I used to run Reiserfs after having a VERY bad experience with EXT3, but I've since switched back to EXT3 now that it's a lot more mature.

    What did I like about Reiser? Exactly as you described; I never saw --rebuilt-tree fail. I've had NTFS and EXT2 and EXT3 partitions go bad but I have never had a ReiserFS partition become unrecoverable; if the drive spun up and could be enumerated by the OS, reiserfsck could retrieve everything even if it appeared lost. I also really liked the zero-slack feature (no wasted disk space!)

    Why did I finally abandon ship?

    Honestly, it was performance.

    Writes are fast under reiser -- VERY fast. It is super reliable - I've never expected any filesystem to be so resilient.

    What was wrong with it then?

    Deletes. Deletions take for-freaking-ever. Right-click a file on a reiserfs partition in konqueror, and wait and wait and wait (watch the minute hand move on a clock or watch!) for the context menu. Delete a folder containing 70K files? Start the delete, come back an hour later, and see the deletion is still going. It is dreadfully slow deleting files. Do the same to an EXT3 (or now, EXT4) partition, an XFS partition, or even NTFS (via NTFS-3G) partition, and the deletion will take seconds - or maybe a minute for really immense directories. Reiser? s. . . . l. . . . o. . . . .w. . . that was honestly the only thing I could find wrong with Reiser (the FS, obviously, not the mama-killing douche of a meatbag who is hopefully being raped and beat up daily)

    --
    The Christian Right is Neither (Christian nor right). See: Matthew 23, Matthew 25, Ezekiel 16:48-50
  29. before you move to btrfs, read the "Gotchas" by sick_soul · · Score: 2, Informative

    I find some of the features interesting, but until these problems are solved, I will not try it out.

    https://btrfs.wiki.kernel.org/index.php/Gotchas

  30. Yeah by roman_mir · · Score: 2, Funny

    Yeah, I know, I know, it's a killer file system.

  31. Filesystem safety by jd · · Score: 2, Interesting

    I agree that reiserfs has issues, having lost a few filesystems that way. Filesystem integrity is not something calculated from how long the system is marked production or even how stable some find it. We need better tools to stress filesystems so we can quantifiably measure safety for specific types of work. (I expect different results for different conditions, since some find reiserfs works for them.) Just as well Slashdotters are so good at causing stress...

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  32. Re:Why does this article scare me? by shutdown+-p+now · · Score: 2, Funny

    Maverick Meerkat will be all about trying out new things, they'll scrap whatever doesn't work.

    Funny, that sounds like the last 3 Ubuntu releases to me. Except for the "scrap" part, that is.