Cisco Cisco WebEx Social for Mobile Manual De Manutenção

Página de 12
 
6
Cisco WebEx Social Disaster Recovery Using Snapshots, Release 3.0
Rev. 02 (10/31/12)
  Configuring the Backup
Replace wxs_backup with your datastore name (case sensitive) if you used a different name.
Step 6
Edit ghettoVCB.sh to match your environment and preferences:
a.
Specify the local path to the vm-backup directory you created:
VM_BACKUP_VOLUME=/vmfs/volumes/wxs_backup/vm-backup
Replace wxs_backup with your datastore name (case sensitive) if you used a different name.
b.
Ensure “Quiesce guest file system” is disabled: 
VM_SNAPSHOT_QUIESCE=0
c.
Set EMAIL_LOG to 1 to receive the script output on your email and then configure your email 
preferences:
EMAIL_LOG=1
EMAIL_SERVER=smtp.example.com
EMAIL_FROM=wxs-backup@example.com
EMAIL_TO=wxs-admin@example.com
Create Cron Jobs
Configure cron to run the backups:
Step 1
On each ESXi host create a cron job for each virtual machine of these types: JSON Store, Analytics 
Store, RDBMS Store, or Director.
a.
Create a copy of your root crontab (
/var/spool/cron/crontabs/root
):
cp /var/spool/cron/crontabs/root /var/spool/cron/crontabs/root.b
b.
For each VM, add a line like this to the copy of the root crontab (root.b). Use the following syntax:
00 03 * * * /vmfs/volumes/wxs_backup/scripts/ghettoVCB.sh -m "VM Name" -w 
/tmp/workdir.N > /dev/null 2>&1
Where:
00 03 * * * (the first five fields) are the time and date on which to start the cron job. See the
 
crontab(5)
 man page for details on how to set these up. These fields need to be the same for 
all VMs.
VM Name is the VM name exactly as it appears in ESXi, case sensitive.
N is a unique number that helps create a dedicated working directory for each VM.
Note
Use :w! or :x! in vi when saving the file to circumvent the read-only protection of root.b.
For example, if your VMs are named JSON Store, Analytics Store, RDBMS Store, and Director, you 
need to add these four cron lines:
00 03 * * * /vmfs/volumes/backup/scripts/ghettoVCB.sh -m "JSON Store" -w 
/tmp/workdir.1 > /dev/null 2>&1
00 03 * * * /vmfs/volumes/backup/scripts/ghettoVCB.sh -m "Analytics Store" -w 
/tmp/workdir.2 > /dev/null 2>&1