Toixland

  • Aumenta dimensione caratteri
  • Dimensione caratteri predefinita
  • Diminuisci dimensione caratteri

The session file

E-mail Stampa PDF

This is the content of the jabs.conf.dist file explained. This file is loaded AFTER all others configuration and initialization files and BEFORE the command line arguments parsing.

 

 

REQUIRED PARAMETERS

 

These parameters are required for JABS to work. You must edit the default values provided in the distribution writing the right for you.

SESSION_NAME="<Unconfigured Session>"

This is the name of the session. It is just for printing purpose but it is required.

SESSION_VMLIST=( displayName1 displayName2 displayName3 )

 The list of VMs to be backed up by this session. This list will be used to filter the available virtual machines display names. You must include in this list all the VMs you want to be backed up by this session regardless on the host where they are. You will launch JABS with this session file on all hosts that potentially can run that VMs. The VMs will be backed up only if they are on the host where JABS runs, skipped if they are on another host. You can use regular expressions to match the display name.

SESSION_DESTINATION_ROOT=/vmfs/volumes/<NFS volume>

 The destination path for the VMs backup files. An ending / is not required. I like to put here a NFS NAS volume mounted through vmkernel (Virtual Center storage manager) but you can use here any mounted file system (in which case you will be using the Service Console connection); by the way, the path MUST be accessible when the script runs. You can also use plugins to specify destinations; even if I never tested this behaviour, I think it must works:

- file://<destination_path>

- scp://<user>@<host>:<destination_path>

SESSION_DESTINATION_FREE=100

 The free space (in Gigabytes) needed in the destination directory. Set to 0 if

- you are using plugins to specify destination path

- if you don't want to check for free space on destination

 SESSION_DESTINATION_UNIQUE=0

If greater than zero, unique destination directory for each virtual machine will be generated.

If equal to zero, the destination directory will be overwritten.

 SESSION_ABORT_IF_SNAPSHOT=1

 If greater than zero, no backup will be done for virtual machines having snaphots.

 SESSION_TEST_MODE=1

 If greater than zero, no backup will be done for any virtual machines. In this case, all checks will be performed as normal sessions but backup statements will only be written into VM logs without being executed. Useful when you want to test your session file without disturbing your VMs.


 

OPTIONAL PARAMETERS

 

These parameters are optional. In most cases you don't need to modify these values from the ones provided with the distribution, but you can, if you want.

SESSION_QUERY="any:"

SESSION_QUERY="powerstate:off"

SESSION_QUERY="powerstate:on"

The query done against the hosted VMs. Default value is all powered on VMs

SESSION_LOG_DIRECTORY=/var/log/vmware/jabs-$$

SESSION_LOG_DIRECTORY=/var/log/vmware/jabs-test

 The directory where to store the logs. Default is a random generated directory. If a static name is used, the log directory will be erased before any operation.

SESSION_LOG_LEVEL=3

 Log level used with vcbMounter statement. You can use 0 to 6.

SESSION_HOST="$VCHOST"

 Server to connect to. Default is $VCHOST from /etc/vmware/backup.conf. I never played with this parameter...

SESSION_CLEARDEST_TRY=3

 Retry the delete of the destination directory (if exists) this number of times (default: 3).

SESSION_CLEARDEST_SLEEP=5m

 Wait this time before retesting the destination (default: 5m). See 'man sleep'.


 

EMAIL CONFIGURATION

 

This function needs sendEmail Perl script to work. It can be downloaded from http://caspian.dotconf.net/menu/Software/SendEmail .You must edit these values if you want logs to be emailed to you.

SENDEMAIL="/usr/local/bin/sendEmail"

The path to the sendEmail script

SESSION_EMAIL_FROM="jabs@"$HOSTNAME

 FROM address

 SESSION_EMAIL_TO="someone@toixland.org"

 TO address

 SESSION_EMAIL_SERVER=""

 The SMTP server IP/FQDN. Leave blank to disable mail. Make sure your SMTP server is configured to allow relaying from the ESX host.

 

Ultimo aggiornamento Mercoledì 18 Aprile 2012 16:10  

Statistiche

Tot. visite contenuti : 416965