Veritas Cluster Server (VCS): Adding a New Application
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

February 1st, 2007 at 4:21 pm
That’s eggsactly the right way to do it
February 2nd, 2007 at 9:23 am
Thanks, and it’s all done via a shell.