Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 31st, 2012  |  syntax: None  |  size: 0.67 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. vrrp_instance VI_a {
  2.   state BACKUP
  3.   interface eth1
  4.   garp_master_delay 5
  5.   virtual_router_id 2
  6.   priority 99  # NFS-AはNFS-1を優先するため、下げる
  7.   advert_int 1
  8.   authentication {
  9.     auth_type PASS
  10.     auth_pass nfs_a.secret
  11.   }
  12.   virtual_ipaddress {
  13.     192.168.0.101/24 dev eth1 # NFS-A
  14.   }
  15. }
  16.  
  17. vrrp_instance VI_b {
  18.   state BACKUP
  19.   interface eth1
  20.   garp_master_delay 5
  21.   virtual_router_id 3
  22.   priority 101   # <-- これは優先度の高いサーバを本来のNFSサーバとするため、サーバごとにかえる
  23.   advert_int 1
  24.   authentication {
  25.     auth_type PASS
  26.     auth_pass nfs_b.secret
  27.   }
  28.   virtual_ipaddress {
  29.     192.168.0.102/24 dev eth1 # NFS-B
  30.   }
  31. }