vcs commands

Download Vcs Commands

If you can't read please download the document

Upload: anoopts123

Post on 12-Jan-2016

227 views

Category:

Documents


2 download

DESCRIPTION

vcs

TRANSCRIPT

Veritas Cluster Server (VCS) Cheat sheetOctober 19, 2007 by sun4uCreating Service Group# haconf -makerw To open Cluster configuration#hagrp -add To create service group#hagrp -modify SystemList 1 2To Allow service group to run in two system with priority 1 to system1#hagrp -modify AutoStartList To allow system 1 to start specified service group.#hagrp -display To verify service group can auto start andit is a failover service group.#haconf -dump -makero To save cluster and make configurationfile main.cf read only.#view /etc/VRTSvcs/conf/config/main.cfTo view configuration file for changesAdding Resources to a Service Group Nic#hares -makerw#hares -add NIC #hares -modify Critical 0 (zero)#hares -modify Device #hares -modify Enabled 1#hares -online -sys #hares -display #haconf -dump#view /etc/VRTSvcs/conf/config/main.cfAdding Resources to a Service Group IP#hares -add IP #hares -modify Critical 0 (zero)#hares -modify Device #hares -modify Address #hares -modify Enabled 1#hares -online -sys #hares -display #ifconfig -a#haconf -dump#view /etc/VRTSvcs/conf/config/main.cfAdding Resources to a Service Group Disk Group#hares -add DiskGroup #hares -modify < nameDG1> Critical 0 (zero)#hares -modify < nameDG1> DiskGroup < nameDG1>#hares -modify < nameDG1> Enabled 1#hares -online < nameDG1> -sys #hares -display < nameDG1 >#vxprint -g #haconf -dump#view /etc/VRTSvcs/conf/config/main.cfAdding Resources to a Service Group Disk Volume#hares -add Volume #hares -modify < nameVOL1> Critical 0 (zero)#hares -modify < nameVOL1> Volume < nameVOL1>#hares -modify < nameVOL1> DiskGroup < nameDG1>#hares -modify < nameVOL1> Enabled 1#hares -online < nameVOL1> -sys #hares -display < nameVOL1 >#vxprint -g #haconf -dump#view /etc/VRTSvcs/conf/config/main.cfAdding Resources to a Service Group Mount#hares -add Mount #hares -modify < nameMount1> Critical 0 (zero)#hares -modify < nameMount1> BlockDevice < path_nameVOL1>#hares -modify < nameMount1> MountPoint < mount_point>#hares -modify FSType vxfs#hares -modify FsckOpt %#hares -modify < nameMOunt1> Enabled 1#hares -online < nameMount1> -sys #hares -display < nameMount1>#mount#haconf -dump#view /etc/VRTSvcs/conf/config/main.cfAdding Resources to a Service Group Process Resource#hares -add Process #hares -modify < nameProcess1> Critical 0 (zero)#hares -modify < nameProcess1> Pathname < /bin/sh>#hares -modify < nameProcess1> Arguments < /name1/loopy spacename 1>#hares -modify < nameProcess1> Enabled 1#hares -online < nameProcess1> -sys #hares -display < nameProcess1 >#haconf -dump#view /etc/VRTSvcs/conf/config/main.cfLinking Resources in Service Group#hares -link #hares -link #hares -link #hares -link #hares -link #hares -dep#hares -dump#view /etc/VRTSvcs/conf/config/main.cfTesting the Service Group#hagrp -switch -to #hastatus -system#hagrp -switch -to #hastatus -summarySetting Resources to Critical#hares -modify Critical 1#hares -modify Critical 1#hares -modify Critical 1#hares -modify Critical 1#hares -modify Critical 1#hares -modify Critical 1#haconf -dump#view /etc/VRTSvcs/conf/config/main.cf#haconf -dump -makero