?
Solved

Help Setting up ghettoVCBg2 in VMWare

Posted on 2011-05-09
11
Medium Priority
?
1,013 Views
Last Modified: 2012-05-11
Hi all

I am trying to set up this backup script in VMWare, following the instructions here:

http://communities.vmware.com/docs/DOC-9843

I am up to the part titled Configurations - unclear what I need to do/how to do it next?

I have 2 ESXi Servers, with 2VM's each, which I want to backup to an NFS store. NFS store is not here yet but I can test using temp datastore.

Not linux proficient at all, maybe I'm missing something easy?
0
Comment
Question by:hongedit
  • 7
  • 4
11 Comments
 
LVL 124
ID: 35719681
Before we continue, do you have a licensed (paid for license) of VMware ESXi/ESX?
0
 
LVL 1

Author Comment

by:hongedit
ID: 35719773
Yep - Essential (not plus)
0
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 35719777
if you have a licensed version of ESX/ESXi you need to change the variables in nthe script called ghettoVCBg2.pl.

you can either do this before transferring to the vMA applicance or on the appliance.

this is the section you need to change and save

 
#############################
###  USER CONFIGURATIONS  ###
#############################

#################
# EMAIL CONF
#################

my $SEND_MAIL = "no";
my $EMAIL_HOST = "emailserver";
my $EMAIL_DOMAIN = "localhost.localdomain";
my $EMAIL_TO = 'William Lam <william@primp-industries.com.com>';
my $EMAIL_FROM = 'ghettoVCBg2 <ghettoVCBg2@primp-industries.com.com>';

###############################################################
# NAME OF THE BACKUP DATASTORE
###############################################################

my $VM_BACKUP_DATASTORE = "esx4-1-local-storage-1";

###############################################################
# BACKUP DIRECTORY NAME ON DATASTORE
###############################################################

my $VM_BACKUP_DIRECTORY = "WILLIAM_BACKUPS"; 

####################################################
# Number of backups for a given VM before deleting
####################################################

my $VM_BACKUP_ROTATION_COUNT = "3";

###################################################

Open in new window

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 124
ID: 35719787
okay, so you need to edit the file as in my last post.
0
 
LVL 1

Author Comment

by:hongedit
ID: 35719826
I have already transferred to the vMA, so how do I edit that file?
0
 
LVL 124
ID: 35719838
use nano or vi

0
 
LVL 124
ID: 35719842
you type nano filename

or

vi filename
0
 
LVL 1

Author Comment

by:hongedit
ID: 35719897
Thanks!

Ok, so:

o If I have a Datastore called "Test", I can just put:

my $VM_BACKUP_DATASTORE = "Test";

o What would I put for a NFS, say 192.168.23.100 with a NFS share called "Backups"
o What is the difference between zerothick, eagerzeroedthick, thin and 2gbsparse?
o Difference between buslogic/lsilogic?
o Should I tick Snapshot Memory and/or Quiesce?
0
 
LVL 124
ID: 35719973
1. You will have already mounted your NFS server from ESXi/ESX, and give it a friendly datastore name, so you would use the friendly datastore name for the NFS server.

2. these are output formats used by the backup script

ZEROEDTHICK - vmdk is same size as backup, but unused space is zeroed.
EAGERZEROEDTHICK - vmdk is same size as backup, but unused space is zeroed. (more)
2GB SPARSE - splits the backup into 2gb chuncks
THIN format - only the data in use is backedup (similar to thin provision disks)

3. buslogic and lsilogic are the storage controllers used in the virtual machine.

4. if you are using VMware Tools, I would select Quiesce
0
 
LVL 1

Author Comment

by:hongedit
ID: 35720038
Thank you.

1. Ah I see. I mound the NFS as a Datastore and it is treated as such from then on. Gotcha.
2. Great explanation. I guess THIN is the best here, less space used!
3. I'll stick with default.
4. See below

How do i install VMWare tools onto the vMA? I tried to do it like a Windows box from the console but nothing happened :D

Also, the document does not specify how to do a Restore?
0
 
LVL 124
ID: 35720096
No need to install Vmware Tools on vMA

ghettovcb and later are backup scripts that backup only to a datastore.

As you are backing up to an NFS mounted datastore which is available to ESX, you can either in the event of restore, add those VMs to the inventory, by right clicking VMX, and selecting add to inventory, and run from NFS.

or, using the datastore browser, copy and paste back to the ESX server local drives, and then VMs to the inventory, by right clicking VMX, and selecting add to inventory, and run from NFS.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question