Dear experts,
I am using the netapp 6070 as the storage and I want to design a backup solution using the netapp snapshot techolgy.
Is there some best practice documents?
THanks.
You can use VCB for backing up - maybe netapp has some solutions for you.
here's what we do. script doesn't work for you, but you can take this as a hint.
perhaps it helps.
regards
uli
#!/bin/bash
IFS=$'\n:;'
esx="esx1.elkb.de;esx2.elkb.de;esx3.elkb.de;esx4.elkb.de"
x="0"
pfad="/opt/esxnfs/admintools/backup/"
declare -a snapshot
date=`date +%F`
width="70"
space=" "
echo -e "##### ESX Backup start #####" > "$pfad"esxbackup.log
for host in $esx
do
echo -e "\n##### $host #####" >> "$pfad"esxbackup.log
for vm in `ssh root@"$host" vmware-cmd -l`
do
evm="$vm"
while [ "${#evm}" -lt "$width" ]; do
evm=`echo $evm$space`
done
hassnap=`ssh root@"$host" vmware-cmd "$vm" hassnapshot -q`
if [ "$hassnap" == "" ]
then
ret=`ssh root@"$host" vmware-cmd "$vm" createsnapshot backup "$date" quiesce -q`
if [ "$ret" == "1" ]
then
echo -e `date +%T`" $evm Snapshot erstellt." >> "$pfad"esxbackup.log
snapshot[x]="$host $vm"
let "x += 1"
else
echo -e `date +%T`" $evm FEHLER beim Snapshot erstellen." >> "$pfad"esxbackup.log
fi
else
echo -e `date +%T`" $evm KEIN BACKUP !! Snapshot vorhanden." >> "$pfad"esxbackup.log
fi
done
done
echo -e "\n##### Snapshot c3po #####\n" >> "$pfad"esxbackup.log
rsh -l vmuser:pass c3po.elkb.de snap delete esxnfs old7
rsh -l vmuser:pass c3po.elkb.de snap rename esxnfs old6 old7
rsh -l vmuser:pass c3po.elkb.de snap rename esxnfs old5 old6
rsh -l vmuser:pass c3po.elkb.de snap rename esxnfs old4 old5
rsh -l vmuser:pass c3po.elkb.de snap rename esxnfs old3 old4
rsh -l vmuser:pass c3po.elkb.de snap rename esxnfs old2 old3
rsh -l vmuser:pass c3po.elkb.de snap rename esxnfs old1 old2
rsh -l vmuser:pass c3po.elkb.de snap rename esxnfs new old1
rsh -l vmuser:pass c3po.elkb.de snap create esxnfs new
rsh -l vmuser:pass c3po.elkb.de snap list -q esxnfs >> "$pfad"esxbackup.log
echo -e "\n##### Snapmirror r2d2 #####\n" >> "$pfad"esxbackup.log
rsh -l vmuser:pass r2d2.elkb.de snapmirror update -S c3po:esxnfs r2d2:esxnfs_mirr
rsh -l vmuser:pass r2d2.elkb.de snapmirror status >> "$pfad"esxbackup.log
echo -e "\n##### VM Snapshots entfernen #####\n" >> "$pfad"esxbackup.log
for i in "${snapshot[@]}"
do
shost=`echo $i | awk '{print $1}'`
svm=`echo $i | awk '{print $2}'`
ret=`ssh root@"$shost" vmware-cmd "$svm" removesnapshots -q`
while [ "${#svm}" -lt "$width" ]; do
svm=`echo $svm$space`
done
if [ "$ret" == "1" ]
then
echo -e `date +%T`" $shost $svm Snapshot entfernt." >> "$pfad"esxbackup.log
else
echo -e `date +%T`" $shost $svm FEHLER beim Snapshot entfernen." >> "$pfad"esxbackup.log
fi
done
/opt/esxnfs/admintools/backup/maillogs.sh
You shouldn't be doing things in the service console as it will be going away - at least in ESX 3i. I would recommend using a backup proxy server with VMware Consolidated Backup and using a 3rd party app if necessary.
And where do i run my hp insight agents then ?
I want my console !!
This GUI stuff is nice for daily work, but if something goes wrong, the console is my friend.
Perhaps they're doing this 32MB Hypervisor thing and theres no room left for a console ?!?
What if my backup proxy crashes ? I've no backup at all, if my esx crashes, i've some other Problems.
Greetings
isi
haha ... yeah, I think for you, the console might be good, but I think it's a source of problems for others as it's not linux. So, your HP insight agents will be available as they'll have their hooks in. The backup proxy is a separate box that has VCB installed. If your ESX box crashes, it would be a shame. You can still make backups via the VCB.