|
Sign-In Sources Mailing lists Downloads Live collector Documentation Admins Contacts Welcome |
||||||||||||||||||||||||||||||||||||
|
Documentation index Nodeware installationPackageDownload the lastest 'opensvc' package available for your operating system of choice from http://repo.opensvc.com and install it. Depending on the operating system, and operating system version, you might need to satisfy dependencies using packages provided on this website. The package post-installation steps are handled by the /opt/opensvc/bin/postinstall script. This script can be safely executed on a node where opensvc is already installed. FilesThe package installs the following directory tree: /opt/opensvc/ /opt/opensvc/etc /opt/opensvc/tmp /opt/opensvc/bin /opt/opensvc/bin/pkg /opt/opensvc/bin/cron /opt/opensvc/var /opt/opensvc/var/sync /opt/opensvc/var/lock /opt/opensvc/usr /opt/opensvc/usr/share /opt/opensvc/usr/share/doc /opt/opensvc/lib /opt/opensvc/log Cron jobsThe package installs the following cron jobs, in (by order of preference), /etc/cron.d/opensvc, /var/spool/cron/crontabs/root, /var/spool/cron/root :
Linux and HP-UX also have a helper to gather statistics:
KeysIf the root account has no ssh key, a 1024 bits dsa key is generated by the package post-install. Production node keys must be trusted on all cluster nodes (PRD and DRP), whereas the keys of disaster recovery servers must not be trusted by production nodes. This setup is used for rsync file transfers and remote command execution. Set host mode
The valid host mode values are PRD, DEV, TMP. The setting is stored in /opt/opensvc/etc/node.conf. On a fresh install this file does not exist. Note that the /opt/opensvc/var/host_mode file is deprecated. Upgrading the new OpenSVC package on a system with a /opt/opensvc/var/host_mode file will move the value to /opt/opensvc/etc/node.conf.The
Set schedulesSchedules are defined in
A typical schedule definition would look like:
A reference node.conf file can be found on the node at /opt/opensvc/usr/share/doc/node.confThe Configuration for collector usageBy default, the collector is contacted by the node using the generic name To override the default collector's xmlrpc urls, you can set them in
This override is recommended for xmlrpc encryption.The collector requires the nodes to provide an authentication token (shared secret) with each request. The token is forged by the collector and stored on the node in
Finally, you can accelerate the node discovery by forcing the execution of opensvc cron jobs after the package installation.
To disable collector communications, use:
HP-UX specificitiesThe python package provided by HP will output garbage on exec because it won't find terminfo at the expected places. To fix that, you have to export TERMINFO=/usr/share/lib/terminfo from /etc/profile The HP-UX base system does not provide tools to handle scsi persistent reservations. You have to install the scu tool if you want to activate this feature. Linux LVM2 specificitiesOpensvc controls volume group activation and desactivation. Most Linux distributions activate all visible volume groups at boot, some even re-activate them upon de-activation events. These mecanisms can be disabled using the following setup. It also provides another protection against unwanted volume group activation from a secondary cluster node. This setup tells LVM2 commands to activate only the objects tagged with the hostname. Opensvc makes sure the tags are set on start and unset on stop. Opensvc also purges all tags before adding the one it needs to activate a volume group, so opensvc can satisfy a start request on a service uncleanly shut down. /etc/lvm/lvm.confAdd the following root-level configuration node tags {
hosttags = 1
local {}
}And add the 'local' tag to all local volume groups. For example: vgchange --addtag local rootvg Finally you need to rebuild the initrd/initramfs to prevent shared vg activation at boot. /etc/lvm/lvm_{node}.confCreate this file, {node} being the output of uname -n and add the following configuration. activation { volume_list = ["@local", "@{node}"] } |
|||||||||||||||||||||||||||||||||||||
|
Copyright © 2010 OpenSVC - Powered by web2py |
|||||||||||||||||||||||||||||||||||||