Created
November 10, 2011 11:42
-
-
Save tumf/1354672 to your computer and use it in GitHub Desktop.
keepalived.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vrrp_instance VI_a { | |
| state BACKUP | |
| interface eth1 | |
| garp_master_delay 5 | |
| virtual_router_id 2 | |
| priority 101 # <-- これは優先度の高いサーバを本来のNFSサーバとするため、サーバごとにかえる | |
| advert_int 1 | |
| authentication { | |
| auth_type PASS | |
| auth_pass nfs_a.secret | |
| } | |
| virtual_ipaddress { | |
| 192.168.0.101/24 dev eth1 # NFS-A | |
| } | |
| } | |
| vrrp_instance VI_b { | |
| state BACKUP | |
| interface eth1 | |
| garp_master_delay 5 | |
| virtual_router_id 3 | |
| priority 99 # NFS-BはNFS-2を優先するため、下げる | |
| advert_int 1 | |
| authentication { | |
| auth_type PASS | |
| auth_pass nfs_b.secret | |
| } | |
| virtual_ipaddress { | |
| 192.168.0.102/24 dev eth1 # NFS-B | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment