cancel
Showing results for 
Search instead for 
Did you mean: 

How I can add Virtual ip in a cluster service group

solom
Level 4

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

Thanks 

Regards

2 ACCEPTED SOLUTIONS

Accepted Solutions

mikebounds
Level 6
Partner Accredited

 

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

 

View solution in original post

Paresh_Bafna
Level 4
Employee

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

 

 

 

View solution in original post

6 REPLIES 6

mikebounds
Level 6
Partner Accredited

 

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

 

Paresh_Bafna
Level 4
Employee

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

 

 

 

solom
Level 4

Thank you very much

AnnuB
Level 2

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
Level 5

@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

AnnuB
Level 2

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