Operating System - HP-UX
1836623 Members
1646 Online
110102 Solutions
New Discussion

Re: Help needed with modify sh file

 
SOLVED
Go to solution
Ming.Dynasty
Advisor

Help needed with modify sh file

Hi all

Last friday,i added a package with new vg into the product environment. but today morning i just found there is a mistake in the sh file which i need modify
----------------------------------------------
# VOLUME GROUPS
# Specify which volume groups are used by this package. Uncomment VG[0]=""
# and fill in the name of your first volume group. You must begin with
# VG[0], and increment the list in sequence.
#
# For example, if this package uses your volume groups vg01 and vg02, enter:
# VG[0]=vg01
# VG[1]=vg02
#
# The volume group activation method is defined above. The filesystems
# associated with these volume groups are specified below.
#
#VG[0]=""
VG[0]=vg10
VG[1]=vg20
-----------------------------------------
VG[0]=vg10 is another package vg name which should not shows in this package sh file

my question is

1) need I must delete this entry?
2) if yes,can I modify it online?any stop cluster or package needed? I'm always confused with when I need stop cluster and when not.I'm appreciated if any further help on this.
3) if can modify online, if just run the below commond is ok?
#cmapplyconf -v -C /etc/cmcluster/cluster.ascii -P /etc/cmcluster/pkg_bopr1.sh
1 REPLY 1
melvyn burnard
Honored Contributor
Solution

Re: Help needed with modify sh file

) need I must delete this entry?
YES, change it to read VG[0]=vg20 if this is the vg you need to have there.

2) if yes,can I modify it online?
YES
any stop cluster or package needed?
NO

3) if can modify online, if just run the below commond is ok?
#cmapplyconf -v -C /etc/cmcluster/cluster.ascii -P /etc/cmcluster/pkg_bopr1.sh

No you do not need to do this. You use cmapplyconf with the package configuration file and NOT the control script. Also, as you are only changing the script, this is also not necessary. Just remember to make the SAME change to the script on the other nodes or copy the modified script to the other nodes.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!