Slashdot Mirror


ZFS For Mac OS X Source Code Available

nezmar writes "Noel Dellofano, who is part of the ZFS development team at Apple, has a post on Mac OS Forge announcing a late Christmas gift: he is making available binaries and source code, plus instructions, of the ZFS filesystem for Mac OS X."

251 comments

  1. The real questions are... by slyn · · Score: 4, Interesting

    How stable is it, and how soon till I can get it on my Mac by default?

    1. Re:The real questions are... by larry+bagina · · Score: 5, Informative

      a readonly version is included with leopard:

      sh-3.2# zfs
      Read-Only ZFS Implementation
      missing command
      usage: zfs command args ...

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    2. Re:The real questions are... by QuietLagoon · · Score: 4, Interesting

      It's already available on FreeBSD if you want to play.

    3. Re:The real questions are... by wodgy7 · · Score: 5, Informative

      I've been running ZFS on my home Mac server since the old developer seed. It's generally stable as long as you disable Spotlight indexing on the volume (it's not supported yet). Everything on the command line works, as does accessing the ZFS pool over AFS. It's *very* easy to set up btw, much easier than setting up a RAID in Linux. There were issues deleting files from the Finder in the last release; I haven't installed the 102A release yet. Still, if you're just using it for a server volume, you'll probably be happy with it.

    4. Re:The real questions are... by Eddi3 · · Score: 3, Interesting

      "It's *very* easy to set up btw, much easier than setting up a RAID in Linux. "

      I doubt that. Setting up a RAID array in Linux is about 4-5 lines in the CLI.

    5. Re:The real questions are... by wodgy7 · · Score: 4, Interesting

      It wasn't that easy to set up a RAID in Linux the last time I tried (admittedly long ago), but even in comparison, setting up a RAID-Z in ZFS is just a single line: "zpool create mypool raidz disk4s2 disk5s2 disk6s2"

    6. Re:The real questions are... by Eddi3 · · Score: 1

      As long as we're omitting actual installation, setting up a RAID array in Linux is also a single line operation.

      This would make hda1 and hdb1 into a RAID1 array: "mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda1 /dev/hdb1"

    7. Re:The real questions are... by BrainInAJar · · Score: 4, Informative

      Or more to the point, OpenSolaris... because that's where it came from

    8. Re:The real questions are... by hjf · · Score: 5, Insightful

      then you need to mkfs, and if you run out of space you're screwed because you can't easily grow. also, you can't create a newer fs, nor you can have snapshots, send/receive snapshots, volumes, have on-the-fly checksumming and disks that don't drop off the array at the first read error, one-line CIFS/NFS/iSCSI sharing. Get over it... zfs is better than md+lvm+ext3+whatever.

      I'm not trolling, it's just that ZFS has been developed without the traditional and orthodox methods of disk-partition-filesystem and put everything on a single "layer", and instead of losing flexibility, we gain more, just because zfs developers were thinking outside the box (the now "traditional" way of doing things is segregation: the OSI layers, etc, claim to be more flexible, efficient and manageable than throwing everything together). I know, I know, veritas had this for years, so we could say that it was stole^H^H^H^H^Hcopied from them -- just as gates copied jobs, and jobs copied xerox.

      Imagine the possibilities of breaking traditionalisms (like linux does "socially" but not "technologically").

    9. Re:The real questions are... by Anonymous Coward · · Score: 0

      How about iSCSI targets? Can you do that with LVM?

      Cloned file systems? Snapshots?

      Data corruption detection and recovery?

    10. Re:The real questions are... by Anonymous Coward · · Score: 1, Informative

      You forgot:

      For LVM, one has to partition the disks first. If you're giving the whole disk to ZFS, just use something like "zpool create pool raidz c5t6d0 c5t6d1 c5t6d2 c5t6d3" (that's straight from memory - don't hold me to the exact syntax...). ZFS will partition the disks for you.

      One less thing to worry about with ZFS.

    11. Re:The real questions are... by thatskinnyguy · · Score: 2, Insightful

      a readonly version is included with leopard: Honestly, what good is a file system if you can't write to it? Please enlighten me.
      --
      The game.
    12. Re:The real questions are... by Kremmy · · Score: 4, Insightful

      Not real sure, but you might want to ask the users of ISO9660 and UDF on optical media.

    13. Re:The real questions are... by wodgy7 · · Score: 3, Informative

      It's so that you can bring a ZFS volume to any old Mac running Leopard, plug it in, and read data off it, without having to install any extra (currently beta) software.

      This is also why, when you create a ZFS pool using the read/write drivers, it defaults to creating a pool with ZFS version 6 on disk, so that it's compatible with the version of ZFS shipping with Leopard. (You run "zfs update" to transform your pool to the most recent on disk version if this kind of compatibility isn't an issue for you.)

      BTW, Leopard also reads from BSD and Solaris-created ZFS drives just fine.

    14. Re:The real questions are... by Anonymous Coward · · Score: 1, Insightful

      ...what good is a file system if you can't write to it?
       
      Sure will come in handy if/when it becomes the standard file system for Macintosh in the future. Just because write support is not rock solid at the moment does not mean read support is unwelcome.

    15. Re:The real questions are... by Solra+Bizna · · Score: 2, Insightful

      zpool create pool raidz c5t6d0 c5t6d1 c5t6d2 c5t6d3

      For those of you who have not used Solaris yet, or aren't sure whether ZFS is up to the hype; that notation is "disk n of target 6 of controller 5." Your home server has absolutely nothing on the dreadnoughts from Sun. They sell a box with 50+ hotswap drive bays, and the CPU power to back it up (and it's not even the top of their line).

      -:sigma.SB

      --
      WARN
      THERE IS ANOTHER SYSTEM
    16. Re:The real questions are... by HRogge · · Score: 1

      I'm not trolling, it's just that ZFS has been developed without the traditional and orthodox methods of disk-partition-filesystem and put everything on a single "layer", and instead of losing flexibility, we gain more, just because zfs developers were thinking outside the box (the now "traditional" way of doing things is segregation: the OSI layers, etc, claim to be more flexible, efficient and manageable than throwing everything together). I know, I know, veritas had this for years, so we could say that it was stole^H^H^H^H^Hcopied from them -- just as gates copied jobs, and jobs copied xerox.

      Imagine the possibilities of breaking traditionalisms (like linux does "socially" but not "technologically"). Single layer designs do work well unless you have more than one file system. What's the use of a filesystem with built in LVM if you have a harddisk with multiple filesystems ?
    17. Re:The real questions are... by xeno · · Score: 2, Informative

      "what good is a file system if you can't write to it?"

      I could say the same of NTFS. After throwing in the towel with regard to Windows as a base OS, I have years of accumulated data on NTFS volumes spread across a small pile of drives. Linux support for NTFS is still a little shaky. But with read-only access to NTFS, I can throw those old desktop or laptop drives into an enclosure, connect it, and either pull all the data over to a writable volume for ongoing work (and perhaps dispose of the old drive), or pick out individual pieces of data I want without worry of corrupting the volume.

      How does this apply to ZFS? Not sure, since "piles of old data" isn't a likely scenario on ZFS. But I can imagine accessing shared NAS/SAN ZFS volumes with only one system managing dynamic allocation... or perhaps ZFS in place of ISO9660 to speed up large software installations?

      --
      I think not...(*poof*)
    18. Re:The real questions are... by Anonymous Coward · · Score: 2, Insightful

      And people are not very happy about it:
      http://kerneltrap.org/FreeBSD/ZFS_Stability
      But that doesn't stop the buzzword fanboys.

    19. Re:The real questions are... by Anonymous Coward · · Score: 0

      Well, that's not difficult. Just add different slices to different pools.
      -posted anonymously, due to not wanting to remove a modpoint to a good post above here somewhere.

    20. Re:The real questions are... by nguy · · Score: 1

      it's just that ZFS has been developed without the traditional and orthodox methods of disk-partition-filesystem and put everything on a single "layer"

      Those layers weren't invented to make life complicated, they serve important functions.

      Some kind of device-spanning file system other than what Linux already has may be a good idea; ZFS is not it.

    21. Re:The real questions are... by howlingmadhowie · · Score: 1

      i'd be interested in hearing the pros and cons for zfs. i get the impression, there's so much fanboiism on both sides, that the facts of the matter tend to get obscured.

    22. Re:The real questions are... by nguy · · Score: 1

      There have been lots of discussions on that; just search the web.

      I think the real question to ask is whether ZFS provides anything you actually need. If not, it's probably better to stick with your current system.

    23. Re:The real questions are... by kf6auf · · Score: 1

      I need a file system that is read/writable from Linux and OS X and supports files larger than 4GB. As far as I can tell, ZFS is the only file system headed in that direction.

    24. Re:The real questions are... by Anonymous Coward · · Score: 0

      I need a file system that is read/writable from Linux and OS X and supports files larger than 4GB.

      ext2 appears to have OS X support as well as (obviously) Linux, and supports file sizes in the terabyte range (actual limit depending on block size).

    25. Re:The real questions are... by baadger · · Score: 2, Informative

      For LVM, one has to partition the disks first.

      No you don't, LVM Physical Volumes can be initialised straight onto whole unpartitioned disks (/dev/sda).

    26. Re:The real questions are... by eldepeche · · Score: 1

      ext2 for OS X greyscreens my MacBook if I try to transfer more than ~100 MB at a time. OTOH, the experimental in-Linux HFS+ driver has worked fine (no data loss, but once in a while, I can only write as root. Not such a big problem, since I use that partition for media storage).

    27. Re:The real questions are... by grub · · Score: 1

      Glad to hear it's on FreeBSD, even if it's a little shaky at the moment. I'm waiting patiently for them to move it to the FreeBSD-based FreeNAS

      --
      Trolling is a art,
    28. Re:The real questions are... by Hatta · · Score: 1

      then you need to mkfs, and if you run out of space you're screwed because you can't easily grow.

      You can't really expand a raidz either. The best you can do is make a new raidz and add it to your pool. But then you're stuck with extra parity disks. I'd love to use ZFS but until I can throw a disk on to an existing array and expect it to work it's just not good enough.

      --
      Give me Classic Slashdot or give me death!
    29. Re:The real questions are... by Rich0 · · Score: 2, Interesting

      Actually, RAID-Z has one big limitation - it isn't growable (while linux software RAID actually is growable). Otherwise I'm a big fan of ZFS and would love to see it reliable on linux. I think that the layer-breaks in this case give you new capabilities you couldn't get without them (I'm not just talking one-command filesystem setup - I'm talking about copy-on-write and better snapshotting and redundancy support and other things that need to cross layer bounderies unless you want to waste a lot of space).

      ZFS supports adding additional RAID-Zs to a storage pool - but the last time I checked you couldn't resize/shape a single RAID-Z array.

      Here is an illustrative scenario:

      1. I have three 250GB drives on two systems - one FreeBSD (ZFS) and one linux (mdadm+LVM+ext3). I put them in a RAID-5 on the linux system, and a RAID-Z on the FreeBSD system. On both I have 500GB of storage with single-redundancy. I can partition this space into as many filesystems as I'd like with either approach.

      2. I buy three more 250GB drives. On FreeBSD I have to create a new RAID-Z giving me 500GB of additional storage (1TB total). On linux I can reshape the existing RAID-5, giving me 1.25TB of total storage (all 750GB of extra space is usable). You can't add new drives to a RAID-Z, but you can add them to a linux RAID-5. You could also put them in a separate RAID and add them to the LVM group and have the same total space as RAID-Z in that way.

      Don't get me wrong - I like ZFS and would consider using it. Linux should be pursuing it (obviously there are licensing issues to work out here) and not snubbing it. And I don't see any technical reason why you couldn't reshape a RAID-Z. It is a limitation though.

    30. Re:The real questions are... by MauriceV · · Score: 1

      In a sense, they were. It is the volume-centric approach that is complicated and has made tools like LVM essential. ZFS has a different approach and obviates the need for these tools.

    31. Re:The real questions are... by Dare+nMc · · Score: 2, Informative

      filesystem fanboys?
      I have setup a few raid setups (LVM, and ZFS, and hardware based.)
      where ZFS is nice, their is a nice documented one way to do it. It's biggest advantage (for me) are a single interface for turning on/off encryption, compression, and file system snapshots. Things this does for you for example, is you can turn on compression for a entire volume, or directory within the filesystem but you don't have to take it offline ever, because it will compress new files only (to start), and you can then walk through the rest as CPU allows...

      You do have all these options for LVM, with ext3, but in the truly linux tradition, their are many, many different ways to do the same thing. So if you don't want to spend hours researching the how's and whys you easily end up creating more work for yourself. But I am sure if you do all the research you can create a more efficient solution. But you'll also end up with many different interfaces (that has advantages too). For example I am replacing a RHEL hardware raid with Solaris zfs raid now. To admin the RHEL solution, I use LVM to admin allocations, use ext3 to look for file system corruption, use the Raid manager program to add/remove/grow drives, and NFS to export partitions/permisions, and various webmin plugins for backups restores, file versions. All of these are now within the zfstools on solaris.

    32. Re:The real questions are... by nguy · · Score: 1

      ZFS for Linux is only available through FUSE (user mode), which is less than ideal.

      BSD may work for you (format the volume on OSX since OSX is finicky about which BSD variant it gets, while Linux doesn't care).

    33. Re:The real questions are... by Anonymous Coward · · Score: 0

      They really swiped it from NetApp and the ease-of-management of the WAFL volumes they create there. ZFS still has a long way to go (and a lot of SUN guys I've talked to concur) before you'd want to run it under Oracle or SAP, etc, and I don't think there are any ODM modules that work on ZFS yet, plus I'm unsure of the state of Oracle ASM on ZFS.

      The simplicity of use also removes flexibility -- sometimes you have an I/O profile where you need to control disk layout more granularly than ZFS allows, and you run into using the same parlor tricks you have to use with NetApp to boost disk transactions/sec.

      Disclaimer: I work at 'Veritas', but am too practical to say there aren't places where ZFS is currently a good fit, and I've even recommended customers run it in some scenarios where it made more sense than our stack -- it's just far from a good fit for most places now, and cannot be a fit for all places, based on the current design.

    34. Re:The real questions are... by hr.wien · · Score: 0

      Out of interest, how would this work if you switched all the 250GB drives for 500GB drives (one at a time to keep the array alive of course), and wanted to take advantage of the extra space on each new drive? That's a more likely scenario for me and my home server as I don't want to keep adding drive after drive, but I would like to add more space occasionally. Does either Linux RAID or ZFS support that without too much hassle, or would I have to connect all drives (old and new) and do a copy to a new array on the new disks?

    35. Re:The real questions are... by Deagol · · Score: 2, Informative
      Unhappy about what? That the developers were kind enough to port and include ZFS into the mainline 7.0 tree? I can't really imagine that. Yes, some people may bemoan its stability as sub-par when compared to what people have come to expect from FreeBSD. I can't understand people bitching about that, though. It's not like it *must* be used -- it's not even an install option. You have to read up on it and know WTF you're doing to even get it running, never mind set it up as a root/boot volume.

      I've been running the 7.0 branch since about October '07, and I've been using ZFS. Granted, it's my home machine, but it's my primary workstation and I *need* this machine to bring home the bacon, working via home office and all. While I don't use it for important data, the file systems I chose were intentional in order to beat it up a lot: /usr/src, /usr/obj, and /usr/ports -- that's where all of the kernel/userlad/ports compiles take place (at least by default). Tons of reads/writes/delete since I update my ports and source trees almost daily. Never once have I had a problem. On a whim, I ran a zpool status once and found a corruption error on /usr/obj, but I never noticed because it just kept on chugging along. Not that /usr/obj is a terribly critical directory, one which I nuke on a regular basis to ensure a pristine system rebuild. Still, I ran a "zpool scrub" on it live, and it fixed the problem w/o ever going offline.

      Not only that, I also use the built-in compression (gzip9) on /usr/src and /usr/ports and my machine is amd64. The former really taxes the system, and the latter platform seems to lag slightly behind i386. Sometimes my machine has quick freezes when the ZFS file systems are being beat up, but my machine is only a 2.0GHz w/ 1GB of memory. For pre-release software, FreeBSD 7.0 really kicks some ass.

      Of course, anecdotes are not synonymous with data. ZFS obviously has some issues. But then again, so did reiserfs and ext3 when they were first cast into the mainstream kernel and distros. Sure, the BSD userbase with ZFS is *much* smaller than those of Linux, but I expect ZFS will shine in short order.

    36. Re:The real questions are... by Fweeky · · Score: 1
      Who's not happy about it being in FreeBSD? It's not like it's been made the default FS or anything:

      valisk# kldload zfs
      valisk# dmesg |grep ZFS
      WARNING: ZFS is considered to be an experimental feature in FreeBSD.
      In the mean time, now lots of people get to play with it if they want to, and help make it less experimental, without having to install 8-CURRENT.

      For those interested in such things, DTrace seems to be going really well now too.
    37. Re:The real questions are... by hjf · · Score: 1

      "until" being the keyword here. and considering that ZFS is being developed not only by "the community", but also by sun's own people, it's not going to take too long until that feature is added.

    38. Re:The real questions are... by hjf · · Score: 1

      sure. my home server has 4 500GB drives and 4 extra sata ports. Either way, I'll able to grow my pools: more raidzs to a zpool, OR, when I fill up the 1.3TB (currently I'm under 40% after 6 months), maybe a new version of ZFS will be out there and will have that feature.

    39. Re:The real questions are... by Hatta · · Score: 1

      This issue has been outstanding for several years already. As I understand it this problem exists because of some design choices that are not going to be easy to change. And this doesn't seem to be a high priority for the Sun people. I really don't expect to see a fix anytime in the near future.

      --
      Give me Classic Slashdot or give me death!
    40. Re:The real questions are... by the_B0fh · · Score: 1

      People keep saying that like they mean it. IIRC, Apple paid Xerox $1mil for that license/right/idea/whatever.

    41. Re:The real questions are... by the_B0fh · · Score: 1

      The X4500 has 48 slots. Which box has 50+ drives, out of curiousity?

    42. Re:The real questions are... by Anonymous Coward · · Score: 0

      I have an Ultra 2 with over 90 drives.

    43. Re:The real questions are... by QuietLagoon · · Score: 1
      Or more to the point, OpenSolaris... because that's where it came from

      Correct, as noted in the FreeBSD commit log.

      Commit log:

      Please welcome ZFS - The last word in file systems.

      ZFS file system was ported from OpenSolaris operating system. The code
      in under CDDL license.

      I'd like to thank all SUN developers that created this great piece of
      software.

      Supported by: Wheel LTD (http://www.wheel.pl/)
      Supported by: The FreeBSD Foundation (http://www.freebsdfoundation.org/)
      Supported by: Sentex (http://www.sentex.net/)
    44. Re:The real questions are... by Rich0 · · Score: 1

      Hmm - I'm not sure what the best approach is. A simple one would be to just split those 500GB drives into two partitions - one that matched the old drive and a new one with the extra space. Then when you replace drives in the RAID you wouldn't use the whole drive but just the first half of each. In the end you have 3 250GB partitions unused and those could be made into a new array. No space is wasted as the numbers work out the same whether you have 2 arrays of 250GB drives or 1 array of 500GB drives.

      What I'm not sure about is whether you can replace all the drives at once with bigger versions of themselves. You could almost certainly swap out the drives 1-for-1 allowing for rebuilding and initially mdadm would just use the first half of each. I'd have to do a little research to find out if you could then extend them all.

      If you want to test it out that shouldn't be too hard. Create 3 10MB files and attach them to loopback devices. Form them into a RAID. Then one-by-one swap them out for 20MB files. Then try to resize the array. Should go fast at the small size and if it works it should work fine with real drives. In theory you can do the whole thing with a filesystem mounted on them the whole time...

    45. Re:The real questions are... by hjf · · Score: 1

      Well, I've been investigating a little. Yes, you can't grow an array in the sense of "adding more disks". But interestingly enough, you CAN replace the disks one by one and in the end (you will have to do a zfs export/import which is zfs for remounting), the array will grow to use all the new available space. It's not completely online (as you have to export/import and you will lose access for a few seconds) but the important thing is that it works.

      Here's a link I found after I tried it http://blogs.sun.com/mmusante/entry/zfs_and_automatically_growing_pools

    46. Re:The real questions are... by sendai2ci · · Score: 1

      That'd work fine. You can increase the capacity of a Z-RAID array by one by one removing a drive, swapping it with a larger capacity drive and waiting for ZFS to heal itself.

    47. Re:The real questions are... by hr.wien · · Score: 0

      Thanks. Just trying it would probably be the best approach yeah. :) Guess I'll have a play in VMWare when I find the time.

    48. Re:The real questions are... by lanzz · · Score: 1

      UDF is not read-only.

    49. Re:The real questions are... by Rich0 · · Score: 1

      You don't even need vmware - just try it with loopback files. Vmware will of course work also.

    50. Re:The real questions are... by hr.wien · · Score: 0

      Heh, I think I'll stick with one completely unfamiliar concept at a time. My experience with Linux RAID stops with once setting it up through OpenFiler on VMWare. :)

    51. Re:The real questions are... by HuguesT · · Score: 1

      If you go that way, iso9660 is not either. Someone wrote the data on that CD :-)

      The UDF filesystem on a commercial film DVD is definitely read-only.

    52. Re:The real questions are... by Rich0 · · Score: 1

      FYI - I tested this out and it works fine. To grow the array I just:

      1. Failed and removed a drive.
      2. Replaced the drive with a bigger one.
      3. Added the drive to the array and waited for it to rebuild.
      4. Repeated 1-3 for all drives in the array.
      5. Used mdadm --grow -z max /dev/md# to grow the array to the full size of the new drives.
      6. Used pvresize to make LVM use the full size of the array.
      7. Used lvresize to grow any desired logical volumes on the array.
      8. Used resize2fs to grow the filesystem to the new size of the logical volume.

      In theory all of these steps can be done on a running system assuming your hardware can handle hot-swapping. Or you can reboot in-between as often as you'd like to. However, I'm not sure if steps 6-8 handles a power-failure gracefully. I believe that steps 1-5 all do, and step 6-7 are fast. Step 8 might or might not be risky since it is slower and I don't know how well it handles interruptions. Might not hurt to do that one with the filesystem unmounted.

    53. Re:The real questions are... by hr.wien · · Score: 0

      Thanks a lot mate. Been experimenting with this a bit now and it seems to work like a charm. I'm able to grow the array by both adding drives and exchanging them all for larger ones. The bad news is that I'm now about to throw $1500 away on a new server with way too much storage for my needs. :)

  2. Not ready for prime time... by maubp · · Score: 3, Interesting

    Reading their FAQ, it sounds like there are lot of niggles to fix yet - including assumptions in other parts of Mac OS. All in all it sounds like ZFS isn't ready for general use on the Mac just yet. Maybe Mac OS X 10.6 will ship with this by default?

    1. Re:Not ready for prime time... by iluvcapra · · Score: 4, Interesting

      I'll bet one of the reasons they're putting it out there is the hope that a few kind souls with some time on their hands will submit some patches and work out the kinks; given the amount of interest there is for this to be working on Mac OS X -- and there's a lot.

      Maybe between Apple, some Sun devs on their breaks and Amit Singh they can have this all wrapped up in a few months :)

      Academic question: What would have happened if MS had open sourced WinFS? Even under their PL, there would probably have been enough interest among enough dedicated nerds to... who knows.

      --
      Don't blame me, I voted for Baltar.
    2. Re:Not ready for prime time... by failedlogic · · Score: 1

      I think if ZFS becomes a new native FS to OS X (e.g. disk can be formatted to ZFS) we might not see it released until 10.6. Apple probably won't release a 10.5.x boot disk for users to reinstall the OS with ZFS as their boot drive. I think the changeover would be too "drastic" to not be part of 10.6. And it gives opportunity to have users buy an upgrade.

      I'm excited to see ZFS get adopted into OS X. I've read some info about it and am really eager to take advantage of it. It would be really cool of Microsoft to run it native on Windows!

    3. Re:Not ready for prime time... by russellh · · Score: 1

      I'll bet one of the reasons they're putting it out there is the hope that a few kind souls with some time on their hands will submit some patches and work out the kinks
      a day or two before macworld? hmm.
      --
      must... stay... awake...
    4. Re:Not ready for prime time... by EXMSFT · · Score: 0, Troll

      Nothing short of a complete redesign could have rescued WinFS. The design as it was was flawed from nearly the beginning.

    5. Re:Not ready for prime time... by Hucko · · Score: 1

      You would have a death wish for computers????

      --
      Semi-automatic amateur armchair Australian philosopher; conjecture ready at any moment...
    6. Re:Not ready for prime time... by bhima · · Score: 1

      I think you will find that ZFS (itself, not just Apple's implementation of it) is missing a few critical bits of functionality.
      Like being able to grow the RAIDZ data pool. Maybe this isn't such a big deal in the large data pools and extremely capable servers that Sun usually deals with.

      But for me it was big deal when I went from 1.6 TiB to 4.0 TiB and I'm really hoping that this is all worked out before I have to expand again.

      To me a proper RAID would fully & automagically utilize whatever drive I stuck in the pool.

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    7. Re:Not ready for prime time... by jcr · · Score: 1

      hope that a few kind souls with some time on their hands will submit some patches and work out the kinks;

      Or just file bug reports. It all helps.

      -jcr

      --
      The only title of honor that a tyrant can grant is "Enemy of the State."
    8. Re:Not ready for prime time... by pla · · Score: 1

      What would have happened if MS had open sourced WinFS?

      "Hey guys, I have this great idea - Let's take a passably fast storage medium, the hard drive... And instead of using a one-layer mapping of filenames to physical locations, we can store everything in an SQL database the size of the whole drive! That way, we can take advantage of all the speed, reliability, and economy of resource use of MSSQL, and apply that to every file operation, no matter how trivial! Sure, we might get timeouts under heavy loads (such as booting), but really, those lazy programmers should check for failure of (previously) atomic file ops in the first place!"

    9. Re:Not ready for prime time... by MMC+Monster · · Score: 1

      Agree. Case retentive (not case sensitive) file systems are so 1960s. God only knows why NTFS went down that route.

      --
      Help! I'm a slashdot refugee.
    10. Re:Not ready for prime time... by the_B0fh · · Score: 1

      Academic question: What would have happened if MS had open sourced WinFS? Even under their PL, there would probably have been enough interest among enough dedicated nerds to... who knows.



      Don't worry, Miguel would have ported it.

  3. Notes by asparagus · · Score: 5, Informative

    I installed this last week, got it working. It's still very early beta, managed to crash my machine half a dozen times before deciding to wait a little. Remember to do zpool exports before you eject external hard drives. But yes, very promising technology. OS X has gone from having a wonky 1/0 implementation to having one of the better software raid systems available. Back to scoping out four and eight drive usb sata enclosures and cheap 500gb hard drives. ;-)

    1. Re:Notes by Anonymous Coward · · Score: 5, Informative

      Well, if your looking for cheap HDs. Here is a GREAT script a guy wrote.

      http://forre.st/storage

      It works with newegg.com to find the best deals on HDs

    2. Re:Notes by Anonymous Coward · · Score: 5, Funny

      Based on your limited experience with this filesystem, would you say that it would make sense to port the source code to Solaris? I'm sure there's a lot of Sun users who could use a shot in the arm like this right about now.

    3. Re:Notes by Anonymous Coward · · Score: 2, Insightful

      Take a look around at some of the other pages on that site. Amazing considering the one who wrote this script is 14 yrs old and is already doing some very impressive scripting and design. Keep at it and you will have no problems whatsoever finding a job! The world can certainly use more true hackers.

    4. Re:Notes by misleb · · Score: 1

      OS X has gone from having a wonky 1/0 implementation to having one of the better software raid systems available.


      Geez, I should hope OS X would have the whole binary thing down pretty good by now.
      --
      "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
    5. Re:Notes by LKM · · Score: 2, Insightful

      Yeah, he's doing some absolutely awesome stuff. Makes me wish I could grow up now. On the other hand, I'll probably be dead once the world is flooded due to global warming and Mad Max meets Waterworld, so I shouldn't feel to bad for not having a computer when I was 14, I guess :-)

    6. Re:Notes by cp.tar · · Score: 1

      OS X has gone from having a wonky 1/0 implementation to having one of the better software raid systems available.


      Geez, I should hope OS X would have the whole binary thing down pretty good by now.

      Oh, I don't know... They still seem to be stuck with Roman numerals.

      Then again, since Microsoft patented ones and zeroes, I guess OS X is the best analog computing can offer today.

      --
      Ignore this signature. By order.
    7. Re:Notes by argiedot · · Score: 1

      It's wonky because you get an integer overflow when attempting to calculate 1/0 :)

  4. When do they say, "Just Kidding!" by osgeek · · Score: 4, Informative

    This reads like a nerd's unsubstantiated wet dream.

    An absolutely, positively, amazing feature set. I can't wait until it's stable enough for production use. After 7 years of staying away from Apple products, I'm going back to the Mac.

    1. Re:When do they say, "Just Kidding!" by larry+bagina · · Score: 4, Informative

      ZFS is also available in FreeBSD 7 and OpenSolaris (which should be the most stablest of all).

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    2. Re:When do they say, "Just Kidding!" by GuyverDH · · Score: 1

      And just think, it's been working for years under Solaris (okay, working internally for a little over 2 years, and available externally for over a year).... =)

      Why wait? OpenSolaris (x86, x64, SPARC) or download a free license of the real deal Solaris (X86, x64, SPARC)....

      www.opensolaris.org or www.sun.com

      either way - zfs rocks, and they keep adding more features frequently....

      --
      Who is general failure, and why is he reading my hard drive?
    3. Re:When do they say, "Just Kidding!" by Anonymous Coward · · Score: 0

      A guy who changes operating systems just for a file system? Props to you, that is some hardcore cred, right there!

      >>After 7 years of staying away from Apple products, I'm going back to the Mac.

    4. Re:When do they say, "Just Kidding!" by Animixer · · Score: 1

      As far as I know, it has been quite stable for some time on Solaris and there's no need to use Apple products (started in the 6/06 release of Solaris 10 if I remember correctly).

      Please correct if I am wrong.

      --
      man tunefs | grep fish
    5. Re:When do they say, "Just Kidding!" by Anonymous Coward · · Score: 0

      After 7 years of staying away from Apple products
      wtf? were you a die-hard classic user or something? 7 years ago is pretty much the introduction of OS X... you left Apple just when they started getting a clue?
    6. Re:When do they say, "Just Kidding!" by osgeek · · Score: 2, Interesting

      Every time I have to mess with Solaris, I'm annoyed at how much dorking I have to do with it to get it to have a reasonably modern environment and set of tools on it like a fresh install of Ubuntu or Fedora Core.

      FreeBSD... maybe... I kind of like the Apple hardware, though.

    7. Re:When do they say, "Just Kidding!" by osgeek · · Score: 1

      Combination of being sick of waiting for them to get a clue and the job paying me to do Windows and buying my machines for me. ZFS is going to be the straw that breaks the camel's wallet.

    8. Re:When do they say, "Just Kidding!" by dfn_deux · · Score: 1

      Working, yes, however, there are is no ZFS support in the Solaris installer or jumpstart system, and Sparc Solaris still has no way to boot ZFS which is something that has been doable on X86 for months. Sun needs to step up and show some serious production level ZFS support if they want to keep us Solaris admins from defecting away from Sun hardware.

      --
      -*The above statement is printed entirely on recycled electrons*-
    9. Re:When do they say, "Just Kidding!" by weicco · · Score: 1

      FreeBSD... maybe... I kind of like the Apple hardware, though.

      Well, last time I checked they used pretty ordinary PC components. I'm sure you can build your own computer with (almost) same components and even spray paint a picture of an apple to the chassis :)

      --
      You don't know what you don't know.
    10. Re:When do they say, "Just Kidding!" by Alex · · Score: 1

      And just think, it's been working for years under Solaris (okay, working internally for a little over 2 years, and available externally for over a year).... =)

      More like available externally since Nov 2005 (in opensolaris), and running internally for at least 3 more years than that.

      Alex

    11. Re:When do they say, "Just Kidding!" by Anonymous Coward · · Score: 0

      I guess the point of this story is that it's now available in an OS that people actually want to use.

    12. Re:When do they say, "Just Kidding!" by suranyip · · Score: 1

      NexentaOS may be your friend, it is basically an OpenSolaris kernel with Ubuntu userland, even though the Ubuntu part is a bit outdated (Dapper-based) at the moment (1.0 RC2).

      FreeBSD 7.0 is also soon to be released (at 7.0 RC1 now) and it includes all the latest software.

      AFAIK both should run fine on Intel-based Macs.

    13. Re:When do they say, "Just Kidding!" by suranyip · · Score: 1

      Forgot to mention that AFAIK neither FreeBSD nor NexentaOS supports installation to ZFS at the moment (haven't tried the latest Nexenta though)... What you can do is install to a small partition, create a large ZFS pool and copy everything over.

    14. Re:When do they say, "Just Kidding!" by Jesus_666 · · Score: 1

      Try acheiving the same form factor, though.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    15. Re:When do they say, "Just Kidding!" by Anonymous Coward · · Score: 0

      Well, last time I checked they used pretty ordinary PC components. I'm sure you can build your own computer with (almost) same components and even spray paint a picture of an apple to the chassis :)

      Sort of like using Windows running WindowBlinds with a linux WM theme? :P

    16. Re:When do they say, "Just Kidding!" by jhol13 · · Score: 1

      Latest OpenSolaris comes with full GNU tools, you just have to set PATH properly. The "rest" is available from http://www.blastwave.org/, although those sometimes are a bit old.

      YMMV.

    17. Re:When do they say, "Just Kidding!" by GuyverDH · · Score: 1

      *cough* - conservative estimates - and yes, 3 is over 2... *cough*...

      --
      Who is general failure, and why is he reading my hard drive?
    18. Re:When do they say, "Just Kidding!" by GuyverDH · · Score: 1

      SUN has been making good progress on the SPARC ZFS boot front as well. It's not as easy as it was under the x86 process as they have to modify the openboot firmware to handle the key pieces for allowing zfs boot.

      I believe it's due (at least tentatively) for integration into Nevada build 82 or 83 at this time.

      http://www.opensolaris.org/jive/thread.jspa?messageID=182541&#182541

      --
      Who is general failure, and why is he reading my hard drive?
    19. Re:When do they say, "Just Kidding!" by Trashman · · Score: 1

      Sun needs to step up and show some serious production level ZFS support if they want to keep us Solaris admins from defecting away from Sun hardware.


      This statement ignores the fact that there are number of commercial applications that run only on Sparc based Solaris systems. What H/W exactly would you migrate to?

      ZFS boot is coming it's in Opensolaris right now. Barring any major problems, it will be in Solaris 11.

      --
      Do not read this .sig
    20. Re:When do they say, "Just Kidding!" by dfn_deux · · Score: 1

      It doesn't ignore any of that. I expect when I pay big money for Sun Hardware that the OS support I see from Sun should be more advanced on their own hardware than on beige hardware. As of a few months ago that is not the case. If today I wanted the OS to boot on a T2000 from a ZFS pool I'd be SOL; OTOH I could easily get that same config working using 3rd party hardware for half the cost.

      --
      -*The above statement is printed entirely on recycled electrons*-
    21. Re:When do they say, "Just Kidding!" by Trashman · · Score: 1

      But you still haven't answered my question. What would migrate to that according to you, is cheaper? The only other player making sparc H/W is fujistu. last I looked, they didn't do anything special that sun couldn't do.

      --
      Do not read this .sig
    22. Re:When do they say, "Just Kidding!" by dfn_deux · · Score: 1

      Non-Sparc hardware... If I pay for Sparc hardware from Sun I expect Sun's version of Sparc Solaris to have, at a minimum, feature parity with X86 solaris on a beige x86 hardware. A little over 3 grand buys me an T1000 spec'd for my task OTOH that same 3 grand buys a much beefier beige box which also runs solaris AND has more features...

      --
      -*The above statement is printed entirely on recycled electrons*-
    23. Re:When do they say, "Just Kidding!" by Hucko · · Score: 1

      Cool I did it too!... well it was more away from a filesystem...

      --
      Semi-automatic amateur armchair Australian philosopher; conjecture ready at any moment...
  5. Hmm by Forkenhoppen · · Score: 1

    I wonder what Apple thinks of this.

    1. Re:Hmm by wootest · · Score: 5, Informative

      Since Apple employs Noel Dellofano, hosts Mac OS Forge, has incorporated the stable read-only bits in the latest Mac OS X Server and makes a slightly older build of the same code as the Mac OS Forge read/write version available on their developer web site, I think they approve.

    2. Re:Hmm by Anonymous Coward · · Score: 0

      Well then I wonder what Sun thinks of this.

    3. Re:Hmm by leamanc · · Score: 3, Interesting

      Well then I wonder what Sun thinks of this.

      Not that it really matters what Sun thinks about their F/OSS filesystem that anyone can download, modify or incorporate into their OS, but they are excited about Apple's adoption of ZFS, and have been contributing resources to the 'ZFS for OS X' project. It was widely rumored that ZFS would at least be an option in the shipping version of Leopard, if not the default filesystem. Someone over at Sun was even crowing about this a few months before Leopard was released.

      I'd say Sun looks favorably upon this.

      --
      :q!
    4. Re:Hmm by Anonymous Coward · · Score: 5, Funny

      Well then, what does Paris Hilton think of this?

    5. Re:Hmm by Anonymous Coward · · Score: 0

      She was so excited she promptly released a new "secret" sex video hosted on a server using ZFS. Although, admittedly, the server was running FreeBSD.

    6. Re:Hmm by johnslater · · Score: 5, Funny

      Paris Hilton? Think?

    7. Re:Hmm by Just+Some+Guy · · Score: 1

      "It's hawt."

      --
      Dewey, what part of this looks like authorities should be involved?
    8. Re:Hmm by the_B0fh · · Score: 1

      Hey now, it's been documented that she thinks. For example:

      http://www.theregister.co.uk/2007/12/19/hilton_smurf_incident/

      Now, the clarity of thought, that's a different issue.

  6. Linux? by reacocard · · Score: 1

    Interesting, I wonder if this could help in the effort to port ZFS to linux? It'd depend on the license they release it under though.

    1. Re:Linux? by nguyenhm · · Score: 2, Insightful

      I would imagine the kernel bits are significantly different, though mere availability of source, if not previously available, would likely help.

    2. Re:Linux? by larry+bagina · · Score: 4, Informative

      It's not a technical problem preventing linux usage so much as a political problem and a license problem. Unless this convinces those zealots that 1) FUSE isn't good enough and 2) CDDL is FREE, it won't do jack shit for linux.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    3. Re:Linux? by lokedhs · · Score: 3, Informative

      The sources has already been available under an open source license since ZFS came out.

    4. Re:Linux? by Eighty7 · · Score: 0

      Well then lets do what we do best & path around the damage like we did with mp3s. There's already a GUI out for kernel building. Someone add a button for "Build with ZFS support." Isn't it just that simple?

    5. Re:Linux? by zsau · · Score: 4, Interesting

      It's not a question of whether people thing CDDL is Free or not. There are "zealots" like Stallman who think that both GPL v2 and GPL v3 are free. But he would be the first to say you can't include GPL v3 code, like a future relicensed version of the Solaris kernel, in GPL v2 code, like the Linux kernel.

      And I think most people will agree with you that Fuse isn't good enough. But at the moment, there are only two options: complete reimplementation from the ground up, and Fuse. Fuse is easiest.

      --
      Look out!
    6. Re:Linux? by lakeland · · Score: 3, Interesting

      Actually, I see no reason why FUSE wouldn't be perfectly acceptable for zfs - at least until people start seriously considering zfs for root filesystems. FUSE is fast enough, stable enough, and flexible enough. We don't have X in the kernel, I don't see that we _need_ to have the filesystem in the kernel either.

    7. Re:Linux? by misleb · · Score: 1

      The zfs-fuse project already has 90% of the code to implement ZFS. The kernel bits are what make the driver unique from platform to platform. You'd probably learn more by looking at how ext2/3, reiser are implemented.

      --
      "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
    8. Re:Linux? by rbanffy · · Score: 1

      If you really need ZFS, you can rather easily and painlessly move from Linux to Solaris.

      they are very similar OSs and both offer more or less the same userland (you can bring up the latest Gnome on both).

    9. Re:Linux? by LingNoi · · Score: 1

      Since Sun holds the copyright and patents for ZFS it doesn't matter what Stallman thinks. Sun can do whatever they want with their copyright which includes licensing the same code as GPL2, GPL3 and proprietary.

      So are you saying that the "zealot" is Sun because they won't relicense their code as GPL 2?

    10. Re:Linux? by zsau · · Score: 1

      No, not at all. In fact, I'm not calling anyone a zealot. I have no idea how you read my post as saying what you have. I was just saying licence mixing isn't a matter of opinion and the fact that Linux won't include CDDL code isn't because anyone's a zealot. (Although one might say Torvald's anti-GPL3 zealotry makes it harder for Linux to be relicensed as GPL3..)

      --
      Look out!
    11. Re:Linux? by Ash-Fox · · Score: 2, Informative

      If you really need ZFS, you can rather easily and painlessly move from Linux to Solaris.

      they are very similar OSs and both offer more or less the same userland (you can bring up the latest Gnome on both).
      Don't let this person miss-lead you. Solaris does not have the same userland available like most Linux distributions do, it doesn't even have a modern version of KDE (latest version on Solaris is 3.4.something while most distributions are running something like KDE3.5.6).

      There is no decent vast repositories either for Solaris which exist on major distributions (like Ubuntu) while there are alternative repositories/package management systems available for Solaris. Solaris just does not have the vast amounts of software that are available on the majority of Linux distributions. A common theme I see is that it doesn't even have simple ham radio software that I find even on smaller Linux distributions.

      That said, it is possible to create a virtual machine in Solaris which runs a Linux distribution of your choice (Solaris' kernel supports this), but in my experience, it seems slower than running the Linux distribution directly on the system and if you're getting ZFS for performance -- I don't think this sort of usage will help performance significantly.

      One other thing I might add, Solaris is not that easy to use compared to Linux distributions. There is no equivalent to even harddrake/restricted manager/YasT/systemsettings when it comes to configuring hardware support.
      --
      Change is certain; progress is not obligatory.
    12. Re:Linux? by superpat · · Score: 1

      I met Stallman late last year. I mentioned that I worked on an OSS project at Sun (OpenSSO) and, almost apologetically, that it was CDDL. He picked up my tone and immediately replied "That's great - that's still free software". So - CDDL, 'open source', according to OSI, 'free', according to RMS.

    13. Re:Linux? by rbanffy · · Score: 1

      Oh yes. Solaris has no civilized package manager. That's a problem and that's a good reason for me not to run Solaris on my notebook.

      But, If I had so much need for ZFS (and ZFS feature set goes well beyond performance), I suppose I wouldn't be on a notebook built for compactness and low energy consumption. I think the roles where ZFS is a must and Solaris is excluded in favor of Linux are a pretty narrow niche. I, personally, can't think of one.

      And, BTW, what is a "miss-lead"?

    14. Re:Linux? by Raenex · · Score: 1

      So - CDDL, 'open source', according to OSI, 'free', according to RMS. But the point remains that CDDL is incompatible with GPLv2. Stallman acknowledges other "free" licenses, but he also knows that some are incompatible with each other. So still no ZFS for Linux. Even if ZFS was re-implemented from scratch under GPLv2, there's still the patent issue. Sun only indemnifies ZFS adopters under the CDDL.

      Sun would need to either dual-license ZFS under GLPv2, or grant patent rights that aren't restricted to the CDDL code. It's pretty simple, though some people are trying to cloud the issue, pretending that anybody but Sun is blocking ZFS from Linux.
    15. Re:Linux? by argent · · Score: 1

      That's really great. It sounds like Stallman is getting a lot mellower, which I guess is natural. Nobody could keep that kind of intensity up forever.

    16. Re:Linux? by Anonymous Coward · · Score: 0

      You cant reimplement because Sun has been busy patenting everything. So most likely if you try to do so they'll unleash the lawyers on you. And I dont know of any coder that enjoy legal threats.

  7. Great new filesystems by PhotoGuy · · Score: 4, Interesting

    It's a shame that I'm gunshy with new (to the OS) filesystems. ZFS has so much to offer, but every time I try out a new filesystem, I end up with data loss, even ones that are supposedly new and wonderful and robust. (Even when ext3 was new but stable, I lost stuff on it.) I can't wait to hear lots of positive feedback on its stability and performance, so I can get up the nerve to try it.

    --
    Love many, trust a few, do harm to none.
    1. Re:Great new filesystems by mcowger · · Score: 4, Informative

      Consider my comment some of that.

      I've had no problems with 5T+ datasets, and we even get about a 10-20% performance boost out of it compared to UFS.

      snapshotting & all those neat features work totally as expected.

      Only minor issue I see is that a zfs send is single threaded, so you cant parralellize it over multiple processes easily.

    2. Re:Great new filesystems by stinerman · · Score: 2, Funny

      Only minor issue I see is that a zfs send is single threaded, so you cant parralellize it over multiple processes easily.

      Well, a multithreaded filesystem is only a performance hack anyway. :-)
    3. Re:Great new filesystems by Anonymous Coward · · Score: 0

      New an robust are a bit in contradiction when it comes to filesystems. It takes years for Filesystems to reach the stability of what you are used to because almost every simple coding mistake will lead to some kind of data loss, be it "actual" data or meta data, etc.

      So it will be some time until ZFS is ready for production use, on non Solaris-plattforms at least.

    4. Re:Great new filesystems by iluvcapra · · Score: 3, Informative

      Here's a link explaining the parent for all you c|net "reporters" and NYT technology stringers who read slashdot. You know who you are.

      --
      Don't blame me, I voted for Baltar.
    5. Re:Great new filesystems by Anonymous Coward · · Score: 0
      Ah, memories. That thread is such a wonderful example of how academia is orthogonal to reality.

      Just one example:

      Once upon a time there was the 4004 CPU. When it grew up it became an 8008. Then it underwent plastic surgery and became the 8080. It begat the 8086, which begat the 8088, which begat the 80286, which begat the 80386, which begat the 80486, and so on unto the N-th generation. In the meantime, RISC chips happened, and some of them are running at over 100 MIPS. Speeds of 200 MIPS and more are likely in the coming years. These things are not going to suddenly vanish. What is going to happen is that they will gradually take over from the 80x86 line. They will run old MS-DOS programs by interpreting the 80386 in software. :-)
    6. Re:Great new filesystems by misleb · · Score: 1

      snapshotting & all those neat features work totally as expected.


      Only if you "expect" it not to work at all. Last beta seed I tried (1.1 Oct 3), snapshotting didn't work. Well, you could technically take a snapshot, but there was no way to access it. I also had problems deeply nesting subvolumes. I couldn't follow many of the ZFS tutorials. Does this open source version offer more?

      -matthew

      --
      "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
  8. Best ZFS Presentation by this+great+guy · · Score: 5, Informative

    I have been using ZFS (on Solaris) for more than a year, both at work and at home, and I am following closely the latest developments. IMHO the best intro on ZFS is the official ZFS slides (36 pages): http://opensolaris.org/os/community/zfs/docs/zfs_last.pdf

    1. Re:Best ZFS Presentation by ColdWetDog · · Score: 1
      Nice slide show. I want one.

      But what are we going to do with all of our dev>null jokes?

      --
      Faster! Faster! Faster would be better!
    2. Re:Best ZFS Presentation by larry+bagina · · Score: 1

      I think the best introduction is the screencast where the guy overwrites his disk from /dev/random and zfs keeps on trucking.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    3. Re:Best ZFS Presentation by Anonymous Coward · · Score: 0

      Best slide from that: "A product is only as good as its test suite".

      Makes me wonder what the test suites for other filesystems, or my Linux hardware drivers, look like, or if they even exist.

      For example, I'm excited by the possibilities that Compiz can offer (though the current round of compositing window managers are pretty bad). But every time I try out Compiz, it runs great for a couple hours, and then hangs hard. Or (more recently) it runs really fast but has severe drawing errors all over the place. Why isn't there a "compiz-test" program that I can run which tries out all the graphics card features it will need, and reports back either "Pass!" or "Fail -- graphics won't look right" (or a crash, but then at least I'm expecting it)?

      My boss would give me a hard time if I ever checked in code without tests, and yet, in the free software community, that seems to be not just common, but perfectly acceptable.

  9. Sun CEO Encourages Apple to Use ZFS by this+great+guy · · Score: 5, Informative

    I'd say Sun looks favorably upon this.
    Of course they do. Sun CEO Jonathan Schwartz encourages Apple to use ZFS (direct from his blog): "As an example, Apple is including ZFS is in their upcoming "Leopard" OS X release. This is happening without any payment to Sun (that's how truly free software works). Under the license, we've waived all rights to sue them for any of the patents or copyright associated with ZFS. We've let Apple know we will use our patent portfolio to protect them and the Mac ZFS community from Net App. With or without a commercial relationship to Sun."
  10. Re:Total garbage - has no error result codes! by _merlin · · Score: 5, Informative

    Total garbage - has no error result codes! Always assumes all writes have no failures, so unplugging a firewire drive or a USB drive or eSata drive guaranteed to either kernel panic or otherwise crash the OS.

    ZFS is designed to perform writes asynchronously. If the write should be able to complete, it returns success and then goes off to do it. It's a different way of thinking about a filesystem. You need to do a "zpool export" or something before you can unplug a detachable disk to avoid the panic when you unplug it. That's not a bug. It's by design.

    The Finder itself is lied to.

    No it isn't. You're just misunderstanding the semantics of ZFS.

    This is such an amateurish implementation, I am shocked that the source was even offered.

    No it isn't. It's just not a filesystem that's suitable for the masses. Average users cannot understand or manage an advanced storage pool system like ZFS. They're better off with filesystems that make sense to them, like HFS+, ext2 or NTFS.

    Shame on Apple for funding this quality of work.

    Shame on all the geeks for telling everyone that ZFS will solve all their problems. ZFS is great under certain circumstances. It does what it does very well, but it isn't a filesystem for the masses.

    I will admit, a few years ago, DURING BOOT, linux had a similar design bug and all IDE writes during boot had no error codes returned. But this is different. This is 2008.

    Just plain not reporting errors is a bug. ZFS asynchronous write semantics is intentional, although counter-intuitive, behaviour.

  11. Port it to Linux by bogaboga · · Score: 0
    This is my humble request to those who understand code to port this file system to Linux. Reason being that on my Mythbuntu box, deleting and accessing large video files makes my system choke. It it worse when I delete the last remaining video since I have to reboot the system.

    I say all this because I know Apple stuff is pretty well refined and I know for a fact that ZFS beat all native Linux file systems according to some benchmarks on operations with large files exceeding 3.7GB. There were reports that ZFS could copy the entire Linux kernel source code in only 3 seconds! Amazing, but not good with software or hardware raid.

    As I write this, I am reminded that there could be license issues with ZFS source code but hope none of this stuff prevents a gifted slashdotter from porting this ZFS bugger to Linux. I am eagerly waiting.

    1. Re:Port it to Linux by flyingfsck · · Score: 3, Informative

      You should reformat with XFS.

      --
      Excuse me, but please get off my Pennisetum Clandestinum, eh!
    2. Re:Port it to Linux by BrainInAJar · · Score: 0, Troll

      No.

      Use OpenSolaris instead.

      Linux's GPL forbids importing code from the CDDL. Solaris is also a much better operating system.

    3. Re:Port it to Linux by Anonymous Coward · · Score: 0

      I'm really wishing it'd get into Linux too, but I don't think it's going to happen.

      First there's the licensing issue, so the whole thing would likely have to be done from scratch.

      Also, last I heard the Linux devs aren't very impressed with ZFS, one of them even went so far as to call it a "rampant layering violation".

      You can get support with FUSE here, but I'm not sure how well it works, and I've heard FUSE isn't very fast.

    4. Re:Port it to Linux by Hucko · · Score: 2, Interesting

      I'm considering it, but your answer just says there is two different methodologies while claiming that one is better than the other. I am more wary of CDDL just as I am wary of Lucent's licence for Plan 9 (for sheer clever thinking, it would be my prefered OS -- discounting I haven't learnt how to use it effectively. Not as clever as the OS).

      --
      Semi-automatic amateur armchair Australian philosopher; conjecture ready at any moment...
    5. Re:Port it to Linux by Loibisch · · Score: 1

      Currently being forced to work under Solaris 8 I cannot but laugh at your suggestion that Solaris is "a much better operating system".
      Thank you, you have made my day. :)

      (I know Solaris 8 is like 8 years old by now and newer versions are probably a lot improved...but after this experience I can't be bothered to try them out for a looong time probably).

    6. Re:Port it to Linux by Ash-Fox · · Score: 1

      Linux's GPL forbids importing code from the CDDL.
      It was Sun's decision to use a incompatible license. Not Linus. Linus even stated he was willing to relicense the kernel under GPLv3 to make it capable of using code from Solaris when Sun talked of licensing it under GPLv3, however since he mentioned that - Sun suddenly didn't talk about it anymore.

      Solaris is also a much better operating system.
      If that were true, I wouldn't have hardware support issues on hardware that works fine Linux distributions, nor would I find it so slow compared to running Linux on the same x86 hardware. Plus, there no vast repositories that provide what Ubuntu/Debian has, nor is there even a recent up to date KDE (3.5.x) available.

      I don't think all my issues with Solaris and/or OpenSolaris are worth ZFS and dtrace honestly.
      --
      Change is certain; progress is not obligatory.
    7. Re:Port it to Linux by BrainInAJar · · Score: 1

      Linux's GPL forbids importing code from the CDDL.

      "It was Sun's decision to use a incompatible license. Not Linus. Linus even stated he was willing to relicense the kernel under GPLv3 to make it capable of using code from Solaris when Sun talked of licensing it under GPLv3, however since he mentioned that - Sun suddenly didn't talk about it anymore."

      And so what, they're free to license it as they please. They chose an Apache style license because they have lot of third-parties that want to link in to the kernel ( hardware mfr's, filesystem vendors ( norton ) )

              Solaris is also a much better operating system.

      "If that were true, I wouldn't have hardware support issues on hardware that works fine Linux distributions, nor would I find it so slow compared to running Linux on the same x86 hardware. Plus, there no vast repositories that provide what Ubuntu/Debian has, nor is there even a recent up to date KDE (3.5.x) available."

      So you're saying windows is better than Linux? As for software repos: blastwave, SFE, sunfreeware, IPS. Take your pick

    8. Re:Port it to Linux by BrainInAJar · · Score: 1

      Compare Solaris 8 to Red Hat 5. They're both kinna painful to use. Redhat5 is newer.

    9. Re:Port it to Linux by Ash-Fox · · Score: 1

      And so what, they're free to license it as they please.
      The way the previous post was formed, it seemed to imply that it is all Linux's fault for not being compatible with Solaris.

      They chose an Apache style license because they have lot of third-parties that want to link in to the kernel ( hardware mfr's, filesystem vendors ( norton ) )
      They can also dual license the code if they so wanted. As I said before, the moment Linus mentioned he may change the Linux kernel to GPLv3 to get some of the benefits, Sun stopped talking about this. I can't help to think there is a connection there.

      I don't think Linux should be blamed for licensing issues.

      So you're saying windows is better than Linux?
      I have more problems with Windows supporting hardware than Linux does most of the time. That said, Windows is a superior operating system to Linux distributions when it comes to some things, such as roaming profiles - That said, SuSE Linux comes pretty close to this, while Solaris doesn't at all.

      Hell, the laptop I am using is "Designed for Windows XP". But the latest graphic drivers don't work under SP2, internal wireless does not work under SP2, soundcard is buggy under SP2.

      As for software repos: blastwave, SFE, sunfreeware, IPS. Take your pick
      I have already tried them. They just don't contain as much software as there is in Ubuntu/Debian. For example, a lot of opensource and free ham radio utilities I use aren't even packaged in there, while they exist in most major distributions.
      --
      Change is certain; progress is not obligatory.
    10. Re:Port it to Linux by Ash-Fox · · Score: 1

      This is my humble request to those who understand code to port this file system to Linux. Reason being that on my Mythbuntu box, deleting and accessing large video files makes my system choke. It it worse when I delete the last remaining video since I have to reboot the system.
      I have had pretty good experience with XFS and ReiserFS using huge files actually. I know ZFS support has been ported to FuSE - but unfortunately, performance is not so great.
      --
      Change is certain; progress is not obligatory.
    11. Re:Port it to Linux by MBGMorden · · Score: 1

      That said, SuSE Linux comes pretty close to this, while Solaris doesn't at all. I don't know the details of how the network admin set it up, but in college, our entire Computer Science department was Solaris based - some SPARC, some x86. Roaming "profiles" worked absolutely perfectly. Didn't matter where on campus you logged in - you pulled up the exact same desktop. /usr/bin was also NFS mounted from a central server so they only updated software twice for the whole network - once for the x86 machines and once for the SPARCS.
      --
      "People who think they know everything are very annoying to those of us who do."-Mark Twain
    12. Re:Port it to Linux by Ash-Fox · · Score: 1

      I don't know the details of how the network admin set it up, but in college, our entire Computer Science department was Solaris based - some SPARC, some x86. Roaming "profiles" worked absolutely perfectly. Didn't matter where on campus you logged in - you pulled up the exact same desktop. /usr/bin was also NFS mounted from a central server so they only updated software twice for the whole network - once for the x86 machines and once for the SPARCS.
      • Were you able to disconnect from the network and still use everything on your system?
      • Were the files stored locally on the machine and just updated periodically to the central server (if you could get a connection) rather than each time a file changed?
      • Could you even do offline logins to roaming profiles previously accessed on the machine recently and then later sync up the data with the server when you were connected to the network again?

      --
      Change is certain; progress is not obligatory.
    13. Re:Port it to Linux by rbanffy · · Score: 1

      You know... Solaris 8 is not the latest, greatest thing Sun made. Between 8 and 10 there is a lot of difference. IIRC, Solaris 8 is from 2003 or 2004, right? I think I got my disks in late 2002, but I am not sure.

      Linux was not nearly as usable as it is now. I still remember Gnome 1.

      Also, there is no such thing as a "better operating system" if you don't consider someone's needs. I did recommend Linux to my mother, who spends most of the day on the phone and on e-mail (she is happy with MacOS 9 and won't move until her computer dies). I did not recommend Linux to my wife because she relies too much on Office documents - she uses a Mac with OSX. The best OS for you may very well be Solaris, if you have a SPARC server with lots of storage, Linux if you develop software like I do, MacOS if you need to exchange documents with Windows users. Depending on your needs, you may consider Plan9 ;-) The right choice may even be Windows, if your boss married you to Exchange or Sharepoint (I am sorry for you in this case - in which you really have no choice).

      I gather HP-UX and Solaris are pretty good with multi-processor boxes.

  12. That's nice. by Jane+Q.+Public · · Score: 4, Funny

    Now, if we can only get it to talk to important things like NTFS, and Ext3, and Reiser...

    1. Re:That's nice. by Rebelgecko · · Score: 5, Funny

      If you want to talk to Reiser, visiting hours are 9AM-5PM on weekends.

      --
      CATS/Diebold '08- All your vote are belong to us!
    2. Re:That's nice. by y86 · · Score: 1

      Reiser......... I'm not ending up in Jail?!?! You use it.

    3. Re:That's nice. by samkass · · Score: 1

      I agree with NTFS, but I doubt ext3 is important to more than a tiny handful of Mac users, and I'm surprised *anyone*'s using Reiser anymore. While MacOS users have been able to read NTFS for years, it would be nice to be able to format external devices as NTFS and use them natively on MacOS. Of course, now that FUSE is ported to MacOS, word is that NTFS is pretty stable on it (more stable than this ZFS port, from what I've heard), if slow.

      --
      E pluribus unum
    4. Re:That's nice. by EXMSFT · · Score: 1

      NTFS under FUSE on Leopard rocks. Just wish it was as easy (and free) to get Windows to talk back to the HFS+ partitions...

    5. Re:That's nice. by Jane+Q.+Public · · Score: 1

      You pretty much said what I was thinking, but did not write. It would be nice to have access to NTFS and Ext3 systems, because those are probably the most common non-Apple FS around. Journaling FS, anyway.

    6. Re:That's nice. by jasonwea · · Score: 1

      May I ask what you would expect people to be using on their Linux boxes instead of ReiserFS?

    7. Re:That's nice. by Woy · · Score: 1

      Reiser rules. Should Reiser the programmer be found guilty, Reiser the FS will still rule.

      It is almost like they are separate identities, and his alleged criminal behaviour didn't introduce bugs into his code or something.

      --
      "If God created us in his own image we have more than reciprocated." - Voltaire
    8. Re:That's nice. by Ash-Fox · · Score: 1

      Reiser rules. Should Reiser the programmer be found guilty, Reiser the FS will still rule.
      Actually, should Hans Reiser be found guilty, ReiserFS will be known as the killer file system.
      --
      Change is certain; progress is not obligatory.
    9. Re:That's nice. by samkass · · Score: 1

      It is almost like they are separate identities, and his alleged criminal behaviour didn't introduce bugs into his code or something.

      Uhhh, chip on your shoulder, any? I didn't say anything about Reiser the person. And I'm sure it wasn't his wife's murder that put all those bugs into ReiserFS, but it was sure SOMETHING.

      --
      E pluribus unum
    10. Re:That's nice. by the_B0fh · · Score: 1

      May I ask why on earth would you be using ReiserFS? Have you not taken the time to look into all the issues that ReiserFS has?! A simple google will help you out tremendously.

    11. Re:That's nice. by Just+Some+Guy · · Score: 1

      Reiser rules. Should Reiser the programmer be found guilty, Reiser the FS will still rule.

      Undoubtedly! But how long will it continue to rule, assuming the likely case that it would not be further maintained? I'm unaware of any people or groups are still doing major development on reiserfs.

      --
      Dewey, what part of this looks like authorities should be involved?
    12. Re:That's nice. by Woy · · Score: 1

      We'll cross that bridge when we come to it. I'm not sure Reiser would continue to work in jail, and if he doesn't i doubt reiserfs would be left orphaned. If it is, however, then the time will come where i (and others) will have to replace reiserfs, hopefully by something even better.

      --
      "If God created us in his own image we have more than reciprocated." - Voltaire
  13. "he is making" by Anonymous Coward · · Score: 5, Informative

    I know it may be unheard of to those reading /., but Noel is a girl.

    1. Re:"he is making" by celle · · Score: 2, Funny
      "I know it may be unheard of to those reading /., but Noel is a girl."

      Oh my Lord!

      narrator: "and the Ronald Reagan picture drops from the wall in Cmdr Taco's office."

      So what, move on guys..??

    2. Re:"he is making" by General+Lee's+Peking · · Score: 1

      The typical feminine form of the name Noel is Noelle. To be fair, the mistake is no more grievous than referring to a man named Susan as ``she'' in print without really knowing who the person is.

    3. Re:"he is making" by juancnuno · · Score: 1

      Or rather, a woman.

    4. Re:"he is making" by General+Lee's+Peking · · Score: 1

      ``He is a boy'' or ``she is a girl'' are figures of speech used in the context of pointing out mistaken gender in a humorous way. Again to be fair, it is not meant as a term of disrespect toward the person whose gender has been incorrectly assumed, but rather it is meant to poke fun at the person who made the incorrect assumption.

  14. Re:Total garbage - has no error result codes! by Anonymous Coward · · Score: 2, Funny

    it isn't a filesystem for the masses.

    Huh? Music, movies, Office, and porn. And lots of web browsing (goes with the porn).

    Do I want ZFS or not?
  15. he's a she by nobody/incognito · · Score: 0, Troll

    a damn fine she at that

    --
    parturiunt montes, nascetur ridiculus mus
  16. Good One! :o) by Jane+Q.+Public · · Score: 1

    Hadn't thought of that...

  17. Actually, by antijava · · Score: 5, Informative

    Noel is a she. I met her last year soon after Apple hired her away from Sun.

  18. Doesn't that go without saying? by Anonymous Coward · · Score: 2, Funny

    Nothing short of a complete redesign could have rescued WinFS. The design as it was was flawed from nearly the beginning.

    It's a windows family tradition.

  19. Linux md isn't rocket science...nor is ZFS raid by SuperBanana · · Score: 1

    It wasn't that easy to set up a RAID in Linux the last time I tried (admittedly long ago), but even in comparison, setting up a RAID-Z in ZFS is just a single line: "zpool create mypool raidz disk4s2 disk5s2 disk6s2"

    mdadm create -l 5 -n 4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1

    If you like living dangerously, you don't need to do anything else except put LVM2 on it and add an fstab entry; md automatically goes hunting for raid partitions when it is loaded, and the md superblock info contains all the info needed to assemble and array, no config needed. However, if you set up mdadm with information about the raid array, it'll behave more intelligently when things go wrong.

    That said, ZFS is not "raid", and md is not a file system and volume manager. ZFS offers a lot you won't find anywhere else, but the basic lack of standard features found in ZFS compared to a large number of RAID and/or volume management systems means that ZFS has a ways to go: ZFS does not support increasing the number of drives in a pool, and you CANNOT migrate between any of the various vdevs. You cannot go from a single drive to a pair of mirrored drives, or from a single drive or mirror to RAIDZ. You cannot increase the number of drives in a RAIDZ set. Instead, they force you to add entire redundant vdevs to the pool. All of the aforementioned resilvering is stuff Linux RAID has been able to do for years (well, okay, the RAID 5 expansion stuff is a little new.)

    I migrated a single drive to a mirrored array a couple months ago. Then I migrated that to 3-drive RAID5. Then I migrated that to a four-drive array. None of that would have been doable with ZFS.

    However, from what I understand, Sun is working on the expansion stuff...and a defragment tool (thank god that, like SGI, they don't subscribe to the bullshit myth that modern filesystems don't get fragmented. It's not true with NTFS, it's not true with HFS+, and it sure as hell isn't true with ext2/3 OR reiserfs...I wish people would stop perpetuating that bullshit myth!)

    1. Re:Linux md isn't rocket science...nor is ZFS raid by bombshelter13 · · Score: 1

      Hey, this is trailing a little off topic, but I'm about to do just that with my home server - move from a 2 disk mirrored md array to a 4 disk raid-5 array, and was unaware that there was any special method to ease the transition the way you'd suggest. Can you point me at an article that would provide more information on this? It'd definitely be a lot easier then having to back up the entire contents of the array.

    2. Re:Linux md isn't rocket science...nor is ZFS raid by wodgy7 · · Score: 4, Interesting

      You're mistaken. ZFS RAID-Z is definitely "raid" -- in fact it's RAID without the RAID-5 write hole on non-specialized (no NVRAM in the controller) hardware. Contrary to what you said, you *can* easily go from a single drive to a pair of mirrored drives (see ZFS admin guide, p. 59) or a RAID-Z (p. 60). The only real limitation is you cannot add an additional disk to an existing RAID-Z configuration, the idea right now being that you'll add another set of disks in RAID-Z as a top-level vdev. This is not optimal for a lot of scenarios but they're working on it. ZFS mirrored configurations are more flexible.

      The data integrity advantages of ZFS over traditional RAID-4 and RAID-5 are hard to argue with... it validates the entire input-output path.

    3. Re:Linux md isn't rocket science...nor is ZFS raid by SuperBanana · · Score: 1

      Can you point me at an article that would provide more information on this? It'd definitely be a lot easier then having to back up the entire contents of the array.

      I don't have any links handy and it's bedtime, but...from what I recall, you stop the existing array and then use mdadm to "create" a raid 5 array with those two drives. It'll bitch and say there's an array there already, but ignore the warning and force the operation. Apparently, md lays out data identical to a mirror if you create a 2-disk RAID5 array. Odd...

      Then, use mdadm to add another drive as a spare, and grow the raid device out (ie using -n to change the number of devices along with the grow command.)

      I really, really wouldn't try this without a backup, and I would make sure I was running a fairly recent 2.6 kernel, as the RAID expansion stuff was introduced in the 'teen releases and probably saw a number of bugfixes. I'd also try googling for stuff like "md raid migration" or somethin'. There were a few blog posts out there where people did exactly what you're looking for.

      If the total device size is small enough, buy an external drive from somewhere and return it a few days later (after zeroing out the drive, of course.) Check for restocking fees etc...though even 15% on ~$350 (which is what you can get a 1TB hitachi external drive from BB for) ain't bad if you think of it as a 1-2 week "rental" and/or insurance...

    4. Re:Linux md isn't rocket science...nor is ZFS raid by Anonymous Coward · · Score: 0

      Wow, you sat through a presentation about ZFS. How important and entitled that must make you feel.

    5. Re:Linux md isn't rocket science...nor is ZFS raid by Anonymous Coward · · Score: 0

      I sat through the entire presentation by the guy who headed the ZFS team. I know all about it, thank-you-very-fucking-much. Now all you need to do is sit through a presentation from the guy who headed NASA and then you'll know everything there is to know about space flight.
    6. Re:Linux md isn't rocket science...nor is ZFS raid by Anonymous Coward · · Score: 0

      "Imagine a giant cockroach with unlimited strength... a massive inferiority complex, and a real short temper... is tear-assing around Manhattan Island in a brand-new ZFS suit."

    7. Re:Linux md isn't rocket science...nor is ZFS raid by Anonymous Coward · · Score: 0

      Did you forget your Prozac, little man?

    8. Re:Linux md isn't rocket science...nor is ZFS raid by Ash-Fox · · Score: 1

      Now all you need to do is sit through a presentation from the guy who headed NASA and then you'll know everything there is to know about space flight.
      This reminds me of a movie I saw years ago.

      "I absorbed Latin yesterday in just two hours." "You realize Doctor Angelo my intelligence has surpassed yours."
      --
      Change is certain; progress is not obligatory.
    9. Re:Linux md isn't rocket science...nor is ZFS raid by C0rinthian · · Score: 1

      "Imagine a giant cockroach with unlimited strength... a massive inferiority complex, and a real short temper... is tear-assing around Manhattan Island in a brand-new ZFS suit." ...Cloverfield?
    10. Re:Linux md isn't rocket science...nor is ZFS raid by Anonymous Coward · · Score: 0

      Were you born this much of a pretentious prick, or did you have to work at it?

      The entire presentation? Wow. That took what, an hour out of your life? Small price to pay to have license to be a condescending jackass on the Internet!

  20. CSI:Munich... by lazy_playboy · · Score: 1
    1. Re:CSI:Munich... by nezmar · · Score: 1

      Interesting and funny at the same time. ;-)

  21. Re:Total garbage - has no error result codes! by Spy+Hunter · · Score: 1

    You need to do a "zpool export" or something before you can unplug a detachable disk to avoid the panic when you unplug it. That's not a bug. It's by design.
    Well then it's a stupid design. Of course the filesystem can't guarantee no data loss in this situation, but a kernel panic is *not* a valid response. Requiring explicit unmount commands for removable drives is a design decision that should have died when we moved away from non-journaled filesystems.

    Disclaimer: I'm assuming that ZFS on Mac does, in fact, cause kernel panics when an external drive is removed without unmounting; as the parent posts imply. I haven't tested it myself...
    --
    main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
  22. What if someone did port ZFS to Linux? by halfdan+the+black · · Score: 3, Interesting

    Suppose I ported ZFS to Linux (not that I could, just suppose) as a native kernel module, and published the source code. If then I used ZFS on Linux, and some others also grabbed the 'Linux ZFS' code, built it and used it. What laws if any would I be breaking? Who and under what grounds could sue me / Linux ZFS users?

    1. Re:What if someone did port ZFS to Linux? by corychristison · · Score: 2, Interesting

      Who and under what grounds could sue me / Linux ZFS users?
      Short answer: nobody and nothing.

      Long answer: The biggest issue (to my understanding) is that it will not be included in the official kernel. Google sponsored it to be included in FUSE to cover their butts because I suppose they just didn't want to get involved in the issues. I don't see why it couldn't be released as a patchset that someone would have to patch and install manually, at the very least.
      But then again, this is my view and understanding of it. Although I may be wrong, I don't really care... I just want ZFS (without moving from Linux) :-(
  23. Or.. by hax0r_this · · Score: 1

    Unless some people who 1)have the technical knowledge and 2)don't care about licensing restrictions make a linux port of it anyway. Seriously, who is going to do anything about it? Is Sun going to sue people for increasing compatibility with their products? Or is Richard Stallman going to hunt them down and beat them to death with the Free Software club?

    Frankly, no one is going to do anything about it, so I look forward to the day that common sense breaks out and we quit letting legal mumbo jumgo get in the way of progress.

  24. linux md is grow-able, as is xfs and ext3 by SuperBanana · · Score: 3, Interesting

    then you need to mkfs, and if you run out of space you're screwed because you can't easily grow.

    All of Linux's md raid modes are grow-able.

    LVM2, XFS, and ext3 are all capable of not just expansion, but *online* expansion. With xfs, it's one command- xfs_grow -d. It automatically senses the new block device size and presto, you've got a larger file system.

    BTDT two weeks ago when I added a drive to my RAID5 array, expanded the LVM2 physical volume, grew the logical volume, and then grew the XFS volume (I make the choice to run LVM2 on top of the array- I could have just as easily put XFS directly on the array device itself.) The only caveat is that you won't see the extra space until the resilvering is done.

    I'm not saying it's equal to ZFS, but Linux's filesystems and volume management are a lot more capable than you're claiming, and everyone needs to calm down and realize that RAID is not ZFS, ZFS is not RAID, etc.

    1. Re:linux md is grow-able, as is xfs and ext3 by iPaqMan · · Score: 4, Informative

      You should watch these. (thanks andrewg for links)

      For anyone who has not seen the ZFS demonstration videos by Bill Moore you must watch the link.

      High Bandwidth versions - http://www.sun.com/software/media/real/zfs_learningcenter/high_band...

      Low Bandwidth versions - http://www.sun.com/software/media/real/zfs_learningcenter/low_bandw...

      Also general info here:

      - http://www.sun.com/software/solaris/ds/zfs.jsp
      - http://www.sun.com/software/solaris/zfs_learning_center.jsp

    2. Re:linux md is grow-able, as is xfs and ext3 by MauriceV · · Score: 2, Interesting

      How is ZFS not RAID? RAIDz? RAIDz2? Plus, LVM has another limitation. There is no easy way for one filesystem to utilize the free space of another. With ZFS, this is automatic.

    3. Re:linux md is grow-able, as is xfs and ext3 by Deagol · · Score: 1
      I don't think he's dissing the Linux options. I think he's rightly pointing out how nice ZFS administration is, when compared to Linux's offerings.

      I once worked for a university HPC environment. I was primary admin on a large-ish RS/6000 serving 1TB (this was impressive when we bought the machine) of space to NFS/Samba clients, from Beowulf nodes to desktops. AIX's LVM and disk management tools, whether it was the "smit" interface or the command-line tools, were simply a joy to work with. You told the machine what you wanted, and it just did it. You could add/remove devices hot (the hardware as well as the drive devices in the OS), grow the volume and and filesystem on it on the fly. It was really, really nice.

      After a few years, when IDE disks started getting really cheap, we began investigating multi-TB fileservers on commodity harware using Linux and the LVM tools. Already a well-seasoned Linux admin, I started to learn the ins-and-outs of these VLM tools. While, at the time, they were *almost* as capable as IBM's (certainly a hell of a lot more cost effective), they weren't nearly as nice to work with. Too many layers and parts to worry about. I just wanted to create space to export to the users, and IBM's tools made that very easy to do reliably. The Linux tools were not as polished, but in the end, you could get a serviceable volume up and exported.

      ZFS is the first thing I've used since my RS/6000 admin days that "felt" as robust and was as easy to use as IBM's JFS and LVM.

      That was around 2003/2004 when AIX 4.x and Linux 2.4.x were the norm. I've since moved on to admin primarily FreeBSD machines. My opinions on the Linux offerings may be a bit dated. However, seeing the comments in this thread, it would appear that though the technology may be better, the usability hasn't quite gotten there just yet.

    4. Re:linux md is grow-able, as is xfs and ext3 by DarthJohn · · Score: 1

      I got page not found for the videos.

  25. oop, one last note by SuperBanana · · Score: 1

    Then, use mdadm to add another drive as a spare, and grow the raid device out (ie using -n to change the number of devices along with the grow command.)

    One last note: I accidentally 'added' a drive straight to the array without changing the number of drives. It seemed to just mirror the array onto the third drive. I believe the important bit is to add it as a spare, and then grow with a new #-of-devices param (-n). You might be able to do the add & change-# at the same time, and I just forgot to give the -n option.

    One good way to test all this: loopback devices :-) Just do it with a filesystem on that fake raid set, and a file on the filesystem for which you've calculated the checksum, etc.

  26. Re:Total garbage - has no error result codes! by Nomen+Publicus · · Score: 3, Informative

    The design of ZFS is intended to ensure that the data on the disk is _always_ a valid file system. If a system panics when a ZFS file system is unexpectedly removed, that is a different issue.

    Then, of course, checksumming everything does wonders to protect against bit rot and flaky cables.

  27. NTFS-3G on Linux is stable by Cato · · Score: 4, Informative

    Have you tried NTFS-3G? It really is very stable, no doubt due to the exhaustive testing regime on every release - see http://www.ntfs-3g.org/quality.html - and is used by default in most Linux distros. It's a different codebase to the older Linux-NTFS and Captive NTFS projects, and has reasonably good performance.

    Since ZFS is new, I don't think your scenario applies, and it's not intended for DVD/CD use.

    1. Re:NTFS-3G on Linux is stable by jay-be-em · · Score: 1

      But it's still a serious pain in the butt to use outside of a non-simple home use situation. Please please correct me if I'm wrong.

      --
      "Orthodoxy means not thinking--not needing to think. Orthodoxy is unconsciousness." --Eric Blair
    2. Re:NTFS-3G on Linux is stable by Kjella · · Score: 2, Interesting

      YMMV, but in my experience it'll consistantly crash when moving large files (>2 or 4GB, not sure) from WD external disks. Fortunately since it's a user space driver, it doesn't do anything with the system. It has been perfectly stable for accessing my internal disks though.

      --
      Live today, because you never know what tomorrow brings
    3. Re:NTFS-3G on Linux is stable by Anonymous Coward · · Score: 1, Informative

      I have experienced "hangs" when moving large files using NTFS-3G on a slow machine. At first I thought the machine had frozen, but after waiting for a while (a minute or so), things came back to normal. This happens quite often, and it is fairly annoying, but it has never actually crashed. So I still use it as it's the only viable option for storing large files on USB HDD's that can be shared between different platforms.

    4. Re:NTFS-3G on Linux is stable by Cato · · Score: 1

      You really need to be more specific than 'serious pain in the butt' ... are you talking about bugs, performance issues, or what?

      I don't think anyone is intending NTFS-3G to be used on a server, since it's really for dual-boot which is mostly for desktops and laptops - just use ext3 and Samba. And I think there are enough desktop users of NTFS-3G that I can't see it causing problems for work usage.

    5. Re:NTFS-3G on Linux is stable by drinkypoo · · Score: 1

      The lame thing about NTFS-3G - and this may have been corrected by now - is that there is no real fsck tool. So if you lose power or otherwise fail to safely unmount an NTFS volume, you have to mount it and CHKDSK it at least once, maybe twice, before it will mount on Linux without being forced. There is a filesystem check tool that comes with ntfs-3g utils but it doesn't reset this flag - or at least didn't. I have been keeping my music collection on an NTFS volume for compatibility, but I think I'm going to just go ahead and use ext3 next time. (I use XFS for all my root volumes, but ext3 is better-guaranteed to be supported.)

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    6. Re:NTFS-3G on Linux is stable by JeffSchwab · · Score: 1

      It's "used by default in most linux distros?" When did that happen? I've never seen it as the default, and it certainly wouldn't be my first choice.

  28. Re:Total garbage - has no error result codes! by Erpo · · Score: 1

    No it isn't. It's just not a filesystem that's suitable for the masses. Average users cannot understand or manage an advanced storage pool system like ZFS. They're better off with filesystems that make sense to them, like HFS+, ext2 or NTFS.

    I beg to differ. Even with a single disk preformatted with ZFS from the factory, users can benefit from ZFS's paranoid checksumming.

  29. Any Linux developer, "contributory infringement" by Per+Abrahamsen · · Score: 1

    Well, any Linux developer could sue you for "contributory infringement" for posting the Linux kernel module.

    Whether they would succeed would depend on the judge. The FSF claim that you cannot circumvent the GPL by distributing proprietary (or in this case, free under an incompatible license) as separate modules, with the expectation that the user does the link. I haven't seen too many people who believe in the FSF interpretation.

  30. Re:Total garbage - has no error result codes! by Spy+Hunter · · Score: 1

    If a system panics when a ZFS file system is unexpectedly removed, that is a different issue.
    Actually, kernel panics are *explicitly* the issue. I am questioning the assertion of the above post which claimed that kernel panics when removing a removable drive are "by design" in ZFS. My post was explicitly not concerned with data integrity, though I am sure ZFS does a fine job in this regard. Did you even read my post, or were you just looking for a venue to astroturf for ZFS?

    Let me forestall any further confusion by assuring you that I have nothing against ZFS; to the contrary I am sure it is a fantastic and reliable filesystem.
    --
    main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
  31. Doesn't work with iTunes? by MessageDrivenBean · · Score: 2, Insightful

    From the FAQ: Downloading music via iTunes onto a ZFS target volume does not work yet. iTunes will complain it can't write to the volume. So there seems to be a link between iTunes and HFS+? Sounds like someone needs to do some reverse engineering...

    --
    Quisque verborum suorum optimus interpres...
    1. Re:Doesn't work with iTunes? by Slithe · · Score: 1

      My OSX installation uses UFS, and iTunes works just fine. I think it is because ZFS only has read-only support right now

      --
      ---- "XML is like violence. If it doesn't fix the problem, you aren't using enough."
  32. ZFS on FreeBSD Stability by Anonymous Coward · · Score: 1, Interesting

    I was thinking of playing around with ZFS in the upcoming FreeBSD 7.0 release. Can anyone tell me how it is for hosting samba shares, ftp and http, etc with a pool of about 2TB? From what I've heard, it's still shaky, but I don't think it'd be under too much stress in my situation. Any tips or insight? I'm still kinda new to FreeBSD.

  33. sure but does it run.. by Anonymous Coward · · Score: 0

    o wait stupid licensing issues!
    we need some rouge kernel devs that go crazy and just dont care about licenses!

  34. Re:Total garbage - has no error result codes! by Anonymous Coward · · Score: 1, Interesting

    Who is this Colonel Panic? Is he in the same division as General Failure?

    Anyway, from a design point of view, ZFS should not cease to operate if a drive (removable or not) ceases to be available unexpectedly. Given that all writes are meant to be atomic, you should end up with the disk in a consistent state, but not necessarily the state you expect. If your application relies on non-atomic operations for referential integrity (e.g. an application depends on two separate writes to two separate files both completing successfully to keep the data consistent) you'll have problems.

    It's actually a user interface issue - in return for all the benefits ZFS brings, the user commits to notifying it in advance of drive removals. If you don't want to do that, that is fine too - you just get a performance hit as no write caching takes place.

    You shouldn't need to tell the OS via CLI or GUI that the drive is going away 'though - a spin/down or synch button or equivalent should be provided on the drive itself.

    Press button on removable device. Filesystem notified of pending removal. Filesystem flushes caches. Once safe, LED on device goes from Red to Green. Green LED - device can be removed.

    Or design a connector that notifies the OS that it is being removed _and_ gives enough notice to allow cache flushing to succeed. That's a tall order given the size of write caches and the speed of USB connections. You might get 100 ms to write 8 Mebibytes of data, if you are lucky.

  35. My apologies by nezmar · · Score: 1

    If that's the case I'm honestly sorry for the mistake. My apologies to Dellofano.

    nda

  36. Patents.. by LingNoi · · Score: 1

    Even if you wrote the whole thing from scratch under GPL 2 for Linux, Sun could still be dicks and sue you for patent infringement.

    That is of course unless you're in a country such as the UK which doesn't believe in software patents, then it's the users problem, not yours.

    1. Re:Patents.. by halfdan+the+black · · Score: 1
      I highly doubt that Sun would sue you for porting / using ZFS, consider how supportive they are of Apple and BSD using ZFS.

      Sun was making Apple / ZFS announcements way before ZFS was ready on Apple. Looks like Sun wants others to use ZFS.

      Personally, I think the big problem is the zealots over at FSF. I think the GPL is good idea, so far everything I have written has been released under GPL. Now granted that I have not used any CDDL code in my stuff, I think that it is ridiculous that the FSF could potentially threaten me with legal action for my own software if I used CDDL code.

      On a side note, does anybody know of a license that mandates source distribution (like GPL), but can allow the inclusion of code from BOTH GPL, CDDL and others?

  37. ZFS is great, but also horrible in a few ways by Anonymous Coward · · Score: 0

    ZFS is a wonderful technology breakthrough but it's not perfect. It has two horrendous flaws that many people won't care about at all, but others will consider to be dealbreakers.

    1) Quota implementation is... really bizarre. And very inflexible. You basically have to have a separate filesystem per quotaed ID. Very 1970.
    2) RAIDZ (and RAIDZ2), which are approxiately like RAID5 and RAID6, are disastrously bad for performance in many cases. Small reads and writes are basically limited to the performance of a single spindle. You can solve this by using mirroring, but that's not very green (or cost-effective).

    Contrast both of these problems with NetApp, which does *exactly* what you want in both cases.

    ZFS is still wonderful, but it's not for everyone. Not even every bigtime storage admin.

  38. Potential alternatives... by justkeeper · · Score: 0
  39. Me too by Britz · · Score: 1

    Funny, same thing here.

    Lost stuff on ReiserFS (when it was supposed to be stable for a long time) and ext3 crapped out on one of my friends servers so bad we had to ditch the whole thing about 1 1/2 years ago.

    XFS was the only thing that I never had a problem with. How old is that thing? Has BSD ever changed their default filesystem?

  40. Still A Few Bugs In The Filesystem by PopeZaphod · · Score: 1

    From the http://trac.macosforge.org/projects/zfs/wiki/issues page: The trash does not empty on a ZFS volume. For now, you can workaround this by simply manually removing items from the .Trash directory Regardless of the benefits, the FS needs to handle the basics before I'd consider trying it out.

    --
    ->
  41. Re:Total garbage - has no error result codes! by wodgy7 · · Score: 1

    It's not just checksumming either -- now that ZFS has ditto blocks (replicating active blocks into "free" disk space), it can now self-heal in some circumstances on a single drive configuration.

  42. Re:Total garbage - has no error result codes! by Erpo · · Score: 1

    Hasn't ZFS always had ditto blocks? Anyway, yes, self-healing is cool. It's too bad that Sun is keeping it away from Linux.

  43. Reliable ZFS on a Mac today by ChrisA90278 · · Score: 1

    There is an easy way to have a reliable, read/write ZFS on you Mac right now. get VMware Fusion and then install Solaris in a VM. Solaris is free. If you look you can even find a VM image with Solaris alredy installed so the installation is easier even than "triveal". The solaris running in the VM can then export the ZFS files to Mac Os X using the interal virtual network.

    I bring this up just so that maybe more people can get to see first hand how ZFS works. If you happen to already have Fusion then getting Solaris is just a download away.

  44. Which tools? by jotaeleemeese · · Score: 1

    Sun has been providing GNOME for some time directly.

    As for other utilities, there are the SunFreeware repositories out there that have most stuff you need.

    --
    IANAL but write like a drunk one.
  45. Re:Total garbage - has no error result codes! by Just+Some+Guy · · Score: 1

    Requiring explicit unmount commands for removable drives is a design decision that should have died when we moved away from non-journaled filesystems.

    "We"? The FreedBSD folk (and others) have adopted ordered metadata updates as a higher-throughput alternative. FreeBSD 7 does include the "gjournal" plugin for GEOM (meaning that you can put the journal on anything that GEOM supports, including weird constructs like an encrypted RAID of network devices). In practice, though, everyone seems to use "softupdates".

    --
    Dewey, what part of this looks like authorities should be involved?
  46. Re:Any Linux developer, "contributory infringement by tinkerghost · · Score: 1

    The FSF claim that you cannot circumvent the GPL by distributing proprietary (or in this case, free under an incompatible license) as separate modules,with the expectation that the user does the link.

    That might be what Stallman says, but Linus has explicitly stated that's not the interpretation used for the Kernel. They build APIs, you use them, you're good. If you wrote it directly into the kernel, then you would have an issue - probably more likely from SUN than from KernelDev who would most likely just roast you over your own burning sourcecode.

  47. Re:Total garbage - has no error result codes! by jeremyp · · Score: 1

    You need to do a "zpool export" or something before you can unplug a detachable disk to avoid the panic when you unplug it. That's not a bug. It's by design.

    No, it's a bug. No software designer deliberately panics the kernel when a disk that is designed to be detachable is accidentally removed from the system while still mounted. If this behaviour is real (I haven't tried it myself), it's a safe bet that the Mac ZFS team consider it a bug.
    --
    All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  48. I wish they'd finished UFS support first. by argent · · Score: 2, Informative

    UFS might not have all the bells and whistles of ZFS, but it's still been the most reliable and robust file system I've used in the past 25 years. It's got decades of work on making it stable and solid, and thanks to the tools available to work with it and the redundancy in the format I've even been able to recover data from UFS partitions that had been partially reformatted.

    HFS? I've had HFS partitions get corrupted just be letting them get too full. That's just nuts.

    ZFS? Sun says ZFS doesn't need file system check and repair tools, it can't fail. That's what DEC said about AdvFS, than then later on came up with salvage tools to pull data out of a damaged AdvFS file system. That's what the Linux folks used to say about Reiser FS, too. Even before the Hans Reiser incident it had become clear that it wasn't true, and I've got no reason to assume that ZFS will be any better, not over the long term.

    The only journalled file system I've found that has come anywhere near that goal has been Network Appliance's, and they have complete control over the hardware and software and no third-party applications and drivers running on the hardware. And, of course, few places have very many NetApps (we certainly never had more than 4 at a time) so I can't say that the apparent stability of our boxes isn't due to the fact that we simply never had many of them...

    Apple refreshed UFS for Panther, bringing in SoftUpdates to give it the performance advantages of journalling, then dropped it.

    Apple has created layers that run over network file systems that implement almost all of the application-visible differences between HFS and remote CIFS and NFS shares, but you can't take full advantage of these for local UFS file systems. Why not? Don't ask me, ask Apple.

    I blame corporate ADHD.

    1. Re:I wish they'd finished UFS support first. by wodgy7 · · Score: 1

      While ZFS' claim of never becoming inconsistent sounds incredible, they also have an extremely impressive test suite and test rig.

      Their nightly "ztest" program does all of the following in parallel:
      - Read, write, create, and delete files and directories
      - Create and destroy entire filesystems and storage pools
      - Turn compression on and off (while filesystem is active)
      - Change checksum algorithm (while filesystem is active)
      - Add and remove devices (while pool is active)
      - Change I/O caching and scheduling policies (while pool is active)
      - Scribble random garbage on one side of live mirror to test self-healing data
      - Force violent crashes to simulate power loss, then verify pool integrity

      They claim this is probably more abuse in 20 seconds than most people would see in a lifetime and that ZFS has been subjected to over a million forced, violent crashes *without losing data integrity or leaking a single block*.

  49. Can you go into your experience with UFS? by argent · · Score: 1

    I started setting my system up with UFS because I was tired of the reliability problems of HFS+, but too many applications had too many problems with it, so I eventually gave up.

    Mostly older applications, both Classic and Carbon-based, including Office.

    What are you running, and what kind of adaptations have you had to make? I might give it another try.

    1. Re:Can you go into your experience with UFS? by Slithe · · Score: 1

      Sorry it took so long to reply. My computer is a MacBook (2006 model) running OSX 10.4. I am running the standard OSX applications, along with XCode, Microsoft Office 2003, X11, Camino, and I have tried lots of other applications with no problems.

      --
      ---- "XML is like violence. If it doesn't fix the problem, you aren't using enough."
  50. On the other hand... by argent · · Score: 1

    On the other hand, it can't be much LESS reliable than HFS+. Just filling HFS+ up can corrupt its on-disk data structures to the point that you have to backup and restore or use a payware third-party application to fix it.

    On the gripping hand, they *do* have some UFS support. And UFS is a well understood and by now extremely reliable FS.

  51. How about UFS? by argent · · Score: 1

    UFS with SoftUpdates has extremely good performance deleting files.

    And BSDL is GPL-compatible.

  52. What about partitions? by argent · · Score: 1

    NTFS support would be really nice, since then I could use an OS that didn't suck to fix broken Windows file systems.

    But what about the plethora of Windows partitioning schemes? Does OS X handle primary and secondary and extended partitions, and the new Dynamic disks?

  53. Plan 9 by argent · · Score: 1

    Just what is the latest licensing scheme for Plan 9 anyway? I lost track.

    1. Re:Plan 9 by Hucko · · Score: 1

      Basically despite being community developed, Lucent retains the "intellectual property" of each version of Plan 9. Effectively they can pull the license anytime and return to the proprietary system. For home use shouldn't affect anyone but business use would be vulnerable.

      --
      Semi-automatic amateur armchair Australian philosopher; conjecture ready at any moment...
  54. Linus' approach to the GPL is pretty liberal... by argent · · Score: 0, Troll

    The way the previous post was formed, it seemed to imply that it is all Linux's fault for not being compatible with Solaris.

    It would be nice if Linus had picked a license that allowed more flexibility. On the other hand I really admire how far he's gone to keep the Linux kernel open to GPL-incompatible code (such as the nVidia drivers) despite pressure from people to take a hard line on the GPL.

    I'm actually not sure that it would really be impossible to come up with a way to incorporate ZFS in the Linux kernel. It would require a lot of care, and cooperation from the Linux side, but stranger things have happened.

  55. But, Doctor Evil, that already happened. by argent · · Score: 1

    What is going to happen is that they will gradually take over from the 80x86 line. They will run old MS-DOS programs by interpreting the 80386 in software.

    Yes, that started happening around 1992, and Intel even called it the "RISC Core" at the time.

    These days a huge chunk of any 80x86-compatible CPU is effectively a hardware-accelerated just-in-time translator that converts 80x86 codes to a RISC or VLIW internal instruction set that the actual processor core really runs. One company, Transmeta, even tried doing it without the hardware acceleration, but that turned out to be a bit of a false economy.

  56. Sun sue you...? by argent · · Score: 1

    I thought that was Network Appliance. :p

  57. WEE! by genican1 · · Score: 1

    OMG! ZFS on OSX! I'm gonna wet myself!

  58. So Plan 9 fails the fork test. by argent · · Score: 1

    "If it can't be forked, it's not open source".

    I don't know how much point to home use of Plan 9 there is, in any case. I had a talk with Dennis Ritchie about that at Usenix a few years back, and that was his conclusion too... Plan 9 doesn't make a lot of sense without a pretty substantial computing facility. I've had a substantial (for the time) multi-user shared environment at home since the early '90s, starting with a used System V box, and I'm only now getting to the point where I've got multiple file and compute servers... and that's really for business.

  59. It's impressive, but it's synthetic. by argent · · Score: 1

    Those are all impressive tests, but they're all testing things they know they're watching for, or they're testing things that are specific to ZFS. It doesn't represent real life. Only the last of those tests, or maybe the last two, is really applicable to a traditional file system, and only the last one really represents any kind of "real life" abuse.

    Try having a customer running it for six months on a system with bad RAM that's randomly corrupting the file system, crashing, and then recovering and running FSCK using the same bad RAM, over and over again, until the customer finally notices and ships the corpse to you to recover.

    I wasn't able to get everything back, but I can't imagine any "advanced" file system surviving that kind of abuse even vaguely intact. Now if they were randomly corrupting BOTH sides of the mirror and surviving...

  60. interesting USENET thread by andrzejl · · Score: 1

    Hi,

    you can find it here: http://tinyurl.com/2qxtrv

    I have never seen such full of flaims discussion. Enjoy! They go very deep in the harddrive and ZFS architecture to prove their points.

    A.