VMware

Jonathan Marrott's VM Scripting Blog

A swell blog containing some of the scripts I have written for VM management.

4 Posts tagged with the dsm tag
0

TSM - Restore VM Images

Posted by froboy Oct 5, 2007

Procedure Overview:

Restore Files
VM Registration
Restore Files:

Browse to http://<servername>:1581
Click 'Restore'
Enter username and password. Press <Enter>
Click 'View' -> 'Display active/inactive files'
Click 'Yes'
Under 'File Level' browse to the location of the guest to restore.
Place a check mark next to the latest versions of: *.vmx, *.vmxf, *.vmdk
Click Restore
VM Registration

Browse to the guest folder
Edit the .vmx file.
Remove the "-00000?" from the 'scsi0:0.fileName' parameter so that it matches the main vmdk file.
Execute: vmware-cmd -s register <path to vmx file>
Power on VM using Virtual Center.
Troubleshooting:

"The system cannot find the file specified" - This is caused by 'scsi0:0.fileName' parameter in the vmx file pointing to an incorrect vmdk file or to the *-00000?.vmdk file

"A file was not found." - Same as "The system cannot find the file specified"

0 Comments Permalink
0

TSM - Application Installation

Posted by froboy Sep 28, 2007

TSM v5.4.1.0 Installation
1. Execute: rpm -ivh TIVsm-API.i386.rpm
2. Execute: rpm -ivh TIVsm-BA.i386.rpm
3. Create/edit config files.

Configuration
The way I like to do it is to copy my config files from a static source and then edit them on the fly with a few replace commands. This facilitates kickstart deployment. I have included my sample config files below.

Commands to execute for tsm server and node replacement
sed -i.old -e 's/tcpserveraddr tsm1/tcpserveraddr tsm3/g' /opt/tivoli/tsm/client/ba/bin/dsm.sys
sed -i -e 's/nodename yourvm-bu/nodename vm01-bu/g' /opt/tivoli/tsm/client/ba/bin/dsm.sys

Included files:
dsm.sys - Base config file for TSM on ESX
dsm.opt - Base config file. Not typically used on ESX but included just to be safe.
inclexcl - Include/exclude file. This dynamically changes with my TSM backup script.

0 Comments Permalink
0

TSM - First Run Script

Posted by froboy Sep 28, 2007

When running TSM for the first time on ESX, you are prompted for a username and password. Here is a script to auto answer the first run questions. It assumes that the dsm.sys file exists and is correct. It also assumes that the node has been created on the TSM server.

I would recommend this script if you wish to auto-configure TSM during kickstart.

Requirements:
TSM Configured
perl module IO::Tty
perl module Expect.pm

0 Comments Permalink
2

TSM - Backup Script

Posted by froboy Sep 28, 2007

Here is a TSM backup Script that I automate on each of my servers. I actually run this off of a mount.

tsmex and tsmvm.pl should be in the same directory.

tsm is a cron job file that goes in /etc/cron.d. After copying execute the following statements:
chmod 0644 /etc/cron.d/*
service crond restart

2 Comments Permalink
Click to view froboy's profile Member since: Jun 26, 2006

A swell blog containing some of the scripts I have written for VM management.

View froboy's profile

Communities