- 论坛徽章:
- 0
|
在网上找到一些资料 http://www.linux-ha.org/HaNFS
Make sure you are using a shared disk device, either shared by hardware between your two servers or by DRBD.
Mount your shared device in one of the machines. For example, if the device is /dev/sdb1 and the directory you want to mount to is /data:
mount -t ext3 /dev/sdb1 /data
If the directory you will export is /data/userdata, create it if it is not there yet:
mkdir /data/userdata
Move /var/lib/nfs to your shared disk, make a link (/var/lib/nfs) to it:
mv /var/lib/nfs /data
ln -s /data/nfs /var/lib/nfs
On the other machine, remove the /var/lib/nfs directory and create a link instead:
rm -fr /var/lib/nfs
ln -s /data/nfs /var/lib/nfs
这一步估计可以保证数据写入正确性的问题,
http://www.linux-ha.org/DRBD/NFS
这里还一些资料
Note that auto_failback is off; we should not fail back unless a human has confirmed that the DRBD state is consistent.
We use the Delay script to create a brief pause during failover operations. It was proposed by Jens Dreger in a post at
看来failback需要人手工来做了 |
|