3 ms·
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 a
by wilhil 10y ago
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?
- BrainInAJar 10y agoit'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.
- josteink 10y ago> 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.
- dragontamer 10y agoYou'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.
- fnj 10y agoNAS4Free 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 :-)
- NeutronBoy 10y agoI 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.
- feld 10y agoYou 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.
- feld 10y agois 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.
- BrainInAJar 10y agoSun hardware is expensive junk, but a bad disk controller that lies to ZFS about sync status is definitely in the risk model.
- pixl97 10y agoWait till you have a HW raid silently write bad data. Nothing is safe.
- NeutronBoy 10y agoAt 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.
- anexprogrammer 10y agoFreeNAS 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.