Cannot backup VMs to the NFS server

Hi all

really stuck GhettoVCB script configuration to back up virtual machines...

I only have a single physical hard drive "datastore1" on my 6.0 ESXi host. I also have NFS server:


/NFS

IP address: 192.168.3.200

First of all, I did a little test: I added this NFS server (file system is ext4) as a new 'teststorage' using vSphere Client storage. When I type in console

# mkdir/vmfs/volumes/datastore1/somefolder

# mkdir/vmfs/volumes/teststorage/newfolder

everyghing is ok. Also:

# esxcli storage nfs add h 192.168.3.200 v s/nfs/backup - backup

# mkdir/vmfs/volumes/backup/tesfolder

Well obviously, everything works. I so disassembled vSphere Client NFS.

Next step, I tried to configure the script:

VM_BACKUP_VOLUME = / vmfs/volumes/datastore1/autobackup

DISK_BACKUP_FORMAT = thin

VM_BACKUP_ROTATION_COUNT = 1

POWER_VM_DOWN_BEFORE_BACKUP = 0

ENABLE_HARD_POWER_OFF = 0

ITER_TO_WAIT_SHUTDOWN = 3

POWER_DOWN_TIMEOUT = 5

ENABLE_COMPRESSION = 0

VM_SNAPSHOT_MEMORY = 0

VM_SNAPSHOT_QUIESCE = 0

ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP = 1

NFS_SERVER = 192.168.3.200

NFS_MOUNT = / backup/nfs

NFS_VM_BACKUP_DIR = auto save

ENABLE_NON_PERSISTENT_NFS = 0

UNMOUNT_NFS = 1

SNAPSHOT_TIMEOUT = 15

EMAIL_LOG = 1

EMAIL_SERVER = mail. Core.local

EMAIL_SERVER_PORT = 25

EMAIL_DELAY_INTERVAL = 1

[email protected]

[email protected]

VM_SHUTDOWN_ORDER =

VM_STARTUP_ORDER =

and they started with a command using SSH:

# /ghettoVCB-master/ghettoVCB.sh g /ghettoVCB-master/my.conf f/ghettoVCB-master/my.list > /ghettoVCB-master/ghettoVCB14.log

So, I got the following output:

Recording output to ' / tmp/ghettoVCB-2016-03-31_04-34-07-3440436.log '...

2016-03-31 04:34:07 - info: = ghettoVCB NEWSPAPER BEGIN =.

2016-03-31 04:34:07 - info: CONFIG - CONFIGURATION GLOBAL GHETTOVCB = /ghettoVCB-master/kanon.conf FILE using

2016-03-31 04:34:07 - info: CONFIG - VERSION = 2015_05_06_1

2016-03-31 04:34:07 - info: CONFIG - GHETTOVCB_PID = 3440436

2016-03-31 04:34:07 - info: CONFIG - VM_BACKUP_VOLUME = / vmfs/volumes/datastore1/autobackup

2016-03-31 04:34:07 - info: CONFIG - VM_BACKUP_ROTATION_COUNT = 1

2016-03-31 04:34:07 - info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2016-03-31_04-34-07

2016-03-31 04:34:07 - info: CONFIG - DISK_BACKUP_FORMAT = thin

2016-03-31 04:34:07 - info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0

2016-03-31 04:34:07 - info: CONFIG - ENABLE_HARD_POWER_OFF = 0

2016-03-31 04:34:07 - info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3

2016-03-31 04:34:07 - info: CONFIG - POWER_DOWN_TIMEOUT = 5

2016-03-31 04:34:07 - info: CONFIG - SNAPSHOT_TIMEOUT = 15

2016-03-31 04:34:07 - info: CONFIG - LOG_LEVEL = info

2016-03-31 04:34:07 - info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2016-03-31_04-34-07-3440436.log

2016-03-31 04:34:07 - info: CONFIG - ENABLE_COMPRESSION = 0

2016-03-31 04:34:07 - info: CONFIG - VM_SNAPSHOT_MEMORY = 0

