ESXi - Backups
5 de julho de 2009 in Etiquetas: Virtualizacao
The ESXi is a free operating system based on the Linux for VMWare virtual machines (VM). The big difference for the VMWare server, is that it runs directly on a layer of hardware, or you do not need an operating system (OS) by using the "eat" physical resources of the server. The ESXi is very light and takes only a few Mega Bytes.
In this article, I will not focus on the installation of ESX and its remote management console, I only focus on the use of a script to backup copies of virtual machines (VM), in an ESX server.
In this article, I will not focus on the installation of ESX and its remote management console, I only focus on the use of a script to backup copies of virtual machines (VM), in an ESX server.
There are also the ESX, which is the commercial version of the OS, and obviously has but features.
The requirements for the tutorial that follows are: ESX and installed PuTTY (or other tool remote connection over SSH);
Tutorial:
1 - Enable SSH access:
In the console of ESXi press ALT + F1 and type the word "unsupported".
Then enter the root password. After that it gets access to bash OS ESXi.
2 - Edit /etc /inetd.conf and uncomment the line #ssh (remove the #);
3 - Restart the ESXi server;
4 - Connect to the server by ssh:
ssh root@IP_ServidorESXi (for your OS is Linux)
If users of Windows : ( can use PuTTY to connect to ESX.
5 - With the command wget-download the script to the VMware ESXi.
ESXi3x Version:
wget http://communities.vmware.com/servlet/JiveServlet/download/8760-34-23594/ghettoVCB.sh
ESXi4x Version:
wget http://communities.vmware.com/servlet/JiveServlet/download/8760-34-23594/ghettoVCB.sh
6 - Edit the script and change some important parameters:
* VM_BACKUP_VOLUME = / vmfs / volumes / backup -> path (local or NFS) which will be the copies of the VM (Virtual Machines). It is recommended to keep a host / remote storage (for NFS).
* ENABLE_2GB_SPARSE = 0 -> = 1 if the copy is divided into files of 2GB.
* VM_BACKUP_ROTATION_COUNT = 3 -> Number of copies to save up to start over.
* VM_BACKUP_DIR_NAMING_CONVENTION -> Format of the name of the copy. It is recommended to leave as is.
* POWER_VM_DOWN_BEFORE_BACKUP = 0 -> = 0 if the copies are made with MV in production.
* ENABLE_HARD_POWER_OFF = 0 -> If = 0 is off. Lets force the closure of the MV if it has not closed during the specified time in ITER_TO_WAIT_SHUTDOWN.
* ITER_TO_WAIT_SHUTDOWN = 4 -> is not applied if the previous option is = 0; recommended to leave as is.
7 - Create vmbackups file with the name of the virtual machines that ESXi contains. Example:
ServerA
ServidorB
ServidorC
8 - Run the script:. / GhettoVCB.sh vmbackups
During the execution of the script will be shown a progress bar.
Recommendations:
- You can create a small script to call the eating presented in section 8 and put it in cron (. Weekly;. Daily; (..)) in order to automate the execution of backups.
- The copies directly to NFS can be slow, you can make them to a local directory and then copy them to a remote NFS shares, thus saving time in the backup copies of each MV.
References:
http://communities.vmware.com/docs/DOC-8760
http://www.vmware.in.th/forum/index.php?topic=6.0
http://blog.theworldrunsontechnology.com/2009/04/creating-virtual-machine-backups-in.html
The research done for this article,
had the help of Ric Silva
had the help of Ric Silva
Etiquetas
- Aplicativos (3)
- Bash/Shell (9)
- Berbicachos (3)
- CM (15)
- Debian (17)
- FreeBSD (1)
- Gnome (3)
- Informação (10)
- Jogos (1)
- Kde (3)
- Kubuntu (13)
- LinuxMint (3)
- Multimédia (2)
- MySQL (1)
- openSuse (4)
- Opinião (1)
- PHP (1)
- Rapidinhas (8)
- Tutoriais (3)
- Ubuntu (13)
- Virtualizacao (1)
Seguidores
Interestings Blogs
Popular Posts
-
When it is in principle all councils are few ... So here are some. of who has passed the "as passas do Algarve" to take this to fu...
-
The youtube-dl is a small command-line utility that can download videos from youtube.com too easily. In terms of archives, from the Debian M...
-
If you have problems mounting a floppy drive in linux , you may be receiving the following message : " / dev / tty is not ...
-
If you use XAMPP , can happen to you the problem of MySQL does not start . This usually happens when we copy the XAMPP folde...
-
As you know already available version 3.6 of LibreOffice as announced in pplware . You can read more information about new fe...
-
If you work with more than one computer on your desk, to be sure you felt the need for a utility to share the keyboard and mouse between t...
-
Whenever I need to do something in HTML, PHP and / or MySQL , here comes the problem of character encoding ! In MySQL coding I us...
-
At one time published an article, which can read here on remote display in Linux. Now, I will publish another way that allows remote connec...
-
A major difficulty in adapting to any Linux distribution, is to understand your installation system packages. In K / Ubuntu, ie the distribu...
-
For those who feel the lack of a tool for simple image editing, as it was (I say was, because not used: P) the Windows Paint, the KolourPain...