05-23-2013 01:04 AM
05-23-2013 01:08 AM
hares -add public-ip IP sg_name hares -modify public-ip Device eth0 hares -modify public-ip Address "192.168.1.2" hares -modify public-ip NetMask "255.255.255.0" hares -modify public-ip Enabled 1
05-23-2013 01:15 AM
Hi,
In addition, you should also add a NIC resource to monitor physical interface and a dependency between NIC and IP resource.
hares -add public-nic NIC sg_name hares -modify public-nic Device eth0 hares -modify public-nic NetworkHosts "192.168.1.1" hares -modify public-nic Enabled 1 hares -link public-ip public-nic
05-23-2013 01:08 AM
hares -add public-ip IP sg_name hares -modify public-ip Device eth0 hares -modify public-ip Address "192.168.1.2" hares -modify public-ip NetMask "255.255.255.0" hares -modify public-ip Enabled 1
05-23-2013 01:15 AM
Hi,
In addition, you should also add a NIC resource to monitor physical interface and a dependency between NIC and IP resource.
hares -add public-nic NIC sg_name hares -modify public-nic Device eth0 hares -modify public-nic NetworkHosts "192.168.1.1" hares -modify public-nic Enabled 1 hares -link public-ip public-nic
05-25-2013 04:59 AM
Thank you very much
06-19-2013 09:10 PM
Hi,
I have a follow on question. I have to create 2 Virtual-IPs on the same NIC (eth0). How do I add the create the resources and service groups? Can I add the same NIC to 2 service groups?
We then have 2 applications - an Apache server and a custom TCP server (for bulk download) that require 1 Virtual-IP each. We are going to write the agent for our server. How do I create the service groups and link them to the Virtual-IP resources?
Thanks in advance,
Annu.
06-19-2013 09:35 PM
@AnnuB:
Did you try creating NIC resources in a different SG, with possibly a proxy resource in your main SG?
You could also have NIC-SG with a phantom resource and create Online Local Firm/Hard dependency on this with you actual SGs
06-19-2013 11:20 PM
Thanks very much for the prompt response. I have doubt : what's the difference between a proxy resource and using dependencies? As an example, if I want 2 applications to share the same Virtual-IP, which option is better :-
1)put the Virtual-Ip in its own group and then use dependencies from the 2 application service groups
2)Or add a proxy resource in the 2 application service groups to the Virtual-Ip resource?
In general what's the best practice for sharing infrastructure resources like NIC/Virtual-IP/Mount/Voume?. I am still reading up, but can a basic resource like Virtual-IP or MOUNT be part of 2 service groups if both groups require the same?
Thanks,
Annu