2016-03-31 04:34:07 - info: CONFIG - VM_SNAPSHOT_QUIESCE = 0

2016-03-31 04:34:07 - info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP = 1

2016-03-31 04:34:07 - info: CONFIG - VMDK_FILES_TO_BACKUP = all

2016-03-31 04:34:07 - info: CONFIG - VM_SHUTDOWN_ORDER =

2016-03-31 04:34:07 - info: CONFIG - VM_STARTUP_ORDER =

2016-03-31 04:34:07 - info: CONFIG - RSYNC_LINK = 0

2016-03-31 04:34:07 - info: CONFIG - BACKUP_FILES_CHMOD =

2016-03-31 04:34:07 - info: CONFIG - EMAIL_LOG = 1

2016-03-31 04:34:07 - info: CONFIG - EMAIL_SERVER = mail.core.local

2016-03-31 04:34:07 - info: CONFIG - EMAIL_SERVER_PORT = 25

2016-03-31 04:34:07 - info: CONFIG - EMAIL_DELAY_INTERVAL = 1

2016-03-31 04:34:07 - info: CONFIG - EMAIL_FROM = [email protected]

2016-03-31 04:34:07 - info: CONFIG - EMAIL_TO = [email protected]

2016-03-31 04:34:07 - info: CONFIG - WORKDIR_DEBUG = 0

2016-03-31 04:34:07 - info:

2016-03-31 04:34:08 - info: power out put in place to

backup will not start until the virtual machine is turned off...

2016-03-31 04:34:08 - info: VM is powerdOff

2016-03-31 04:34:11 - info: start the backup for Debian_Experimental

2016-03-31 04:34:11 - info: creation of snapshot "ghettoVCB-snapshot-2016-03-31" for Debian_Experimental

2016-03-31 04:34:12 - info: ERROR: bad DISK_BACKUP_FORMAT "thin".

------specified for Debian_Experimental

2016-03-31 04:34:13 - info: Instant withdrawal of Debian_Experimental...

2016-03-31 04:34:13 - Info: backup time: 2 seconds

2016-03-31 04:34:13 - info: ERROR: Debian_Experimental could not backup because of the error in VMDK backup!

2016-03-31 04:34:13 - info: # final status: ERROR: No. VMs saved! ######

2016-03-31 04:34:13 - info: = ghettoVCB JOURNAL END =.

2016-03-31 03:21:30 - info: # final status: ERROR: all virtual machines failed! ######

2016-03-31 03:21:30 - info: = ghettoVCB JOURNAL END =.

I tried:

DISK_BACKUP_FORMAT = zeroedthick, eagerzeroedthick, thin, 2gbsparse

VM_SNAPSHOT_MEMORY = 0/1

VM_SNAPSHOT_QUIESCE = 0/1

Still the same error in VMDK format.

WM works fine, no damage.

There is no no snapshot. VM version: 11

Any ideas?

Thanks in advance for the help.

The solution was simple: my notebook + in Windows curled some symbols 'hidden' at the end of the first line, before that I sent this file via WinSCP.

1. use only vi on your ESXi because different EOL codes (CR + LF/LF). Also don't let useful space and the end of the lines.

2 set the async on your NFS server instead of synchronization that increases the speed of copy.

3. place your script of ghettoVCB on your data store. For example: / vmfs/volumes/datastore1

Hope this helps others.

Tags: VMware

