I am in the planning process for a freenas based NAS device for home backups. I intend to use 4 X 2Tb with raidz2. Data integrity being more imporant than performance.
Unfortunately where I live (India), power outages quite common. I have a central UPS for the house but it is not the kind that can talk to a computer and trigger automatic shutdowns. So when its batteries run out, there is an abrupt power failure. It's not a very common occurence but it can happen and I want to plan for that eventuality.
One options is to buy a UPS that can communicate with the freenas server. I'm hesitant in going in for this option because I'm not sure whether they're easily available over here, are most probably expensive and one UPS is already present.
My question is whether I can tweak something in the settings or set up a ZIL that will minimize data loss in case of a power outage.
1. Whether having a ZIL will prevent data loss in case of a sudden outage?
2. What happens if the ZIL itself becomes corrupted or fails? Does it cause loss of all data?
3. Does the ZIL have to be mirrorred? My understanding is that in the latest version of zfs, mirroring the ZIL is not necessary. Am I correct?
4. An online forum post (http://hardforum.com/showthread.php?t=1577141) mentions that not all SSDs are safe for use as ZIL but only those that obey flush commands or have super capacitors. Does anybody have more information on this aspect?
5. Can some other setting be changed in the system so that there are quicker commits to the disks?
6. Any other suggestions?
Thanks in advance.
Unfortunately where I live (India), power outages quite common. I have a central UPS for the house but it is not the kind that can talk to a computer and trigger automatic shutdowns. So when its batteries run out, there is an abrupt power failure. It's not a very common occurence but it can happen and I want to plan for that eventuality.
One options is to buy a UPS that can communicate with the freenas server. I'm hesitant in going in for this option because I'm not sure whether they're easily available over here, are most probably expensive and one UPS is already present.
My question is whether I can tweak something in the settings or set up a ZIL that will minimize data loss in case of a power outage.
1. Whether having a ZIL will prevent data loss in case of a sudden outage?
2. What happens if the ZIL itself becomes corrupted or fails? Does it cause loss of all data?
3. Does the ZIL have to be mirrorred? My understanding is that in the latest version of zfs, mirroring the ZIL is not necessary. Am I correct?
4. An online forum post (http://hardforum.com/showthread.php?t=1577141) mentions that not all SSDs are safe for use as ZIL but only those that obey flush commands or have super capacitors. Does anybody have more information on this aspect?
5. Can some other setting be changed in the system so that there are quicker commits to the disks?
6. Any other suggestions?
Thanks in advance.