VMware
1 ... 14 15 16 17 18 ... 31 Previous Next 453 Replies Last post: Sep 30, 2009 8:55 AM by cincinnerdi   Go to original post

Re: Free ESXi Backup Solution for Windows

225. Dec 1, 2008 12:51 PM in response to: ChrisInTexas
Click to view polysulfide's profile Expert 286 posts since
Oct 25, 2006

Doesn't VCB in LAN mode work with ESXi local storage?

If it was useful, give me credit
Jason White - VCP

Re: Free ESXi Backup Solution for Windows

226. Dec 2, 2008 12:04 PM in response to: lamw
Click to view alusrc's profile Novice 20 posts since
Nov 24, 2008

lamw,

Does ESXi have enough capability to send out an e-mail report of the backup job through some modification of your script? Do you think it would be a worthwhile change? I was thinking that if I could just have the stuff that's normally echoed out to the console also go to an e-mail I could check at a glance to see if anything didn't backup correctly. However, I don't have the bash script skills to even begin to tackle it.

Re: Free ESXi Backup Solution for Windows

227. Dec 2, 2008 12:21 PM in response to: alusrc
Click to view lamw's profile Champion 2,813 posts since
Nov 27, 2007
I highly doubt ESXi would include some sort of mail client, you would need to investigate if it does, I would assume it won't to keep it thin.

In terms of some email report, you could easily add an extra echo line and append to a file and then relying on SSH keys, you could retrieve that file and send it out from your remote host. That might be a better approach instead of trying to do everything within the ESXi console.

Update:
The current busybox distro has "ssmtp is an extremely simple Mail Transfer Agent" but that's not part of "BusyBox v1.2.1 (2008.06.26-17:58+0000)" which is what ESXi is using.

Re: Free ESXi Backup Solution for Windows

228. Dec 3, 2008 11:20 AM in response to: ChrisInTexas
Click to view greenhorn1's profile Novice 26 posts since
Aug 23, 2006

I am trying to get my backups running on the new ESXI systems. I have setup a test environment I have a snap server for storage. I have enabled SSH on the ESXI box. I have installed Putty and WenSCP. I have copied the passwd file and group file from the ESXI server to my backup server. This is where I have WSFU installed and running. I am stuck on step 4 of this PDF. I get two different errors. One is Mount V3 is not supported via TCP and Unable to mount file system.

Once I have my test bed setup I have to bring this into production where I will be running Windows Storage server 2003 R2 with 5.4 TB usable. I have at this time 4 ESXI servers which I plan on using some of this 5.4 TB to do either snapshots or I will bring the VM down and copy to the NAS then to tape. Please help.

Re: Free ESXi Backup Solution for Windows

229. Dec 3, 2008 12:05 PM in response to: ChrisInTexas
Click to view mylesw's profile Novice 8 posts since
May 16, 2008

I've been following this thread with a lot of interest. We have a test installation of VMWare ESXi 3.5 on a server in my home office. I am installing a single VMWare ESXi 3.5 server on a colocated box at a data center this weekend. I have a VM that has been created on my home server with all the base settings that I want to use for future VMs on production, but I don't have the budget to afford the full VMWare VMotion solution for this. My hope is that I can backup my VM at home and transport it to my colocated server.

I'm using VMExplorer to do the backup which has done a good job. However the problem, which seems to be in common with others here, is the time that it takes to backup a 20GB VM over my network. I need something that is much faster.

I'd like to put an external USB hard drive on my home server and backup directly to it. But I can't seem to see any device in Linux on my VMWare server box that corresponds to the external hard drive (ie /dev/sda etc.).

How have others connected an external USB drive directly to the VMWare server so that backups can be made to it and avoid the network altogether?

Myles

Re: Free ESXi Backup Solution for Windows

230. Dec 3, 2008 1:06 PM in response to: mylesw
Click to view neffernin's profile Lurker 3 posts since
Dec 3, 2008

The script works great! I setup a LUN and tested it out. The issue I'm having is that if you remove the storage from ESXi it kills the file structure on the LUN; therfore I can't unmap it then remap it on another server. When you remove the datastore from VMWare it says "Are you sure you want to remove the selected datastores? This operation will permanently delete all of the files on the datastore". Is there a way to remove the iSCSI mapping without this happening from ESXi?


Re: Free ESXi Backup Solution for Windows

231. Dec 3, 2008 1:07 PM in response to: mylesw
Click to view neffernin's profile Lurker 3 posts since
Dec 3, 2008

The script works great! I setup a LUN and tested it out. The issue I'm having is that if you remove the storage from ESXi it kills the file structure on the LUN; therfore I can't unmap it then remap it on another server. When you remove the datastore from VMWare it says "Are you sure you want to remove the selected datastores? This operation will permanently delete all of the files on the datastore". Is there a way to remove the iSCSI mapping without this happening from ESXi?


Re: Free ESXi Backup Solution for Windows

232. Dec 3, 2008 1:15 PM in response to: mylesw
Click to view neffernin's profile Lurker 3 posts since
Dec 3, 2008
Is there a way to remove a datastore from one ESXi server and add it to another? When I try to remove the datastore it deletes all of the data on it. Doing this w/ a LUN via iSCSI

