- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems to upload package
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 07:44 PM
11-09-2005 07:44 PM
Problems to upload package
When I try to start a package on a cluster with 2 nodes HP-UX 11.11 I get this error from log:
/etc/cmcluster/labgen/labgen.sh[180]: -g: not found.
I investigated a little bit and seems to be an issue with CVM disk group activation parameter.
I activate volume group in non-exclusive mode (vgchange -a y) and CVM disk group in exclusivewrite mode (vxdg -g \$DiskGroup set activation=exclusivewrite).
Are these options compatible?
Thanks in advance,
Carles
PS: I attached script to load package
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 07:53 PM
11-09-2005 07:53 PM
Re: Problems to upload package
what there is write in line 180 of
/etc/cmcluster/labgen/labgen.sh ?
DM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 08:01 PM
11-09-2005 08:01 PM
Re: Problems to upload package
Our you working with LVM or VxVM (veritas volume Manager?)
Is also an activation of the LVM volumegroup?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 08:02 PM
11-09-2005 08:02 PM
Re: Problems to upload package
One volume group you activate with vgchange while other with vxdg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 08:17 PM
11-09-2005 08:17 PM
Re: Problems to upload package
Examine the file closely.
For the record, why are you activating LVM groups in non-exclusive mode? This is not the correct method of activating shared VG's
I also note that you are using package scripts for Serviceguard 11.13 which is no longer supported, you should consider upgrading to a supported version of Serviceguard if you have not already done so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 10:37 PM
11-09-2005 10:37 PM
Re: Problems to upload package
Thanks to all for your comments.
We use VxVM only and we activate LVM groups in non-exclusive mode as we can't activate them with usual command "vgchange -a e", even manually.
Should I modify something at cluster configuration level?
Thanks!
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 12:42 AM
11-10-2005 12:42 AM
Re: Problems to upload package
The VGCHANGE parameters permissible are:
# VGCHANGE="vgchange -a e -q n"
# VGCHANGE="vgchange -a e -q n -s"
# VGCHANGE="vgchange -a e" # Default
Your script shows this:
VGCHANGE="vgchange -a y" <<-- NOT SUPPORTED
Serviceguard requires LVM VGs to be activated in "exclusive" mode to protect data.
'vgdisplay' reports the activation mode in the Status field. (If you don't see "exclusive", the VG activates in normal mode)
The script also shows that this VG is being activated:
VG[0]="/dev/vglabccs"
It also lists no VxVM disk groups or CVM shared disk groups:
#CVM_DG[0]=""
#VXVM_DG[0]=""
The default CVM_ACTIVATION_CMD line looks like:
CVM_ACTIVATION_CMD="vxdg -g \$DiskGroup set activation=exclusivewrite"
This is the same as the line in the script you provided, so it should be safe.
I suggest that you create a new template file: "cmmakepkg -s cntl" and diff it with your script, to see if any functions in the script were modified. They should not be (other than customer_defined_run_cmds and ..halt_cmds)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 01:37 AM
11-10-2005 01:37 AM
Re: Problems to upload package
Thanks for your message.
I generated new template file and there're no differences beetwen my script and generated template.
BTW, I checked cluster.conf file and all used volumes by running packages are defined there:
[...]
# List of cluster aware LVM Volume Groups. These volume groups will
# be used by package applications via the vgchange -a e command.
# Neither CVM or VxVM Disk Groups should be used here.
# For example:
# VOLUME_GROUP /dev/vgdatabase
# VOLUME_GROUP /dev/vg02
VOLUME_GROUP /dev/vgin1
VOLUME_GROUP /dev/vgin2
VOLUME_GROUP /dev/vgfa2
VOLUME_GROUP /dev/vgfa1
VOLUME_GROUP /dev/vgrman
VOLUME_GROUP /dev/vglab
Should I define volume used by my new package labgen? I case I do, how should I do the update?
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 12:27 PM
11-10-2005 12:27 PM
Re: Problems to upload package
vgchange -c y vg
You can test your control script by doing:
cd /etc/cmcluster/labgen
sh -n labgen.sh
As I mentioned earlier, SG 11.13 is out of suport, and you should look at updating to a supported version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2005 01:19 AM
11-11-2005 01:19 AM
Re: Problems to upload package
# VXVOL="vxvol -g \$DiskGroup -o bg startall" and comment out the default.
It is commented out, so I'm surprised the script rejects it.
As Melvyn stated, use 'sh -n <script name>' to test the script syntax.
I ran it on your script and got this:
$ sh -n suscript
suscript[475]: Syntax error at line 476 : `fi' is not expected.
I created a fresh 11.16 script and ran the command:
# sh -n pkg.cntl
#
Try sh -n on an untouched script. It should pass syntax checks. If not, shell parsing may be modified.... LANG parameter set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 11:18 PM
11-13-2005 11:18 PM
Re: Problems to upload package
Sorry for replay in my reply, but we had some problems in other environments and I wasn't able.
In fact, I executed sh -n script and I got this error:
# sh -n labgen.sh
labgen.sh[440]: VGS: The specified subscript cannot be greater than 1024.
#
I checked file permissions and all is ok:
# ll
total 160
-rw-r----- 1 root sys 12604 Nov 9 22:03 labgen.config
-rwx------ 1 root sys 50766 Nov 10 15:17 labgen.sh
-rw-rw-rw- 1 root root 1026 Nov 10 15:18 labgen.sh.log
#
Thanks in advance for your help!
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 10:28 PM
11-14-2005 10:28 PM
Re: Problems to upload package
I edited cluster.conf file adding volume I use on my new package:
[...]
# List of cluster aware LVM Volume Groups. These volume groups will
# be used by package applications via the vgchange -a e command.
# Neither CVM or VxVM Disk Groups should be used here.
# For example:
# VOLUME_GROUP /dev/vgdatabase
# VOLUME_GROUP /dev/vg02
VOLUME_GROUP /dev/vgin1
VOLUME_GROUP /dev/vgin2
VOLUME_GROUP /dev/vgfa2
VOLUME_GROUP /dev/vgfa1
VOLUME_GROUP /dev/vgrman
VOLUME_GROUP /dev/vglab
VOLUME_GROUP /dev/labcss
Does this change help to sove issue?
If I execute cmapplyconf, will it stop cluster?
Thanks in advance for your help.
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 12:38 AM
11-15-2005 12:38 AM
Re: Problems to upload package
The second step is to either run cmapplyconf on the file, or use "vgchange -c y
The message that you reported earlier: "specified subscript cannot be greater than 1024" - is resolved by a cumulative patch to sh-posix:
11.10: PHCO_28831
11.11: PHCO_33375
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 05:01 AM
11-17-2005 05:01 AM
Re: Problems to upload package
vg is already active and cluster config file already modified too.
Now I've some questions:
- Will cmapplyconf command stop cluster?
- Do you think this is the cause of reported error (/etc/cmcluster/labgen/labgen.sh[180]: -g: not found)?
Thanks in advance for your help.
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2005 12:59 AM
11-18-2005 12:59 AM
Re: Problems to upload package
This is not the cause of the error you are seeing in the package control script.
With the package down, try running the script manually and see what happens:
/etc/cmcluster/
To reverse the startup, use the same command, except with a 'stop' option.