pvcreate -f /dev/rdsk/cxtxdx mkdir /dev/vg_name /dev/vg_name/group c 64 0x010000 vgcreate /dev/vg_name /dev/dsk/dxtxdx /dev/dsk/cxtxdx vgchange -a y vg_name lvcreate -L xxx vg_name vgchange -a n vg_name vgexport -p -s -m /tmp/vg_name.map vg_name scp /tmp/vg_name.map node2:/tmp
mkdir /dev/vg_name mknod /dev/vg_name/group c 64 0xXX0000 vgimport -s -m /tmp/vg_name.map vg_name
cmquerycl -C /etc/cmcluster/cmclconf -n node1 -n node2 vi /etc/cmcluster/conf_ascii_file cmcheckconf -C /etc/cmcluster/conf_ascii_file vgchange -a y vg_name cmapplyconf -v -C /etc/cmcluster/conf_ascii_file vgchange -a n vg_name cmruncl cmviewcl -v cmhaltcl
mkdir /etc/cmcluster/pkg_name cd /etc/cmcluster/pkg_name cmmakepkg -p pgk_name.conf cmmakepkg -s pkg_name.cntl vi pkg_name.conf vi pkg_name.cntl scp -r /etc/cmcluster/pkg_name node2:/etc/cmcluster cmcheckconf -C conf -P pkg_name.pkg cmapplyconf -C conf -P pkg_name.pkg cmruncl cmviewcl -v
tail -f /etc/cmcluster/pgk_name/pkg_name.cntl.log tail -f var/adm/syslog/syslog.log
cd x86_x86-64/[DISTRIBUTION]/Serviceguard/IA32 rpm -ivh qs-A.04.00.04-0.xxxx.i386.rpm
vi /usr/local/qs/conf/qs_authfile
mkdir -p /var/log/qs
vi /etc/inittab
telinit q
ps aux | grep qs
netstat -an --inet
pkill qsc
cmgetconf -c cluster-name /etc/cmcluster/tmp.cluster.config
cmquerycl -v -C /etc/cmcluster/cluster.config -c cluster-name -n nodeA -n nodeB -n nodeC -q quorumsvr
cmcheckconf -v -C /etc/cmcluster/cluster.config cmapplyconf -v -C /etc/cmcluster/cluster.config
cmviewcl [-v] cmrunnode
mkdir /etc/cmcluster/[PackageName] chmod o+r /etc/cmcluster/[PackageName] chmod o+x /etc/cmcluster/[PackageName]
cd /etc/cmcluster/config cmmakepkg -p [PackageName].conf
vi [PackageName].conf
13 PACKAGE_NAME PackageName 96 NODE_NAME Node1 97 NODE_NAME Node2 143 RUN_SCRIPT /etc/cmcluster/PackageName/PackageName.cntl 145 HALT_SCRIPT /etc/cmcluster/PackageName/PackageName.cntl
scp /etc/cmcluster/config/[PackageName].conf NodeX:/etc/cmcluster/config
cd /etc/cmcluster/[PackageName] ln -s /ccf/local/bin/PKG.cntl PackageName.cntl ln -s /ccf/local/bin/main.sh /etc/cmcluster/PackageName/PackageName_main.sh
vi PackageName.cntl.env
# CCF site specific environment for PackageName CCF_Rechner=$(/usr/bin/uname -n) CCF_Comment="Data Center Integration Package" CCF_Startup="/etc/cmcluster/${CCF_Package}/${CCF_Package}_main.sh" IP0="10.128.198.196" ; SUBNET0="10.128.198.0" # [PackageName].ccf-it.de VG0="/dev/VG_Package" LV0="/dev/VG_Package/lvol1"; FS0="/test/PackageName"; FS_MOUNT_OPT0=""; FS_TYPE0="vxfs" LV1="/dev/VG_Package/lvol2"; FS1="/test/PackageName/share"; FS_MOUNT_OPT1=""; FS_TYPE1="vxfs" LV2="/dev/VG_Package/lvol3"; FS2="/test/PackageName/oradata1"; FS_MOUNT_OPT2=""; FS_TYPE2="vxfs" LV3="/dev/VG_Package/lvol4"; FS3="/test/PackageName/redo1"; FS_MOUNT_OPT3=""; FS_TYPE3="vxfs"
cd /etc/cmcluster/PackageName scp PackageName.cntl.env Node1:`pwd`
cd /etc/cmcluster/config cmcheckconf -v -P PackageName.conf Checking existing configuration ... Done Gathering configuration information ... Done Parsing package file: [PackageName].conf. Package [PackageName] already exists. It will be modified. Maximum configured packages parameter is 100. Configuring 16 package(s). 84 package(s) can be added to this cluster. 199 access policies can be added to this cluster. Modifying the package configuration for package [PackageName]. Verification completed with no errors found. Use the cmapplyconf command to apply the configuration.
cmapplyconf -v -P [PackageName].conf Checking existing configuration ... Done Gathering configuration information ... Done Parsing package file: [PackageName].conf. Attempting to add package [PackageName]. Maximum configured packages parameter is 100. Configuring 16 package(s). 84 package(s) can be added to this cluster. 199 access policies can be added to this cluster. Modify the package configuration ([y]/n)? y Adding the package configuration for package [PackageName]. Completed the cluster update.
cd /etc/cmcluster/pkgname cmdeleteconf -p pkgname vgexport <vgname> #(on all nodes in the cluster)
cmgetconf
Das Originaldokument ist zu finden unter http://ccf-consulting.de/tiki-5.0/tiki-index.php?page=MCServiceGuardCluster