Similar Questions

  • A solution to the "unable to connect to the NFS server" that I can't understand

    (This question is related to the interaction between ESXi and FreeNAS and talk a lot here, but the solution was finally on FreeNAS configuration change, so I hope it's ok that I post in this forum.  It relates to the use of FreeNAS of ESXi).

    I have a FreeNAS system set up specifically for the copy of the virtual machines of my ESXi server as a backup mechanism.  I tried to mount a NFS of FreeNAS disk and ran in a (what appears to be, from discussions on the forum, a common place) problem.  ESXi, during an attempt fix the part gave me the "unable to connect to the NFS server" message.  The search in the log files, I could see some more detail, but nothing that pointed to a solution.  I also searched the logs on the FreeNAS system, nothing helps.

    I was using the IP address of the FreeNAS (static address) system instead of the DNS name when you are trying to reach the storage.

    After hours of trying different methods, creation of username on FreeNAS trying up to ESXi, scouring through all the various points of ESXi config, etc. I am getting nowhere.  Then I came across a post somewhere (not here on the forums, but in a blog somewhere) that said add the ESXi server to the hosts on the FreeNAS system file.

    Once we added - bingo-test.  ESXi logged in straight away and I am running.

    Now, I am trying to determine why the addition of ESXi machine to the FreeNAS hosts file would allow ESXi to connect.  Anyone have any ideas?  The IP address of the ESXi system was already in the allowable range set up in the UI on FreeNAS.

    Thanks in advance.

    Mounting NFS export list process requires the resolution of the customer's name. When a customer initiates the request for an NFS share, server checks its list of export for the requested directory and the name of the customer in this access list for this particular action. Now if the server fails to resolve the name of the initiator denies his request for the mounting of this share. In order to overcome this problem, you must have a dns server in the network, or do you have enter you the names and information of IP address to the server hosts file

    Naeem Holy

  • iPad cannot be activated because the activation server is temporarily unavailable

    I've updated my ipad with recent IOS.  Now my ipad cannot be activated because the activation server is temporarily unavailable.  Any suggestions?

    have you contacted apple support team, question do you have to solve the problem seen yet, remember the question, waiting for the support team! hope it's a simple solution to solve

  • "Cannot select"[Gmail]"on the IMAP server. You could try refreshing your folder list to synchronize with the IMAP server. »

    Original title: "error message"

    I get this error message whenever I try to download my gmail account

    Header for the file download "[Gmail]" has not completed. Cannot select "[Gmail]" on the IMAP server. You could try refreshing your folder list to synchronize with the IMAP server. Account: 'imap.tools.sky.com', server: 'imap.tools.sky.com', Protocol: IMAP, server response: ' unknown mailbox: [Gmail] (failure)', Port: 993, secure (SSL): Yes, error number: 0x800CCCD2

    Please repost your question on the Forum of GMail at: http://www.google.com/support/forum/p/gmail/label?lid=745896f193361992&hl=en where the experts to GMail will be happy to help you.  You can also try technical assistance tohttp://mail.google.com/support/.  It is a GMail problem, not a problem of Vista.  If you use an e-mail program rather than online access, then it is possible that the e-mail program settings are incorrect. We do not know these settings but people to GMail.  That said, here's the IMAP settings for a number of e-mail programs (generic parameters - obviously not including your specific account):http://mail.google.com/support/bin/topic.py?hl=en&topic=12806.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Curiosities: what happens if I restart the NFS server?

    Hi guys,.

    I use Linux as a NFS data store. I'm just curious, regularly there as updates of the kernel, etc. that requires a reboot. What happens if I restart the NFS server without:

    1. turn off the virtual machine on it

    2. without disconnecting the ESXi host data store

    What is the proper way to restart the NFS server?

    Thanks ^^

    If you mean 'a good' (without no timeout error appears in the log), then delete NFS datastore is the whole procedure before you restart the NFS server. Unlike datastore VMFS, by removing the NFS datastore, that this will not completely remove the storage at all, instead you only remove it from the ESX host and you can reconnect the NFS mounting even whenever you want.

    http://www.no-x.org

  • ESX host, as well as the NFS server?

    Hi all and thanks in advance for any help.

    I want to know if it is possible to turn essential a LUN on a host in a NFS for another host.

    The vmkernel will allow me to share a hdd connected locally on a host to another host?

    For example.  ESX1 has a 1 TB drive, ESX 2 boasts a record of 400GO.  I want to share the drive between machines as data warehouses.

    The hosts are on the same domain and a fairly typical storage facility.

    I want to leave the VI client manage sharing, but I need a mounting point for training and one for access to hosts.

    Setup NFS on both ESX hosts will cause problems?

    Thanks in advance, once again.

    I really need to know if I can just use NFS on each ESX and run it at the same time as VMware.

    The short answer is no.  ESX was not designed to be an NFS server, should not be.  Thus, there MAY be servers NFS that will work, but they have compiled and built on the ESX host, which is beyond the scope of this thread, so let's say no. NFS on ESX host.

  • Cold DB RMAN backup & restore on the other server: best procedure?

    Hello

    A few days ago I did a cold backup of the GR 2 CARS DB 11 with the following commands:

    srvctl stop database d DBPOC

    RMAN target / < < EOF

    bootable media;

    run

    {

    assign the channel c1 type disc format ' / tmp/dump/coldBkp/%T_%d_DBID%I_s%s_p%p.bkp';

    backup of database TAG 'BKPCOLDDBPOCC' keep until 'sysdate + 1000';

    backup current controlfile TAG 'BKPCOLDDBPOC_CTL' keep until 'sysdate + 1000';

    backup spfile TAG 'BKPCOLDDBPOC_SPF' keep until 'sysdate + 1000';

    output channel c1;

    }

    SHUTDOWN IMMEDIATE;

    quit smoking;

    FO %

    srvctl start database-d DBPOC

    srvctl start service d DBPOC

    Then noticing that I need a copy of controlfile I also did:

    backup current controlfile copy format in ' / opt/dump/oracle/coldBkp/currentctlfile.ctl';

    He made a set of files in the file/tmp/dump/coldBkp system that I copied to another server, resembling:

    20130912_DBPOC_DBID23987234897_s371_p1.BKP... plus my currentctlfile.ctl.

    I copied everything on another machine in/tmp/rest, where the same structure of fs and ASM

    starts existed; then run the following commands to restore this DB on

    This new server:

    1 / set some env variables

    2 / cp initDBPOC.ora /opt/oracle/app/ora11g/product/11.2.0/db_1/dbs

    3 / sqlplus: Startup nomount pfile=/opt/oracle/app/ora11g/product/11.2.0/db_1/dbs/initDBPOC.ora

    4 / rman: restoring controlfile to ' / location/of/coldbackup/files/currentctlfile.ctl';

    5 / rman: sql 'alter database mount;

    6 / rman: catalogue start with "/ location/of/coldbackup/files";

    [Type here YES]

    7 / rman: restore the database;

    8 / sqlplus: recover database using backup controlfile until CANCEL;

    [immediately cancelled the first required archive log]

    9 / sqlplus: alter database open resetlogs;

    The procedure has worked.

    But I'm not happy with this, I thought I could have done with RMAN. However, I discovered

    e.g. a CONTROLFILE RECOVER with the HELP of BACKUP is not possible with RMAN etc etc.

    and I had to swith back to sqlplus, surprisingly.

    Am I missing orders RMAN should I used? Y at - it another way - more simple? -of

    perform this restore/recovery simple thanks to the RMAN utility only? Or is my error in backup

    the first place and I should have used other commands for backup?

    Thank you very much in advance for any advice you can give me...

    Kind regards

    Sébastien

    Hello

    You can use

    RMAN > RECOVER DATABASE;

    and for the time being, you can use

    Set until clause with TIME/SCN/restore point

    HTH

  • Migrate CUCM, CUP and CUC VMS from the physical server Dell to a UCS

    Hi all

    We have 3 virtual machines from one physical server to Dell, we want to migrate those virtual machines from a server of the UCS.

    Reference Dell physical server:

    Model: PowerEdge M610

    UCS: Version of UCS B200 M4 3.0 (2 c)

    I was wondering if just copy all the files of the virtual machine to another server or there is another procedure to do this... and also we need new licenses of vmware?

    Thank you very much!!

    Kind regards!

    ESXi licenses is up to you, you might have bought it so that the UCS, or buy directly from VMWare, but you need to license.

    As for traffic, if you have vCenter, you can move the virtual machines using it (vMotion and/or Storage vMotion), or if not, you can perform a cold migration.

  • The NFS Server error

    Hello world

    Can you please help me on my problem. I'm trying to create a virtual machine to be used as A NAS server and the OS is RHEL 5. I created a certain folder and share it. I also edited the vi/etc/exports and then I ask the folder to be shared just like that.

    /Folder 192.168.126.0 /255.255.255.0 (rw, no_root_squash, sync)

    But still, I got this kind of error. Hope you could help me with that.

    Receive your answer.

    Kind regards

    Vincent

    You're welcome Vincent.

    Please assign points if you feel that this has been helpful by selecting one of the lower.

    correct answer / useful answers

    -Aurelia

  • Root user cannot create VMS within the Resource Pool after you rename the Cluster

    Currently, vCenter manages two clusters. I renamed a single cluster and the root user seems now are not allowed to create a new Virtual Machine in resource pools to the title of the group with the changed name. I tried to change the name of the cluster to its original name... no luck.

    The root user can still create a VM under the individual cluster nodes, but not in a resource pool.

    The cluster that has not been renamed yet can be managed completely with the root user. Resource pools it allow me to create a virtual machine.

    I found this last issue and checked on each cluster node that the ACEDataRoleId is-1 for each section: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1031192

    I am at a loss, any help would be greatly appreciated! Thank you!

    I think it's a bug. When I created a new data center and migrate all nodes in cluster about him, the permissions problem I was experiencing did not follow.

    Thank you for your help.

  • VMware Player 5 - Tools - «Cannot find component on the server to update...» »

    While creating a new virtual machine in VMware Player v5.01.1 (build 894247), for Windows 8 Professional, I met an error saying "cannot find component on the update server.  Contact VMware support or your system administrator.  However, the creation of the VM continued, and the new Win 8 VM apparently working properly.

    However, if I now try to install VMware Tools, I get the same error.

    For the Windows hosts running VMware Player 5.0.1 build 894247:

    Install VMware Tools ISO image on Windows host, download host and "détarer" and then run.  Then silently installs the VMware Tools ISO Image in the working directory.  If VMware Tools not normally install in the virtual machine then manually assign the target VMware Tools ISO Image on CD/DVD to the virtual machine and install manually.

    ====================

    For the Linux hosts running VMware Player 5.0.1 build 894247:

    To install VMware Tools ISO Images on the host Linux see information in my answer Re: WS 7.1.4 - impossible to download VMware Tools/upgrade to update to install on the Linux host.   Then if VMware Tools will not install normally in the VM and then manually assign the target VMware Tools ISO Image to the CD/DVD from the virtual machine and install manually.

  • ESXi 4.1 as an NFS server?

    I have several virtual machines on SATA storage space on my server ESXi 4.1.  I would like to support these until my NFS server.  What is the best way to do it?

    Ideally, I would like to start NFS services on the hypervisor, ESXi 4.1, so I can run cron on the NFS server tasks (client in this case or ) and copy virtual machines.

    Is this possible?

    Yes, I know I can install virtual machines directly on the NFS storage and run them from there, but I want the box of VMware to run independent of the NFS server and rely on it for backups.

    Otherwise, can run tasks scheduled on the ESXi 4.1 hypervisor to copy on the NFS server?

    Thank you.

    You can add an NFS share in a data store. Use the configuration tab / storage to add the share. You can use http://communities.vmware.com/docs/DOC-8760 to clone your virtual machine to the NFS data store. It is possible to add the process clone ghettoVCB as a cron job of many references in the DOC.

  • NFS server as a quest on ESXi Server

    Hi all

    I would like to ask your advice on the subject. I am looking for a

    solution to configure NFS shared storage for 3 ESXi servers. I currently have

    have MD3000i, 3 x DELL 2950, and 2 x DELL 2850.

    My original idea

    was to use 2 x 2850 DELL servers like NFS servers for ESXi on DELL servers

    2950 servers. NFS server cards LUN on the MD3000i iSCSI and

    then sharing of data via NFS. But maybe I could jump DELL 2850 s at all?

    What

    If I configure the NFS servers as quests on each server ESXi, use ESXi

    Software

    initiator iSCSI and NFS servers (or software use raw devices card

    inside of the NFS server - in my case it's CentOS). After these steps, it

    Will be

    no different to have a server stand-alone NFS (configuration).

    Each DELL 2950 has two cards on boar and I intend to install one or two

    dual plus

    ports NICs to increase bandwidth.

    ESXi server will be NFS datastore to map NFS server under

    the same server ESXi and this data store will be used to store all the others

    Virtual machines.

    I intend to have no more than 8 total VMs on each server ESXi.

    In the event of server failure, I can temporary remap an iSCSI LUN

    other NFS server (running on another server ESXi). Data on LUNS

    should be in place it.

    This could be done? I know technically it's possible, but it'll work in production?

    Thank you.

    Hello and welcome to the forums.

    I was very happy with Openfiler running on the 2850 s.  It might be worth checking out.

    Good luck!

  • Backup Exec and VCB proxy server configuration

    Hello

    I am installing Backup Exec to back up my virtual machine on an ESX Server, but I get the following error:

    *Backup- VMVCB::ESX01VCGuestVm(DC)ha-datacenter(DC)vmserver03* 
    
    
    V-79-57344-38220 - Backup of the virtual machine 'server03' failed. VMware VCB framework reported the following error
    
    
     
    
    
    Error: Failed to open the disk: Cannot access a SAN/iSCSI LUN backing this virtual disk. (Hint: Option "-m ndb" swtiches vcbMounter to network base disk access if this is what you want.) 
    
    

    It's my setup. I have an ESX Server connected to a San. I store my images on the SAN. I have Backup Exec installed on our file server that is also attached to the SAN and try to use this server as my VCB proxy server. I have installed on my server BE VCB framework and the enterprise Converter 3.03. I have setup a temporary staging that the server can access to place its snapshots on.

    My BE\VCB proxy server cannot access the SAN LUN that holds the images. My understanding of the process is that of BE I navigate on the ESX Server and select the virtual machine, I want to backup, and because the ESX Server can access the SAN LUNS where VM images are stored throughout the process of alignment of the image and place in the temporary storage area so that BE can then throw tape should work.

    Can someone help to solve my problem?

    See you soon

    Yes, it is the intention of the VCB.  Take the resources needed to run the backup out of the host and on the VCB proxy server.  You can define VCB to use the 'LAN' mode which backs the service console of the virtual computer on the network, but it is slower and puts more pressure on the host.

    Make sure you carefully follow the VCB document.  There are some things you need to do on the proxy before presenting the LUN as cutting diskpart automount. If you don't there is a chance that the lun might get corrupted and your VM would go bye-bye.

  • NFS server crashes in Windows Server 2008 Std Edition

    Hello

    My problems together: -.

    1 NFS Client - Linux... Get in Windows Server 2008 Std Edition NFS server.
    2 NFS Client and Server services failed to restart.
    3 NFS Server crashes regularly and following several times to restart, windows all invited a blue screen with the message '' nfssvr.sys - address FFFFFA6006884051 base at FFFFFA600680C000. DateStamp A9939833 ".
    My question is:-
    1. is there a limitation of Windows Server 2008 Std Edition especially on the concurrent sessions of the NFS server?
    2. what could be the root cause of following services crash?
    3 NFS generates newspapers such as Windows Event Viewer system logs, etc.?
    Any feedback or help is much appreciated, because this issue is disturbing my entire web applications that take the source from the storage server.
    Thank you.
    Kind regards
    Wai Keong

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. Please post your question in the TechNet forum. Check out the following link.
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

Maybe you are looking for