Forum Discussion

Ayan1987's avatar
Ayan1987
Level 3
5 years ago

Unable to remove one attributes in VCS 7.4

group Network (
SystemList = { teemm01 = 0, teemm02 = 1, teemm03 = 2, teemm04 = 3 }
Parallel = 1
AutoStartList = { teemm01, teemm02, teemm03, teemm04 }
)

MultiNICA MM_ONM_NIC (
Device @teemm01 = { bond0 = "10.86.197.148" }
Device @teemm02 = { bond0 = "10.86.197.149" }
Device @teemm03 = { bond0 = "10.86.197.150" }
Device @teemm04 = { bond0 = "10.86.197.167" }
NetMask = "255.255.255.192"
IPv4AddrOptions = "broadcast 10.86.197.191"
IPv4RouteOptions = "default via 10.86.197.129"
NetworkHosts = { "10.86.197.149" }
)

MultiNICA MM_TRF_NIC (
Device @teemm01 = { bond1 = "10.86.197.53" }
Device @teemm02 = { bond1 = "10.86.197.54" }
Device @teemm03 = { bond1 = "10.86.197.55" }
Device @teemm04 = { bond1 = "10.86.197.64" }
NetMask = "255.255.255.128"
Options = "broadcast 10.86.197.127"
NetworkHosts = { "10.86.197.54" }

 

I want to remove IPv4AddrOptions from MM_ONM_NIC how can I do so.

I am able to add but not able to delete to add I ran this command:

hares -modify MM_ONM_NIC IPv4AddrOptions "broadcast 10.86.197.191"

Need help please

2 Replies

  • There are at least three ways to delete the attribute.

    1. use VCS gui (VOM)

    2. edit /etc/VRTSvcs/conf/config/maincf to remove the lines below

    IPv4AddrOptions = "broadcast 10.86.197.191"
    IPv4RouteOptions = "default via 10.86.197.129"

    save the file, then restart had (maje sure that had on the server where the file main.cf is edited gets restarted first (or you can copythe maincf file to each machine in the cluster and restart had or any server).

    3. run the commands below

    haconf -makerw

    hares -modify MM_ONM_NIC  IPv4AddrOptions -delete

    haconf -makero -dump