- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- modular package config
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
06-01-2011 05:29 AM
06-01-2011 05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 06:07 AM - last edited on 07-06-2011 10:50 AM by Kevin_Paul
06-01-2011 06:07 AM - last edited on 07-06-2011 10:50 AM by Kevin_Paul
Re: modular package config
Shalom,
You certainly provide a lot of information to go on. Nothing about the OS, hardware or even SG version.
http://h21007.www2.hp.com/portal/download/files/unprot/hpux/serviceguardciconfig.pdf
http://h30499.www3.hp.com/t5/System-Administration/Example-MC-Serviceguard-script-for-IPLANET/m-p/3380768#M197490
Note that current versions of SG do provide you the ability to impact package start up order and set up dependencies.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 06:17 AM
06-01-2011 06:17 AM
Re: modular package config
I am experienced in legacy configuration.
Now I want to learn modular package configuration.
I could see lot of modular package configuration in cmcluster/modules/sg
I am much confused here.
I appreciate expert help here.
Guarantied rewards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 02:36 PM
06-01-2011 02:36 PM
Solutioncmmakepkg -p [-n package_name] [output_file_name]
If you wish to include special toolkit or Metrocluster modules, you must specify them using the -m option during cmmakepkg. Note that you must follow toolkit/metrocluster manual instructions for implementing them. Some may not actually function (such as the HA-NFS SNFS and CNFS parameters).
The resulting outfile contains parameters similar to those you would see and customize in both the legacy package configuration file and package control script.
You edit/customize these parameters (including VG, lvol and mount points and mount options etc) in the modular config file.
Any special external script calls from the legacy customer_defined_run_cmds can be identified in the modular config file using one or more external_script parameter. You then have to copy a external_script template and customize it with the application run/stop commands.
cmapplyconf loads your customized parameters into the cluster binary file, and any node authorized to run the package uses the standard package start/stop functionality in /etc/cmcluster/scripts/sg* to operate the package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 12:09 AM
06-02-2011 12:09 AM
Re: modular package config
I am in the impression that need to mention cmmakepge -m sg/failover -n pk1 pkg1.conf for a normal failover packgae.
But in the failover modules I coudn't see vg,lvol, mount points options. So no need to specify -m option.
My final conclusion
to create modular failover package
cmmakepkg -p -n pk1 $SGCONF/pkg1/pkg1.conf
edit pkg1.conf and apply
Please clarify.
Please explain in which senario need to mention modules (-m option) like filesystem,basic, etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 12:10 AM
06-02-2011 12:10 AM
Re: modular package config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 01:37 AM
06-02-2011 01:37 AM
Re: modular package config
you can specify the module "sg/all" , which includes all of the attributes / parameters you can define in SG. It's useful, when you first started using modular style packages and don't know, in which module is the legacy attribute located. You can also look in the directory /etc/cmcluster/modules/sg to see all the available modules and what attributes/parameters are in each module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 01:41 AM
06-02-2011 01:41 AM
Re: modular package config
# grep attribute_name filesystem
attribute_name concurrent_fsck_operations
attribute_name concurrent_mount_and_umount_operations
attribute_name fs_mount_retry_count
attribute_name fs_umount_retry_count
attribute_name fs_name
attribute_name fs_directory
attribute_name fs_type
attribute_name fs_mount_opt
attribute_name fs_umount_opt
attribute_name fs_fsck_opt
so you can compare these parameters with old legacy style packages and decide, which module/modules you need and which you don't need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 04:27 AM
06-02-2011 04:27 AM
Re: modular package config
If you drop the -p, it _will_ create a modular package configuration file with the following modules automatically loaded:
sg/basic
sg/all
sg/failover
sg/priority
sg/dependency
sg/weight
sg/monitor_subnet
sg/package_ip
sg/service
sg/resource
sg/volume_group
sg/filesystem
sg/pev
sg/external_pre
sg/external
sg/acp
I used: 'cmmakepkg -n testpkg testpkg.conf'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 06:58 AM
06-02-2011 06:58 AM
Re: modular package config
cmmakepkg -m sg/all -n pkg1 /etc/cmcluster/pkk1/pkg1.conf command will create pkg1.conf file and edit the the file
one doubt do I need to comment attribute_name
eg:
#attribute_name node_name
node_name node1
node_name node2
#attribute_name auto_run
auto_run yes
Is the above is correct or no need to comment attribute_name line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 09:40 AM
06-02-2011 09:40 AM
Re: modular package config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2011 03:32 AM
06-03-2011 03:32 AM
Re: modular package config
package_name pkg-nu-2
module_name sg/all
module_version 1
package_type FAILOVER
run_script_timeout 340
halt_script_timeout 340
successor_halt_timeout NO_TIMEOUT
Please can you provide some sample configuration.