Quantcast
Channel: VMware Communities : Popular Discussions - VI: VMware ESX® 3.0
Viewing all articles
Browse latest Browse all 60069

vmbk.pl -c not creating .restore file

$
0
0

 

hello,

 

 

i started using vmbk.pl script , and i try to backup my vm to a mounted  nfshare , all the files are present but no restore script.

 

 

the vmbk version is 3.0.0rev 11

 

 

my backup command is :

 

 

vmbk.pl -x /vmfs/volumes/storage1/ipcop/ipcop.vmx -C /usr/local/bin/vmbk-default.conf -c

 

 

 

 

 

i also noticed that the vmx file is modified from the original and when i map the nfs backuped vm ,thevm could not start stating a missing file.

 

 

in the source vmx file, the vmdk pointer look like this :

 

 

scsi0:0.fileName = "ipcop.vmdk"

 

 

on the destination it look like that :

 

 

scsi0:0.fileName = "ipcop-000001.vmdk"

 

 

 

is there something missing?

 

 

M

 

-


 

here's the execution log :

 

 

 

Start Time : 16:34:1  

                                                                                                                                                                1.    

Virtual Machine Name : ipcop_src  

                                                                                                                                                                1.    

        Power Status                 Powered On - Running  

        Connecting to Guest with config file /vmfs/volumes/storage1/ipcop/ipcop.vmx  

        Enumerating SCSI Disk

        Check space for the SNAPSHOT:  

                /vmfs/volumes/storage1   

                        17G Free

        Test guest's status         

        Create a snapshot

        VMDisk scsi0:0 : ipcop.vmdk  

        Add Disk to copy files list  

        /vmfs/volumes/storage1/ipcop/ipcop.vmdk  

        /vmfs/volumes/storage1/ipcop/ipcop-flat.vmdk

        Add Configuration file to copy files list

 

 

                Backup Result = 0  

                -


DONE -


 

        Remove snapshots

        Close guest connection

End time : 16:45:53 (713s)  

 

Disconnected from Serverlocal

Flushing data..........

 

Checked VMs : 1  

VMs successful backed up : 0  

Disks successful backed up : 0  

 

Process Finished  

Date : 09/11/2007  

Time : 16:46:10  

Total Process Time : 12.1833333333333 Minutes  

 

Successful

 

 

 

 

-


here's destination directory  (nfs mounted disk):

 

 

 

 

-rw-rr 1 nobody nogroup        721 Nov  9 15:44 catalog

-rw------- 1 nobody nogroup 2147483648 Nov  9 15:44 ipcop-flat.vmdk

-rw------- 1 nobody nogroup        430 Nov  9 15:33 ipcop.vmdk

-rw------- 1 nobody nogroup        476 Nov  9 15:44 ipcop.vmsd

-rwxr-xr-x 1 nobody nogroup       1373 Nov  9 16:03 ipcop.vmx

-rw------- 1 nobody nogroup        249 Nov  9 16:01 ipcop.vmxf

-rw-rr 1 nobody nogroup      57667 Nov  9 15:44 vmware-1.log

-rw-rr 1 nobody nogroup      19682 Nov  9 15:44 vmware-2.log

-rw-rr 1 nobody nogroup      13103 Nov  9 16:03 vmware.log

-rw------- 1 nobody nogroup       8664 Nov  9 15:44 vmwarez.com-ipcop-basic-test-rig.nvram

 

 

 

 

-


here's the source dir :

 

 

 

 

-rw-------    1 root     root     2147483648 Nov  9 17:00 ipcop-flat.vmdk

-rw-------    1 root     root          430 Nov  9 16:45 ipcop.vmdk

-rw-------    1 root     root          458 Nov  9 16:45 ipcop.vmsd

-rwxr-xr-x    1 root     root         1384 Nov  9 17:01 ipcop.vmx

-rw-------    1 root     root          249 Nov  9 17:01 ipcop.vmxf

-rw-rr    1 root     root        57667 Nov  9 14:42 vmware-1.log

-rw-rr    1 root     root        37543 Nov  9 17:00 vmware.log

-rw-------    1 root     root         8664 Nov  9 17:00 vmwarez.com-ipcop-basic-test-rig.nvram

 

 

 

 

-


vmbk.conf look like this :#Version 1.01.2

#set timeout

Timeout=60000

#minimum space required for add RedoLOG

minspaceforRedo=1024

  1. backup esx host configuration

backupESX=false

 

 

 

 

BackupSession="sunday"

#directory where file

destination=/mnt/nfs/

 

 

#minimum space required for backup

minspace=1024

#minimum space required for add RedoLOG

minspaceforRedo=1000

#vmbk do not create subdirectory

FlatDir=false

#Create a restore shell script

Restore=true

  1. Backup configuration file and CMOS

BackupVMX=true

  1. the exported virtual disk contains the redo log if exist

BackREDO=false

#disk format  VMDK or DSK

DiskFormat=VMDK

#Backup all Guest

BackupAllGuest=true

#format of log HTML or TEXT

LogFormat=TEXT

#log file an directory with number of day in file name

logfile=/var/log/vmbk.log

#use cp command to disk instead of vmkfstools

usecp=true

#use vmkfstool(raw mode more faster than cp. !!!!caution with smb share!!!!) command to disk instea

d of cp

vmkfstoolsrawmode=false

#create a tar.gz file one for each disk inside a unique guest directory

usetar=false

#create a tar.gz one for each vm guest with inside all owned file

usetaronefile=false

#create a zip for each vm guest

usegzip=false

#tardir=/tmp  not more used

 

 

  1. true or false

email=true

smtpserver=192.168.1.1

 

 

to=test@test.com

from=support@test.com

 

 

encode=base64

html=true

 

 

 

  1. Force dismount before a mount operation

forcedismount=false

 

 

 

  1. Mount a nfs volume

nfs=false

nfsmount=host:/vol

nfsmountpoint=/vmbk

nfsoptions="soft"

  1. mount a samba volume

smb=false

smbserver=//smbserver/share

smbuser=domain
user

smbpasswd=password

smbmountpoint=/vmbk

#smboptions=%none%

 

 

 

  1. true or false

ftp=false

ftpserver=server

ftpdir="/"

ftpuser=user

ftppasswd=password

  1. true or false

ftppassive=false

#ftptimeout value expressed in sec

ftptimeout=20

predirname=%none%

  1. predirname=%hostname%

  2. predirname=%date%

  3. predirname=%time%

  4. -N  file create a list of backup files

 

 

  1. Create a list of file to backup

backupdisklist=false

backupdisklistfile=/tmp/vmbklist

 

 

  1. only do add redo (without redo commit)

onlyaddredo=false

  1. only do redo commit (without add redo)

onlyredocommit=false

 

 

 

runonstart=false

runonstartfile=""

runonstop=false

runonstopfile=""

 

 

#Veritas Netbackup Options

netbackup=false

netbackuppolicy="vmware"

netbackupclientname=%hostname%

netbackuplog="/var/log/vmbk_netbackup.log"

netbackupprepost=false

netbackupmaster="masterserver"

 

 

#Networker Legato Options

networker=false

networkerserver="server"

networkergroup="vmware"

networkerclientname=%hostname%

networkerlog="/var/log/vmbk_networker.log"

networkerpool="pool"

 

 

#tivoli options

tsm=false

tsmstanza="stnza"

tsmtype="archive"

tsmarchmc="management classes"

 

 

  1. Use temporary dir

temp=false

tempdir="/tmp"

 

 

#use syslog

syslog=false

facility="local6"

level="info"

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 60069

Trending Articles