Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

How I can add Virtual ip in a cluster service group

Created: 23 May 2013 • Updated: 28 May 2013 | 6 comments
This issue has been solved. See solution.

How i can add Virtual ip for the groups in cluster service .

Thanks 

Regards

Comments 6 CommentsJump to latest comment

mikebounds's picture
Add an IP resource with attributes for example:
 
   IP public-ip (
                Device = "eth0"
                Address = "192.168.1.2"
                NetMask = "255.255.255.0"
                )
 
in a GUI such as VOM or using command line:
 
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
 
Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

SOLUTION
Paresh Bafna's picture

Hi,

In addition, you should also add a NIC resource to monitor physical interface and a dependency between NIC and IP resource.

   NIC public-nic (
                Device = "eth0"
                NetworkHosts = "192.168.1.1"
                )
 
Using command line:
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

Thanks and Regards,
Paresh Bafna

SOLUTION
AnnuB's picture

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.

arangari's picture

@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

Thanks and Warm Regards,

Amit Rangari

If this post helped you resolving the issue, please mark it as solution. _____________________________________________________________________________

AnnuB's picture

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