News for hackers. Stuff that matters.
Re:FreeNAS: Open Source Storage Operating System by wilhil on Thursday August 25, 2016 @02:46PM (#12361396)
I have bad memories of freenas (before the split/new version) many years ago when I had a disk and power failure... hdb went, so, c/d moved up a letter and it automatically screwed up raid...

... I was able to recover, but, I remember how many hours I spent on it.

Please tell me it is better now?

Re:FreeNAS: Open Source Storage Operating System by anexprogrammer on Thursday August 25, 2016 @04:00PM (#12362005)
FreeNAS is a rewrite compared to before the split. iXSystems got involved and helped move things along at a significantly better pace. They've contributed a lot.

A split caused by Olivier waking up one morning and announcing that freenas is dead because he wants to rewrite 0.8 on Linux because reasons. I switched back across to freebsd right about then as I lost all trust in the project (now NAS4Free).

Currently running FreeNAS for the last 2 years since last machine upgrade.

Re:FreeNAS: Open Source Storage Operating System by BrainInAJar on Thursday August 25, 2016 @02:57PM (#12361484)
it's ZFS backed, screwing up the RAID is going to be pretty close to impossible.

you can lose the system disk (usb key) that holds your settings, but the data you actually care about will be safe.

Re:FreeNAS: Open Source Storage Operating System by josteink on Thursday August 25, 2016 @03:14PM (#12361635)
> it's ZFS backed, screwing up the RAID is going to be pretty close to impossible

Even if it's ZFS it can get quite messed up if you set it up based on sda, sdb, etc like naming conventions. In that case entire zpools can fail to import in case of failure.

Therefore the best practice is to use device-by-id, so that if a device like sda falls out, the rest of your array should still resolve correctly.

And how the array is created is entirely a FreeNAS thing. Hopefully one which have, like OP says, improved.

Re:FreeNAS: Open Source Storage Operating System by dragontamer on Thursday August 25, 2016 @03:41PM (#12361859)
You're freaking me out.

As soon as I get home, I'm going to swap some of my HDD cables and see what happens... I've basically been assuming that NAS4Free uses device-by-id like any sane OS should.

Re:FreeNAS: Open Source Storage Operating System by fnj on Friday August 26, 2016 @01:43AM (#12364451)
NAS4Free and FreeNAS are just relabeled FreeBSD with GUI stuff pasted on. FreeBSD doesn't have /dev/disk/by_{id,label,partuuid,path,uuid}. It's its biggest failing IMO. Their /dev/diskid is NOT what it sounds like.

That said, ZFS pools under FreeBSD and derivatives, just as under linux, are imported from info stored on the drives themselves. They should be able to reboot after scrambling the cables. It would take more nerve, or craziness, than I've got to PROVE that using any pools I care about.

However, I have completely screwed a ZFS replace command in FreeBSD following a bad drive in a RAID-Z3 pool. It dutifully replaced a perfectly good drive with my new drive. But no harm was done to the pool. After it finished, I ran another zfs replace, replacing the bad drive with the "mistake" old drive. It all worked!

ZFS is so brilliant, be careful or it will put your eyes out :-)

Re:FreeNAS: Open Source Storage Operating System by NeutronBoy on Thursday August 25, 2016 @07:19PM (#12363226)
I used ZFS in two production instances a few years ago on Solaris, and had two instances of a bug that totally corrupted the superblock on each drive, meaning that all data was gone with no way to recover.

Now I'm back to HW RAID, LVM, and ext4, which works a treat, and I'll be using that until I have more faith in ZFS.

Re:FreeNAS: Open Source Storage Operating System by pixl97 on Friday August 26, 2016 @01:16AM (#12364361)
Wait till you have a HW raid silently write bad data.

Nothing is safe.

Re:FreeNAS: Open Source Storage Operating System by NeutronBoy on Friday August 26, 2016 @02:37AM (#12364625)
At least I know what my options are to recover from that. When I tried to resolve my ZFS issues, no tools existed to try help recover because it wasn't a failure mode that had been considered as an option apparently.
Re:FreeNAS: Open Source Storage Operating System by feld on Thursday August 25, 2016 @09:12PM (#12363686)
You had incredibly bad luck then unless you weren't running Solaris on Sun hardware, in which case you may have shot yourself in the foot with a poor disk controller and/or no ECC.
Re:FreeNAS: Open Source Storage Operating System by BrainInAJar on Friday August 26, 2016 @02:54PM (#12368437)
Sun hardware is expensive junk, but a bad disk controller that lies to ZFS about sync status is definitely in the risk model.
Re:FreeNAS: Open Source Storage Operating System by feld on Thursday August 25, 2016 @11:41PM (#12364115)
is it not obvious that you can't pull any hardware out of the bin and expect ZFS to be OK with it? it has requirements just like many modern OS features. Run virtualization without any CPU extensions to accelerate it and then tell me you're upset when your VMs kill your host with excessive resource consumption.