- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: inter-package communication
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
Discussions
Discussions
Forums
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
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
тАО05-08-2005 07:07 PM
тАО05-08-2005 07:07 PM
inter-package communication
Is there any way to "stick" two packages together, ie. they always have run on the same node?
I want to share a particular filesystem via NFS and Samba at the same time - on the same node.
Another solution could be to modify the toolkit.sh script to start two HA scripts (hasmb.sh and hanfs.sh), and combine two packages into one this way.
What is the best way?
Krisztian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2005 08:05 PM
тАО05-08-2005 08:05 PM
Re: inter-package communication
In the /etc/cmcluster/
Cheerio,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 02:26 AM
тАО05-09-2005 02:26 AM
Re: inter-package communication
I don't see how that can work. Memory is not a resource that SG shares.
I think you do have to run both packages on the same node. I think the suggestion in the prior post is an excellent solution quality post.
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
тАО05-13-2005 06:11 AM
тАО05-13-2005 06:11 AM
Re: inter-package communication
Extract the "startup" and "shutdown" portion of each toolkit and put them into combined startup and shutdown sections. Make to packages dependant on all of the monitors instead of just the individual ones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 08:42 PM
тАО06-01-2005 08:42 PM
Re: inter-package communication
HA_SERVER=NFS_SAMBA_HOME
HA_SCRIPT=${0%/*}/hanfs.sh
HA_SCRIPT2=${0%/*}/hasmb.sh
ACT=$1
R1=0
R2=0
function test_return
{
if (( $R1 + $R2 != 0 ))
then
echo "ERROR: $(date '+%b %e %T') - Failed to $ACT $HA_SERVER."
exit 1
fi
}
function log_info
{
[...]
}
# Invoke the application toolkit
if [ -x $HA_SCRIPT -a -x $HA_SCRIPT2 ]; then
./$HA_SCRIPT $ACT
R1=$?
./$HA_SCRIPT2 $ACT
R2=$?
test_return
else
log_info
fi
exit 0;
Thanks for all the replies!
Krisztian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 09:22 PM
тАО06-01-2005 09:22 PM
Re: inter-package communication
I had to modify test_return function in pkg.sh at case 50:
50)
echo "ERROR: Function verify_ha_server; Failed to $action HA servers"
if [[ "$action" = "start" ]]
then
if [[ "$HA_APP_SERVER" = "post-IP" ]]
then
remove_ip_address
fi
#ADDED:
action=stop
verify_ha_server stop
#END OF MODS
umount_fs
deactivate_volume_group
deactivate_md
verify_physical_data_replication stop
to_exit=1
else
exit_value=1
fi
;;
I had to add "verify_ha_server stop" because at startup failure of smbd the NFS shares were not unexported, so umount_fs failed. "action=stop" were added to avoid recursion (verify_ha_server calls test_return again, but $action should be "stop" at this time)
Hope this helps those wanting something similar.
Krisztian