random technical thoughts from the Nominet technical team

Veritas Cluster Server (VCS): Adding a New Application

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...
Posted by patrick on Feb 1st, 2007

The easisest way to add a new application into an existing Veritas Cluster Server (VCS) configuration is to edit the file /etc/VRTSvcs/conf/config/main.cf, usually by copying an existing, similar entry. However this requires shutting down the whole VCS environment, which may not always be possible.

The commands below show how to add a new application while VCS is running.

The example application to be added is called omelette. This application is to be added into a new group called omelette_group. This new group will run on the servers plate1 and plate2, with plate1 being its preferred server. omelette_group is dependent upon the existing group egg_group.

haconf –makerw

hagrp -add omelette_group
hagrp -modify omelette_group SystemList plate1 0 plate2 1
hagrp -autoenable omelette_group -sys plate1
hagrp -link omelette_group egg_group online local firm
hagrp -modify omelette_group OnlineRetryLimit 3

hares -add omelette Application omelette_group
hares -modify omelette StartProgram "/opt/scripts/omelette start"
hares -modify omelette StopProgram "/opt/scripts/omelette stop"
hares -modify omelette PidFiles "/var/run/omelette.pid"
hares -modify omelette Enabled 1

haconf -dump –makero

hagrp –online omelette_group –sys plate1

To check it has been added successfully:

cat /etc/VRTSvcs/conf/config/main.cf

hares -display omelette

2 Responses

  1. andyh Says:

    That’s eggsactly the right way to do it

  2. Patrick Says:

    Thanks, and it’s all done via a shell.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Recent Posts

Highest Rated

Categories

Archives

Meta: