Slashdot Mirror


GRUB 1.99 Released With Support For ZFS and BtrFS

kthreadd writes "GNU GRUB has been updated to version 1.99. Among the many improvements are support for two new filesystems, BtrFS and ZFS. For Linux users this means that it's now possible to move to BtrFS entirely and not use it only for non-bootable volumes."

32 of 175 comments (clear)

  1. Re:Does this matter? by SanityInAnarchy · · Score: 3, Insightful

    Ext4 is stable now, and was an easy upgrade from ext3, both in terms of development and in terms of converting your existing filesystems -- one command, and then just remount as ext4, no time-consuming and dangerous conversion needed.

    BtrFS looks to be better than ext4 in every way except the above -- and I haven't been following it for awhile, so as far as I know, btrfs might be rock-solid stable by now.

    Put another way, ext4 is a replacement for ext3, whereas btrfs is a replacement for zfs.

    --
    Don't thank God, thank a doctor!
  2. Needs better support for really old tech. by thomasdz · · Score: 4, Funny

    Until it supports booting from paper tape or punch card, I'm not going to trust it 100%

    --
    Karma: Excellent. 15 moderator points expire sometime.
    1. Re:Needs better support for really old tech. by rubycodez · · Score: 2

      silly, don't need grub but of course inux S390 can boot from card reader (virtual or physical), it the way its usually done under Hercules, for example. Since the console or running z/VM can boot other OS, why would you need grub?

  3. Filesystem bandwagon by billcopc · · Score: 2

    I know about ZFS (somewhat), but what's the big appeal of Ext4 and BtrFS ? Cool that Grub can boot from them, but do they confer any tangible benefits for desktop users ?

    For personal use, I care about two things:

        1. How safe is my data
        2. How quickly can I access it

    Ext3 seems to address both concerns quite acceptably, so what do these newer filesystems do better ? And why would anyone want to use that on their boot partition ?

    --
    -Billco, Fnarg.com
    1. Re:Filesystem bandwagon by GameboyRMH · · Score: 4, Insightful

      Ext4 is a more error-resistant (safer) and potentially faster Ext3. If you don't know what BtrFS is good for, you don't need to use BtrFS (although it could become a mainstream filesystem some day).

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    2. Re:Filesystem bandwagon by dutchwhizzman · · Score: 2

      BtrFS is essentially moving towards ZFS regarding features. EXT4 has a few features that make it more scalable than ext3. You'd want this on your boot partition so you can remove support for legacy filesystems that are "only good for boot partitions" from your kernel.

      --
      I was promised a flying car. Where is my flying car?
    3. Re:Filesystem bandwagon by hedwards · · Score: 3, Interesting

      I'd take a look here: Btrfs The main problem I have with it is that there's a large number of filesystems out there and while that's not really a bad thing, it makes interoperability a real headache sometimes. Personally, I'd rather have a somewhat less than perfect filesystem (assuming that it is reliable than a huge variety of specialty filesystems which may or may not be readable under any other OS.

      And apart from ZFS suffering from NIH problems as well as the CDDL licensing, I really don't see any compelling reason to add yet another filesystem that does largely the same thing.

    4. Re:Filesystem bandwagon by d3vi1 · · Score: 2

      The filesystem part, almost matches the ZFS features, but not quite.
      The rest: NO!
      ZFS does a lot more than just being a filesystem, the most important non-filesystem part being the storage pool management in a simple and sane way.
      Some of that might be achievable with LVM, but most of it NO!

      Returning to the filesystem part:
      When do you think that we'll get NFSv4 ACLs in Linux? Regardless of the filesystem.
      How about iSCSI integration (ZFS style)?
      How about transparent encryption?
      How about transparent compression?
      How about inheritable ACLs (posix or NFSv4)?
      How about data deduplication?
      How about something similar to L2ARC? It gives a ZFS with two SSDs and 10 cheap 1TB Samsung 4200RPM drives (a total of about $2 with all the hardware), the same capacity and performance as 20+ 15k RPM fibre-channel drives ($20k just the drives).
      How about incremental dumps? Btrfs is a COW filesystem that allows snapshots after all. Solaris had that, even in UFS for a long time.

      You know how you should think about ZFS? As a $30.000 NetApp FAS2020 filler for free in any $1.000 computer.

      I like and use Linux, but comparing ZFS with anything on the Linux side is like comparing an excavator with a shovel. Right now, anything on the Linux side is at best at NTFS feature level with arguably better performance, though investing in faster hardware might alleviate that.

      Without DTrace and ZFS Solaris wouldn't really be irreplaceable today, but those two components make it the perfect OS for a little while longer.

      --
      UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever ones.
    5. Re:Filesystem bandwagon by cthulhu11 · · Score: 2

      I'm a Solaris (and other) admin just getting into Linux, and can't for the life of me figure out a point to LVM. Reads from mirrored volumes aren't spread across the mirrors, eg., and who really gives a flip about the soft partitions? There's work on ZFS for Linuxes. I don't know that it has many resources behind it, but it'd sure be nice to have in a usable state. I don't give a rat's ass if it comes bundled into the kernel or not --- I just want it to work properly.

  4. Re:why GRUB? by Microlith · · Score: 3, Insightful

    With GRUB ~= 2.0, you aren't supposed to mess with grub.conf. You're supposed to mess with a shitpile of external .conf files and command line tools.

  5. Boot separate from partitions by hoggoth · · Score: 3, Informative

    I like having the ability to wipe out and redo any partition without ruining my ability to boot into my other partitions. I typically multi-boot 3 or 4 partitions so this matters to me.

    So I always use an independent boot manager like GAG or PLOP that can boot just about anything else and is drop dead simple to reconfigure. Each partition gets it's own favorite PARTITION boot manager, Grub for Linux, BCD for Windows, etc...

    --
    - For the complete works of Shakespeare: cat /dev/random (may take some time)
  6. Re:Does this matter? by DarkOx · · Score: 2

    BtrFS can upgrade in place as well, and even better it can leave the old file system meta data intact so until you commit the snapshot you can even down grade back to ext2/3 if you like; but you'd loose any other changes made to the file system since the switch to BtrFS as well.

    --
    Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
  7. Re:Does this matter? by mikael_j · · Score: 4, Insightful

    Put another way, ext4 is a replacement for ext3, whereas btrfs is a replacement for zfs.

    I think you mean that btrfs is a replacement for ext4. Maybe I'm naive and a bit reactionary but I'm just not seeing FreeBSD and Solaris switching to btrfs just because the Linux crowd says it's the greatest thing since sliced bread...

    --
    Greylisting is to SMTP as NAT is to IPv4
  8. Re:Does this matter? by Kamiza+Ikioi · · Score: 3, Interesting

    "In 2008 the principal developer of the ext3 and ext4 file systems, Theodore Ts'o, stated that ext4 is a stop-gap and that Btrfs is the way forward,[10] having "a number of the same design ideas that reiser3/4 had". http://en.wikipedia.org/wiki/Btrfs & http://lkml.org/lkml/2008/8/1/217

    --
    I8-D
  9. Re:why GRUB? by Hatta · · Score: 2

    I actually stopped building my own kernels around the time that everyone switched over to grub. I wish I could remember what specifically caused my problem, but I do remember running grub-install over and over, grub swearing up and down that it was installed and read my config, then rebooting and getting nothing. I'm pretty sure this was before I did root on raid/luks/lvm too.

    I don't even mind when things break all that much. It can be fun to track down the problem and fix it. Grub is just inscrutable, it gave me no information to help troubleshoot, and I couldn't get any help from the Grub IRC.

    The only problem I've ever had with it was PEBKAC: I upgraded the kernel and purged the old one, but didn't let the Grub updater run. A quick boot with a live CD let me edit the conf file and all was good.

    The funny thing is, you had to do the same thing with LILO. If you didn't rerun 'lilo' after editing its configuration, it wouldn't boot. The big selling point of Grub was that you didn't have to do this. Grub will figure everything out they said. That didn't quite work out.

    --
    Give me Classic Slashdot or give me death!
  10. GRUB as an OS? by gr8_phk · · Score: 2

    At what point does GRUB become more of an OS than a bootloader? Adding multiple file system support seems odd. I understand the reason, but in principle you want the boot loader to be small, not constantly incorporating operating system features. Is there some problem with having a small boot partition that can only be formatted one way? The same issue happened with X.org where it gained memory management, font handling, etc - lots of stuff beyond just being a window system. The same also happened with MESA when it started getting hardware acceleration (for a soft implementation of OpenGL). The same feature creep is also happening with BIOS. Some of these projects need to define what they are and stick to that IMHO. Otherwise, we can just merge GRUB into the kernel and put the whole thing into the flash normally used for BIOS ;-) Maybe not a bad thing ( I think it's bad ) but certainly not 3 distinct software components.

    1. Re:GRUB as an OS? by Opyros · · Score: 3, Funny

      At what point does GRUB become more of an OS than a bootloader?

      When it has integrated EMACS?

    2. Re:GRUB as an OS? by Kamiza+Ikioi · · Score: 2

      I want my BIOS so bad ass it runs BSD and needs its own BIOS.

      --
      I8-D
  11. Re:maybe you should study grub by Hatta · · Score: 2

    I certainly can't claim to have never done anything stupid. But isn't it funny how I never did anything stupid when LILO was the popular boot loader?

    Sure, i'll cop to being an idiot. In fact, that's my whole point. LILO was idiot proof, Grub is not.

    --
    Give me Classic Slashdot or give me death!
  12. Re:Does this matter? by MrHanky · · Score: 2, Insightful

    If you get random file corruption on Windows, you either have serious hardware failure or use Windows 98.

  13. limited Gparted support for BtrFS by bitsent · · Score: 2

    I would probably switch from Ext4 to BtrFS if it had full Gparted support.

  14. Re:Does this matter? by GooberToo · · Score: 2

    Ext4 is stable now, and was an easy upgrade from ext3, both in terms of development and in terms of converting your existing filesystems -- one command, and then just remount as ext4, no time-consuming and dangerous conversion needed.

    There is a trade off most people don't realize. Ext4 allows for a safe, simple migration from ext3, but in doing so, you do not receive all of the ext4 benefits. Ext4 on disk format differs from ext3. When ext4 mounts an ext3 partition, it is limited to the constraints available of an ext3 on disk format. Otherwise, there would be no need for ext4 to have its own format. To obtain all of the ext4 performance, tweaks, and reliability benefits, you MUST perform an ext4 format.

  15. It's neat that we can boot off of them... by Erpo · · Score: 3, Funny

    This is really cool. Now when one of these filesystems becomes stable in Linux, we'll be ready to go. Look out 2025--here I come!

    1. Re:It's neat that we can boot off of them... by Anonymous Coward · · Score: 2, Interesting

      Actually, Btrfs is quite stable. I have been using it since the last december. Cero problems (except fragmentation, which is something that you should expect from COW-based filesystems like ZFS or Btrfs - fortunately, btrfs includes defragmentation tools). Developers have focused into making it stable instead of adding features (like being able to change the raid level of your filesystem). As far as I know, the only issue that is sttoping Btrfs from being declared as stable is the lack of fsck (which is an userspace tool).

  16. Re:why GRUB? by MrHanky · · Score: 4, Funny

    LI

  17. Re:Does this matter? by snowgirl · · Score: 2

    I like BtrFS, I used to use ReiserFS, but then apparently he killed his wife or something and it pretty much killed the project. BtrFS seems to be a cool similar form of idea, but updated... like a Reiser4, but without the negative connotation...

    --
    WARNING! This girl exceeds the MAXIMUM SAFE standards established by the FDA for BRATTINESS
  18. Re:why GRUB? by Anonymous Coward · · Score: 2, Insightful

    With GRUB you had a conf file

    which is simpler?

    Fixed that for you...
    Now with grub2 you have three config files (at least in Ubuntu); a read-only /boot/grub/grub.cfg, an /etc/default/grub with some stuff in it and a couple of files in /etc/grub.d/
    Once you change anything in one of them you have to run 'update-grub' and it'll generate the grub.cfg from the other files.

    - Peder

  19. Re:maybe you should study grub by Dishevel · · Score: 2

    There's no amount of "study" on my part that could make Grub as reliable as LILO. There's also no amount of study that would make LILO as featureful as Grub.

    More features almost never equals better stability.

    --
    Why is it so hard to only have politicians for a few years, then have them go away?
  20. Re:Does this matter? by zsitvaij · · Score: 5, Informative

    To obtain all of the ext4 performance, tweaks, and reliability benefits, you MUST perform an ext4 format.

    That's not entirely correct. With two commands, you get a full conversion from ext3 to ext4 without a reformat, leaving your data in place:
    tune2fs -O extents,uninit_bg,dir_index /dev/DEV
    e2fsck -fDC0 /dev/DEV

    (On an unmounted filesystem, obviously. Source. )

  21. Re:Does this matter? by SETIGuy · · Score: 2

    Way back when, when the option was xfs or ext3, not getting forced fsck after a crash was a big plus for xfs. I don't think I've ever had xfs_repair do anything.

    I have a NAS box with 4x750GB RAID5 formatted ext3. The processor and I/O is so slow that it has never finished an fsck even after I've waited for two weeks since it started. That was intolerable so I hacked into it and after building xfs.ko, found that support for linux xfs on big endian processors is non-existent. So what I do now is pull the drives, put them in an x86 linux system and do the fsck there if the thing crashes. Never buy a NAS box that uses ext3.

  22. Re:Does this matter? by smi.james.th · · Score: 2

    Perhaps it might be more accurate to say that the purpose of btrfs is to implement many zfs features in Linux which couldn't be previously... Correct me if I'm wrong, but it's for licencing reasons that Linux distros don't ship with zfs?

    --
    One thing I know, and that is that I am ignorant...
  23. Re:why GRUB? by The+Wild+Norseman · · Score: 2

    Unless it's from the hookers!

    --
    "A government is a body of people usually -- notably -- ungoverned." -Shepherd Book