Re: Free ESXi Backup Solution for Windows

233. Dec 3, 2008 11:11 PM in response to: lamw
Click to view ppcfox's profile Lurker 1 posts since
Dec 3, 2008

Hi lamw,

thank you for your script.

I use the script with nonpersitent nfs storage and i think there is a little bug in your script.

if ${ENABLE_NON_PERSISTENT_NFS} -eq 1 ; then
${VMWARE_CMD} hostsvc/summary/fsvolume | awk '{print $1'} | grep "\"${NFS_LOCAL_NAME}\"" > /dev/null 2>&1
if ! $? -eq 1 ; then
#1 = readonly
#0 = readwrite
${VMWARE_CMD} hostsvc/datastore/nas_create "${NFS_LOCAL_NAME}" "${NFS_SERVER}" "${NFS_MOUNT}" 0
fi
fi

the storage was never mounted until i disable the second if-statment.

Sorry for my worse english

ppcfox

Re: Free ESXi Backup Solution for Windows

234. Dec 4, 2008 11:14 AM in response to: ppcfox
Click to view lamw's profile Champion 2,813 posts since
Nov 27, 2007
ppcfox,

It should actually be checking to make sure the exit status "$?" is not equal to 0 which means it's already mounted. I'll update the code shortly, but yes if you just change that from "1" to "0" then, that should solve it.

Let me know if you have any other questions


Update: I've updated the script and re-uploaded to the DOC's page.

Re: Free ESXi Backup Solution for Windows

235. Dec 4, 2008 4:38 PM in response to: lamw
Click to view bigs77's profile Lurker 1 posts since
Jul 22, 2008

Just thinking alound with regards to the emailing of reports....

I'm by no means a scripting guru and have no idea of how to do this... but

Firstly so long as the report is a text file, I suggest reading this into a variable in a script. From there perhaps in the config.pl script have the user specify the IP address of an internal mail server, then script a telnetting to the internal smtp server (ensuring relaing is allowed for the IP address that your running the script & backup from....) then in this script then send the variable that read the report in the body of the message... I have dabbled with smtp commands but don't know of any way to add an attachment...

Anyway I may be dribbling somthing out of the corner of my mouth as this may not be at all possible but hopefully it has given someone some ideas as to how to do this...


Re: Free ESXi Backup Solution for Windows

236. Dec 5, 2008 2:27 AM in response to: bigs77
Click to view kpc's profile Enthusiast 98 posts since
Jul 12, 2006
bigs77 wrote:

Just thinking alound with regards to the emailing of reports....

I'm by no means a scripting guru and have no idea of how to do this... but

Firstly so long as the report is a text file, I suggest reading this into a variable in a script. From there perhaps in the config.pl script have the user specify the IP address of an internal mail server, then script a telnetting to the internal smtp server (ensuring relaing is allowed for the IP address that your running the script & backup from....) then in this script then send the variable that read the report in the body of the message... I have dabbled with smtp commands but don't know of any way to add an attachment...

Anyway I may be dribbling somthing out of the corner of my mouth as this may not be at all possible but hopefully it has given someone some ideas as to how to do this...

Not sure I quite understand your logic, but one way to do this, which I think lamw touched upon, was to kick off all ESXi backups from a central backup server that would SSH into each ESXi server and run the backup. You would output anything you want to a log file and either SSH the file back to your central backup server or if your using NFS just mount the same share and CP the file. If you want an idea of how mail can work check out one of my ealier scripts on the forums.

An added advantage of running from a central server and from one script is that your backups would run one after another, thereby reducing disk contention on the NFS share. Very handy if you have multiple ESXi servers.

Re: Free ESXi Backup Solution for Windows

237. Dec 5, 2008 9:37 AM in response to: kpc
Click to view DSTAVERT's profile Virtuoso 2,464 posts since
Nov 30, 2003

I am reluctant to open ssh on a production server even though I have the management interface / NFS shares protected by a physical firewall and certainly understand any organizations decision to disallow it. I am however, running the script from a central server in a test environment using ssh so I may change my stripes.

Assuming the script copies off to an NFS share, it is fairly easy to echo the output of the script or parts of the script to a file in a "drop" directory. Script a scan of the directory to forward the file as email. Even if the script copies off to some other storage device it is pretty easy to create and add an NFS share specifically to hold the echoed output.

Re: Free ESXi Backup Solution for Windows

238. Dec 7, 2008 10:04 AM in response to: DSTAVERT
Click to view polysulfide's profile Expert 286 posts since
Oct 25, 2006
SSH is pretty secure just the way it is,especially on a secure network.

If you want to go for just a little extra, you can:
Configure SSH to listen on an obscure port
Configure key-based authentication
Configure the ESX firewall to only allow incoming SSH form your "management station"






If it was useful, give me credit
Jason White - VCP

Re: Free ESXi Backup Solution for Windows

239. Dec 11, 2008 12:27 PM in response to: alusrc
Click to view alusrc's profile Novice 20 posts since
Nov 24, 2008

lamw,

How do we modify your script to just backup every VM on the host?

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities