Hello,
I was searching whole day for an answer, so I am trying the forum.
I want to make a FreeNAS box, that will share data via NFS to Debian server with Apache on it. It will be around 500 web sites... less that 50 GB of data. The NFS will be mounted to only one server. The reason, why I don't made a storage right on Debian box, is because ZFSonlinux is not stable enough.
I understand that everybody is saying that sync=disable is huge trouble in case of power loss, but most of them use NFS to store whole virtual machine (whole OS). I want to share only the web data. If some 5 seconds of data will be missing, it wont be a big trouble. I don't plan to use a SLOG/dedicated ZIL.
My questions are:
1. Is it still dangerous / can I lost all of the data when I will use NFS with sync=disable?
2. since I will mount NFS share from only one computer, I will mount it with async option and some other options that will make NFSv4 stateless. I will also set very long expiration time for caches... Will the NFS actually send some sync writes when it will be mounted as async?
3. I want to set vfs.zfs.txg.timeout="2" (default is 5). Does it means that I can loose only 2 seconds of data?
Thank you.
To not be a jerk who only asks, I am going to try to answer some question here on forum...
I was searching whole day for an answer, so I am trying the forum.
I want to make a FreeNAS box, that will share data via NFS to Debian server with Apache on it. It will be around 500 web sites... less that 50 GB of data. The NFS will be mounted to only one server. The reason, why I don't made a storage right on Debian box, is because ZFSonlinux is not stable enough.
I understand that everybody is saying that sync=disable is huge trouble in case of power loss, but most of them use NFS to store whole virtual machine (whole OS). I want to share only the web data. If some 5 seconds of data will be missing, it wont be a big trouble. I don't plan to use a SLOG/dedicated ZIL.
My questions are:
1. Is it still dangerous / can I lost all of the data when I will use NFS with sync=disable?
2. since I will mount NFS share from only one computer, I will mount it with async option and some other options that will make NFSv4 stateless. I will also set very long expiration time for caches... Will the NFS actually send some sync writes when it will be mounted as async?
3. I want to set vfs.zfs.txg.timeout="2" (default is 5). Does it means that I can loose only 2 seconds of data?
Thank you.
To not be a jerk who only asks, I am going to try to answer some question here on forum...