Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. hello,
  2.  
  3. we are going to use arping to update latest VIP's mac address to network and switch in SmartOS zones
  4.  
  5.  
  6. the application requirement:
  7. 0x01, there are two nodes, named nodeA and nodeB,
  8. 0x02, nodeA is running with the VIP and the database master node is running on nodeA,
  9. 0x03, nodeB is running without VIP and with database slave, the database is actually PostgreSQL.
  10. 0x04, the application access database via the VIP;
  11. 0x05, when nodeA had problem or down, the the VIP will be moved and run on nodeB, and PostgreSQL on nodeB will be promoted as master, also the VIP's mac address will be told to network and switches so that application can use correct VIP/mac to access the new master database.
  12.  
  13.  
  14. but we hit problem that, when we run the command, it reports following
  15. error, may I know how to fix it?:
  16.  
  17.  
  18. [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -s "90:b8:d0:61:68:72" -p -U 10.9.10.254
  19. arping: libnet_init(LIBNET_LINK, <null>): libnet_open_link(): open(): /dev/net: Is a directory
  20. [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -c 3 10.9.10.254
  21. arping: libnet_init(LIBNET_LINK, <null>): libnet_open_link(): open(): /dev/net: Is a directory
  22. [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -c 10 3 10.9.10.254
  23. arping: Too many args on command line. Expected at most one.
  24. [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -r 3 10.9.10.254
  25. arping: Too many args on command line. Expected at most one.
  26. [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -r 10.9.10.254
  27. arping: libnet_init(LIBNET_LINK, <null>): libnet_open_link(): open():
  28. /dev/net: Is a directory
  29. [root@13527805-a87c-42cc-8932-19eb373ff604 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement