Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hello,
- we are going to use arping to update latest VIP's mac address to network and switch in SmartOS zones
- the application requirement:
- 0x01, there are two nodes, named nodeA and nodeB,
- 0x02, nodeA is running with the VIP and the database master node is running on nodeA,
- 0x03, nodeB is running without VIP and with database slave, the database is actually PostgreSQL.
- 0x04, the application access database via the VIP;
- 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.
- but we hit problem that, when we run the command, it reports following
- error, may I know how to fix it?:
- [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -s "90:b8:d0:61:68:72" -p -U 10.9.10.254
- arping: libnet_init(LIBNET_LINK, <null>): libnet_open_link(): open(): /dev/net: Is a directory
- [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -c 3 10.9.10.254
- arping: libnet_init(LIBNET_LINK, <null>): libnet_open_link(): open(): /dev/net: Is a directory
- [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -c 10 3 10.9.10.254
- arping: Too many args on command line. Expected at most one.
- [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -r 3 10.9.10.254
- arping: Too many args on command line. Expected at most one.
- [root@13527805-a87c-42cc-8932-19eb373ff604 ~]# arping -r 10.9.10.254
- arping: libnet_init(LIBNET_LINK, <null>): libnet_open_link(): open():
- /dev/net: Is a directory
- [root@13527805-a87c-42cc-8932-19eb373ff604 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement