<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Everlinux's Blog &#187; Virtualização</title>
	<atom:link href="http://everlinux.com/blog/category/virtualizacao/feed" rel="self" type="application/rss+xml" />
	<link>http://everlinux.com/blog</link>
	<description>Sempre vivendo, aprendendo e blogando... :)</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:13:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Como aumentar seu cluster online (ESX+GFS)</title>
		<link>http://everlinux.com/blog/2009/01/22/como-aumentar-seu-cluster-online-esxgfs</link>
		<comments>http://everlinux.com/blog/2009/01/22/como-aumentar-seu-cluster-online-esxgfs#comments</comments>
		<pubDate>Thu, 22 Jan 2009 22:28:19 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[High Availability]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[GFS]]></category>
		<category><![CDATA[LVM]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/?p=219</guid>
		<description><![CDATA[Neste exemplo eu tenho um cluster em produção com a LUN compartilhada de 500 GB via GFS. Pretendo dobrar sua capacidade sem parada no sistema. 1-) Adicionar um &#8220;Mapped Raw LUN&#8221; no ESX, em Compatibility Mode &#8220;Physical&#8221;. A &#8220;SCSI Controller&#8221; também precisa ser &#8220;Physical&#8221;, e o disco RAW precisa estar nesta controller dedicada Ex: Hard [...]]]></description>
			<content:encoded><![CDATA[<p>Neste exemplo eu tenho um cluster em produção com a LUN compartilhada de 500 GB via GFS. Pretendo dobrar sua capacidade sem parada no sistema.</p>
<p><strong>1-)</strong> Adicionar um &#8220;Mapped Raw LUN&#8221; no ESX, em Compatibility Mode &#8220;Physical&#8221;.<br />
A &#8220;SCSI Controller&#8221; também precisa ser &#8220;Physical&#8221;, e o disco RAW precisa estar nesta controller dedicada</p>
<p>Ex:<br />
Hard Disk 1 = SCSI Controller 0 = SCSI (0:0)<br />
Hard Disk 2 = SCSI Controller 1 = SCSI (1:0)<br />
Hard Disk 2 = SCSI Controller 1 = SCSI (1:1)</p>
<p><strong>2-) </strong>Adicionar a LUN no Linux:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-02 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cat /proc/scsi/scsi </span>
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: VMware   Model: Virtual disk     Rev: <span style="color: #000000;">1.0</span> 
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM      Model: <span style="color: #000000;">1815</span>      FAStT  Rev: 0914
  Type:   Direct-Access                    ANSI SCSI revision: 05
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-02 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># echo &quot;scsi add-single-device 1 0 1 0&quot; &gt; /proc/scsi/scsi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-02 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cat /proc/scsi/scsi </span>
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: VMware   Model: Virtual disk     Rev: <span style="color: #000000;">1.0</span> 
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM      Model: <span style="color: #000000;">1815</span>      FAStT  Rev: 0914
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: IBM      Model: <span style="color: #000000;">1815</span>      FAStT  Rev: 0914
  Type:   Direct-Access                    ANSI SCSI revision: 05</pre></div></div>

<p>Sendo: Host &#8211; Channel &#8211; ID &#8211; Lun<br />
(um reboot também funcionaria <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
<p><strong>3-)</strong> Configurar o Cluster de LVM</p>
<p>3a-) Criando um Logical Volume</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># fdisk /dev/sdc (usar ID 8e = Linux LVM)</span>
<span style="color: #666666; font-style: italic;"># partprobe (em todas as maquinas do cluster)</span>
<span style="color: #666666; font-style: italic;"># lvmconf --enable-cluster</span>
<span style="color: #666666; font-style: italic;"># pvcreate /dev/sdb1</span>
<span style="color: #666666; font-style: italic;"># vgcreate -Ay -cy pre_homolog /dev/sdb1</span>
<span style="color: #666666; font-style: italic;"># lvcreate -L 499G -n hotsites pre_homolog</span></pre></div></div>

<p>ou</p>
<p>3b-) Aumentando um já existente</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># pvs</span>
  PV         VG          Fmt  Attr PSize   PFree
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1  pre_homolog lvm2 a-   499.99G 1016.00M
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdc1              lvm2 <span style="color: #660033;">--</span>   499.99G  499.99G
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vgextend pre_homolog /dev/sdc1</span>
  Volume group <span style="color: #ff0000;">&quot;pre_homolog&quot;</span> successfully extended
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vgs</span>
  VG          <span style="color: #666666; font-style: italic;">#PV #LV #SN Attr   VSize   VFree  </span>
  pre_homolog   <span style="color: #000000;">2</span>   <span style="color: #000000;">1</span>   <span style="color: #000000;">0</span> wz--nc 999.98G 500.98G
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># pvs</span>
  PV         VG          Fmt  Attr PSize   PFree
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1  pre_homolog lvm2 a-   499.99G 1016.00M
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdc1  pre_homolog lvm2 a-   499.99G  499.99G
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># lvextend -Ay -l+128252 /dev/pre_homolog/hotsites</span>
  Extending logical volume hotsites to <span style="color: #000000;">999.98</span> GB
  Logical volume hotsites successfully resized
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># lvs</span>
  LV       VG          Attr   LSize   Origin Snap<span style="color: #000000; font-weight: bold;">%</span>  Move Log Copy<span style="color: #000000; font-weight: bold;">%</span>  Convert
  hotsites pre_homolog <span style="color: #660033;">-wi-ao</span> 999.98G
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vgs</span>
  VG          <span style="color: #666666; font-style: italic;">#PV #LV #SN Attr   VSize   VFree</span>
  pre_homolog   <span style="color: #000000;">2</span>   <span style="color: #000000;">1</span>   <span style="color: #000000;">0</span> wz--nc 999.98G    <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># pvs</span>
  PV         VG          Fmt  Attr PSize   PFree
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1  pre_homolog lvm2 a-   499.99G    <span style="color: #000000;">0</span>
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdc1  pre_homolog lvm2 a-   499.99G    <span style="color: #000000;">0</span></pre></div></div>

<p><strong>4-)</strong> Aumentar o GFS</p>
<p>Com o /gfs montado, usando o gfs_grow</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-01 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gfs_grow -v /gfs</span>
FS: Mount Point: <span style="color: #000000; font-weight: bold;">/</span>gfs
FS: Device: <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>pre_homolog-hotsites
FS: Options: rw,<span style="color: #007800;">hostdata</span>=<span style="color: #007800;">jid</span>=<span style="color: #000000;">0</span>:<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">id</span></span>=<span style="color: #000000;">131073</span>:<span style="color: #007800;">first</span>=<span style="color: #000000;">0</span>
FS: Size: <span style="color: #000000;">130809855</span>
RGRP: Current Resource Group List:
RI: Addr <span style="color: #000000;">130744354</span>, RgLen <span style="color: #000000;">5</span>, Start <span style="color: #000000;">130744359</span>, DataLen <span style="color: #000000;">65496</span>, BmapLen <span style="color: #000000;">16374</span>
RI: Addr <span style="color: #000000;">130678852</span>, RgLen <span style="color: #000000;">5</span>, Start <span style="color: #000000;">130678857</span>, DataLen <span style="color: #000000;">65496</span>, BmapLen <span style="color: #000000;">16374</span>
RI: Addr <span style="color: #000000;">130613350</span>, RgLen <span style="color: #000000;">5</span>, Start <span style="color: #000000;">130613355</span>, DataLen <span style="color: #000000;">65496</span>, BmapLen <span style="color: #000000;">16374</span>
...
...
RI: Addr <span style="color: #000000;">261895985</span>, RgLen <span style="color: #000000;">15</span>, Start <span style="color: #000000;">261896000</span>, DataLen <span style="color: #000000;">243904</span>, BmapLen <span style="color: #000000;">60976</span>
RGRP: <span style="color: #000000;">539</span> Resource <span style="color: #c20cb9; font-weight: bold;">groups</span> <span style="color: #000000; font-weight: bold;">in</span> total
Preparing to <span style="color: #c20cb9; font-weight: bold;">write</span> new FS information...
Done.</pre></div></div>

<p>Antes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-02 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># df -h</span>
Filesystem            Size  Used Avail Use<span style="color: #000000; font-weight: bold;">%</span> Mounted on
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1             6.9G  1.8G  4.7G  <span style="color: #000000;">28</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>
tmpfs                 1.9G     <span style="color: #000000;">0</span>  1.9G   <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>shm
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>pre_homolog-hotsites
                      493G   12G  482G   <span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>gfs</pre></div></div>

<p>Depois:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>cluster-02 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># df -h</span>
Filesystem            Size  Used Avail Use<span style="color: #000000; font-weight: bold;">%</span> Mounted on
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1             6.9G  1.8G  4.7G  <span style="color: #000000;">28</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>
tmpfs                 1.9G     <span style="color: #000000;">0</span>  1.9G   <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>shm
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>pre_homolog-hotsites
                      994G   12G  983G   <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>gfs</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2009/01/22/como-aumentar-seu-cluster-online-esxgfs/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Diablo2 &#8211; Lord of Destruction (Expansion) no Linux com Wine</title>
		<link>http://everlinux.com/blog/2009/01/12/diablo2-lord-of-destruction-expansion-no-linux-com-wine</link>
		<comments>http://everlinux.com/blog/2009/01/12/diablo2-lord-of-destruction-expansion-no-linux-com-wine#comments</comments>
		<pubDate>Mon, 12 Jan 2009 18:17:49 +0000</pubDate>
		<dc:creator>Carlos Mangini</dc:creator>
				<category><![CDATA[Diablo]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Diversão]]></category>
		<category><![CDATA[Jogos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Pessoal]]></category>
		<category><![CDATA[RPG]]></category>
		<category><![CDATA[Virtualização]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/?p=159</guid>
		<description><![CDATA[Dia desses percebi que estava gastando todo meu tempo livre jogando um dos maiores games já feitos para PC, o Diablo 2 com expansão. Eu comprei ele no submarino por R$29,90. Apesar de já ter gasto horas e horas nesse jogo alucinante há alguns anos atrás, eu consegui reunir um pessoal e estamos jogando frequentemente. [...]]]></description>
			<content:encoded><![CDATA[<p>Dia desses percebi que estava gastando todo meu tempo livre jogando um dos maiores games já feitos para PC, o Diablo 2 com expansão. Eu comprei ele no <a href="http://www.submarino.com.br/produto/12/1018131/jogo+pc+diablo+ii+gold?menuId=677">submarino por R$29,90</a>. Apesar de já ter gasto horas e horas nesse jogo alucinante há alguns anos atrás, eu consegui reunir um pessoal e estamos jogando frequentemente.</p>
<p>Para ajudar, por trabalhar em uma empresa de tecnologia, frequentemente fico algumas horas até mais tarde, seja para concluir um projeto, resolver um problema ou mesmo esperar o trânsito dar uma aliviada. Nesse último item, rola jogar um game e ir treinando para fazer uma aventura legal com o pessoal. Como no meu trabalho uso linux e em casa eu rodava ele num windão véio que só servia para isso, resolvi dar uma navegada no site da blizzard e ver as novidades.</p>
<p>Lá no site, você consegue baixar os arquivos que permitem a você instalar o game de qualquer computador, desde que você tenha o serial original do jogo. Primeiro, você precisa se <a href="http://blizzard.com/login/login.xml">cadastrar no site da blizzard</a> para conseguir o serial que vai permitir a instalação.</p>
<p><a href="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2lod_blizzard.png"><img src="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2lod_blizzard-150x150.png" alt="d2lod_blizzard_registration" title="d2lod_blizzard_registration" width="150" height="150" class="aligncenter size-thumbnail wp-image-164" /></a></p>
<p>Sussa, feito isso, baixei os 1.9GB de arquivos do site da blizzard.com. Você autentica no site e baixa um executável de uns 100kB. Esse arquivo quando executado baixa os arquivos do jogo direto do site. Na sequência já abri uma aba no site do wine.</p>
<p>O lance do Wine é o seguinte: <a href="http://www.guiadohardware.net/artigos/diablo-linux/">antigamente até conseguia instalar o jogo</a>, mas sempre ficava muito instável e a jogabilidade usando os recursos de rede não era muito legal, mesmo compilando. Mas a equipe de desenvolvimento dos caras não fica parada. Já tem uma versão do Wine que permite que você instale e jogue o D2LoD sem problemas. Inclusive troca de janelas sem trava o game, sem zoar a imagem ou perder o cursor do mouse.</p>
<p><strong>Instalando o Wine:</strong></p>
<p>Essas 3 linhas são o que você precisa para poder executar o .exe do instalador do Diablão.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> http:<span style="color: #000000; font-weight: bold;">//</span>wine.budgetdedicated.com<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>387EE263.gpg <span style="color: #660033;">-O-</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> add -
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wine.budgetdedicated.com<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list.d<span style="color: #000000; font-weight: bold;">/</span>intrepid.list <span style="color: #660033;">-O</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list.d<span style="color: #000000; font-weight: bold;">/</span>winehq.list
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>No Ubuntu 8.10, o comando &#8220;apt-get install wine&#8221; traria a versão 1.0.1. Porém, com estas linhas acima a versão 1.1.12 será baixada e instalada.</p>
<p>Daí para frente é só instalar o D2Lod normalmente. Abaixo tem umas screenshoots para você ver como acontece a mágica.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ wine <span style="color: #000000; font-weight: bold;">/</span>dados<span style="color: #000000; font-weight: bold;">/</span>games<span style="color: #000000; font-weight: bold;">/</span>D2LOD<span style="color: #000000; font-weight: bold;">/</span>D2-1.12A-enUS<span style="color: #000000; font-weight: bold;">/</span>Installer.exe
$ wine <span style="color: #000000; font-weight: bold;">/</span>dados<span style="color: #000000; font-weight: bold;">/</span>games<span style="color: #000000; font-weight: bold;">/</span>D2LOD<span style="color: #000000; font-weight: bold;">/</span>D2LOD-1.12A-enUS<span style="color: #000000; font-weight: bold;">/</span>Installer.exe</pre></div></div>

<p>Caso queira rodar o wine em uma janela 800&#215;600 e não em Fullscreen, edite o atalho criado em seu desktop e adicione no final da linha <strong>-w</strong>.</p>
<p>Olhando as screenshoot&#8217;s você percebe que fiz toda a malandragem usando o Ubuntu 8.10! Não tive tempo de testar em outros sabores linux. Se você gostou, instale e deixe seu comentário.</p>
<p>Pronto, depois de todo o trabalho, agora é pegar sua espada, vestir sua armadura e sair em busca de batalhas!! </p>
<p>8p</p>
<p><a href="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2_install.png"><img src="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2_install-150x150.png" alt="d2_install" title="d2_install" width="150" height="150" class="aligncenter size-thumbnail wp-image-170" /></a></p>
<p><a href="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2lod_install.png"><img src="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2lod_install-150x150.png" alt="d2lod_install" title="d2lod_install" width="150" height="150" class="aligncenter size-thumbnail wp-image-171" /></a></p>
<p><a href="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2lod_play.png"><img src="http://www.everlinux.com/blog/wp-content/uploads/2009/01/d2lod_play-150x150.png" alt="d2lod_play" title="d2lod_play" width="150" height="150" class="aligncenter size-thumbnail wp-image-173" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2009/01/12/diablo2-lord-of-destruction-expansion-no-linux-com-wine/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Cluster com VMware ESX + GFS</title>
		<link>http://everlinux.com/blog/2009/01/06/cluster-com-vmware-esx-gfs</link>
		<comments>http://everlinux.com/blog/2009/01/06/cluster-com-vmware-esx-gfs#comments</comments>
		<pubDate>Tue, 06 Jan 2009 23:26:47 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[High Availability]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[GFS]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2009/01/06/cluster-com-vmware-esx-gfs/</guid>
		<description><![CDATA[Já escrevemos bastante sobre Virtualização usando Xen e Cluster aqui no Blog. Desta vez, para começar bem 2009 eu irei apenas citar alguns testes que fiz usando VMware ESX com GFS, em um Storage compartilhado, usando tecnologia Red Hat 5.2 x86_64 com um Fence_VMWare Tech Preview do RHEL 5.3 beta. O Problema Eu já o [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.everlinux.com/blog/wp-content/uploads/2009/01/teste_esx_gfs_ever.png' title='Teste_ESX_GFS_Ever'><img src='http://www.everlinux.com/blog/wp-content/uploads/2009/01/teste_esx_gfs_ever.thumbnail.png' alt='Teste_ESX_GFS_Ever' /></a></p>
<p>Já escrevemos bastante sobre <a href="http://www.everlinux.com/blog/category/virtualizacao/">Virtualização </a>usando <a href="http://www.everlinux.com/blog/category/xen/">Xen</a> e <a href="http://www.everlinux.com/blog/category/cluster/">Cluster</a> aqui no Blog. </p>
<p>Desta vez, para começar bem 2009 eu irei apenas citar alguns testes que fiz usando VMware ESX com GFS, em um <a href="http://www.everlinux.com/blog/category/storage/">Storage</a> compartilhado, usando tecnologia Red Hat 5.2 x86_64 com um Fence_VMWare Tech Preview do RHEL 5.3 beta.</p>
<p><strong>O Problema</strong></p>
<p>Eu já o utilizava o GFS com Xen ou até mesmo com <a href="http://www.everlinux.com/blog/2008/06/16/usando-drbd-com-gfs-e-fencing-manual/">DRBD em Muti-Master</a>, porém o grande problema é que não existia um fence para vmware que funcionasse a contento.</p>
<p>O <a href="http://sources.redhat.com/cgi-bin/cvsweb.cgi/cluster/fence/agents/vmware/fence_vmware.pl?cvsroot=cluster">fence_vmware</a>, escrito em perl parou no tempo em Agosto de 2007 e fora que a <a href="http://www.vmware.com/download/sdk/api.html">VMware Perl API</a> necessária não compila em 64 bits.</p>
<p>A Red Hat pretende lançar agora no RHEL 5.3 um <a href="http://sources.redhat.com/cluster/wiki/VMware_FencingConfig">fence_vmware re-escrito em Python</a>, porém ele ainda não trabalha com Cluster, pois conecta-se direto na máquina física, e não no VMCenter.</p>
<p><strong>A Solução</strong></p>
<p>A solução é utilizar o vmware_fence_vi, também da Red Hat que está em fase de desenvolvimento atualmente, que conecta no Virtual Center e não na máquina física que pode estar morta <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Segue o /etc/cluster/cluster.conf utilizado nos testes:</p>
<p><strong>Configuração do Cluster</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>cluster <span style="color: #007800;"><span style="color: #7a0874; font-weight: bold;">alias</span></span>=<span style="color: #ff0000;">&quot;Cluster_GFS&quot;</span> <span style="color: #007800;">config_version</span>=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;Cluster_GFS&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>fence_daemon <span style="color: #007800;">clean_start</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #007800;">post_fail_delay</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #007800;">post_join_delay</span>=<span style="color: #ff0000;">&quot;3&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>cman<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>multicast <span style="color: #007800;">addr</span>=<span style="color: #ff0000;">&quot;224.0.0.1&quot;</span> <span style="color: #007800;">interface</span>=<span style="color: #ff0000;">&quot;eth1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>cman<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>clusternodes<span style="color: #000000; font-weight: bold;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;</span>clusternode <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;cluster-01-node-01&quot;</span> <span style="color: #007800;">nodeid</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #007800;">votes</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;</span>multicast <span style="color: #007800;">addr</span>=<span style="color: #ff0000;">&quot;224.0.0.1&quot;</span> <span style="color: #007800;">interface</span>=<span style="color: #ff0000;">&quot;eth1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
	           <span style="color: #000000; font-weight: bold;">&lt;</span>fence<span style="color: #000000; font-weight: bold;">&gt;</span>
        	        <span style="color: #000000; font-weight: bold;">&lt;</span>method <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;single&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                	        <span style="color: #000000; font-weight: bold;">&lt;</span>device <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;node-01&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
	                <span style="color: #000000; font-weight: bold;">&lt;/</span>method<span style="color: #000000; font-weight: bold;">&gt;</span>
	           <span style="color: #000000; font-weight: bold;">&lt;/</span>fence<span style="color: #000000; font-weight: bold;">&gt;</span>
                <span style="color: #000000; font-weight: bold;">&lt;/</span>clusternode<span style="color: #000000; font-weight: bold;">&gt;</span>
                <span style="color: #000000; font-weight: bold;">&lt;</span>clusternode <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;cluster-01-node-02&quot;</span> <span style="color: #007800;">nodeid</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #007800;">votes</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;</span>multicast <span style="color: #007800;">addr</span>=<span style="color: #ff0000;">&quot;224.0.0.1&quot;</span> <span style="color: #007800;">interface</span>=<span style="color: #ff0000;">&quot;eth1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
                   <span style="color: #000000; font-weight: bold;">&lt;</span>fence<span style="color: #000000; font-weight: bold;">&gt;</span>
                        <span style="color: #000000; font-weight: bold;">&lt;</span>method <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;single&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                                <span style="color: #000000; font-weight: bold;">&lt;</span>device <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;node-02&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
                        <span style="color: #000000; font-weight: bold;">&lt;/</span>method<span style="color: #000000; font-weight: bold;">&gt;</span>
                   <span style="color: #000000; font-weight: bold;">&lt;/</span>fence<span style="color: #000000; font-weight: bold;">&gt;</span>
                <span style="color: #000000; font-weight: bold;">&lt;/</span>clusternode<span style="color: #000000; font-weight: bold;">&gt;</span>
                <span style="color: #000000; font-weight: bold;">&lt;</span>clusternode <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;cluster-01-node-03&quot;</span> <span style="color: #007800;">nodeid</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #007800;">votes</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;</span>multicast <span style="color: #007800;">addr</span>=<span style="color: #ff0000;">&quot;224.0.0.1&quot;</span> <span style="color: #007800;">interface</span>=<span style="color: #ff0000;">&quot;eth1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
                   <span style="color: #000000; font-weight: bold;">&lt;</span>fence<span style="color: #000000; font-weight: bold;">&gt;</span>
                        <span style="color: #000000; font-weight: bold;">&lt;</span>method <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;single&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                                <span style="color: #000000; font-weight: bold;">&lt;</span>device <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;node-03&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
                        <span style="color: #000000; font-weight: bold;">&lt;/</span>method<span style="color: #000000; font-weight: bold;">&gt;</span>
                   <span style="color: #000000; font-weight: bold;">&lt;/</span>fence<span style="color: #000000; font-weight: bold;">&gt;</span>
                <span style="color: #000000; font-weight: bold;">&lt;/</span>clusternode<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;/</span>clusternodes<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>fencedevices<span style="color: #000000; font-weight: bold;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;</span>fencedevice <span style="color: #007800;">agent</span>=<span style="color: #ff0000;">&quot;fence_vmware_vi&quot;</span> <span style="color: #007800;">ipaddr</span>=<span style="color: #ff0000;">&quot;10.107.113.2&quot;</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">login</span></span>=<span style="color: #ff0000;">&quot;user&quot;</span> <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;node-01&quot;</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">passwd</span></span>=<span style="color: #ff0000;">&quot;xxxxx&quot;</span> <span style="color: #007800;">port</span>=<span style="color: #ff0000;">&quot;Cluster_01_Node_01&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;</span>fencedevice <span style="color: #007800;">agent</span>=<span style="color: #ff0000;">&quot;fence_vmware_vi&quot;</span> <span style="color: #007800;">ipaddr</span>=<span style="color: #ff0000;">&quot;10.107.113.2&quot;</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">login</span></span>=<span style="color: #ff0000;">&quot;user&quot;</span> <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;node-02&quot;</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">passwd</span></span>=<span style="color: #ff0000;">&quot;xxxxx&quot;</span> <span style="color: #007800;">port</span>=<span style="color: #ff0000;">&quot;Cluster_01_Node_02&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;</span>fencedevice <span style="color: #007800;">agent</span>=<span style="color: #ff0000;">&quot;fence_vmware_vi&quot;</span> <span style="color: #007800;">ipaddr</span>=<span style="color: #ff0000;">&quot;10.107.113.2&quot;</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">login</span></span>=<span style="color: #ff0000;">&quot;user&quot;</span> <span style="color: #007800;">name</span>=<span style="color: #ff0000;">&quot;node-03&quot;</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">passwd</span></span>=<span style="color: #ff0000;">&quot;xxxxx&quot;</span> <span style="color: #007800;">port</span>=<span style="color: #ff0000;">&quot;Cluster_01_Node_03&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;/</span>fencedevices<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>cluster<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Notas: </p>
<p>1-) Troque parênteses por sinal de maior/ menor (maldito wordpress!) <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>2-) O IP 10.107.113.2 é o IP do Virtual Center. Ele sempre sabe onde a máquina virtual se encontra, mesmo que ela for migrada para outro host físico.</p>
<p>3-) Forçamos o MultiCast pela eth1, que é uma interface dedicada para o heartbeat do Cluster. Algumas vezes o multicast tentava sair pela interface de loopback e cada máquina achava que estava sozinha no cluster <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>/etc/hosts dos servidores:</p>
<p><code>10.0.0.1	cluster-01-node-01<br />
10.0.0.2	cluster-01-node-02<br />
10.0.0.3	cluster-01-node-03<br />
10.0.1.1	node-01<br />
10.0.1.2	node-02<br />
10.0.1.3	node-03</code></p>
<p><strong>Script de escrita</strong></p>
<p>Foi utilizado um script para escrever no storage compartilhado a cada segundo com o nome da máquina e a hora exata (minuto, segundo) da escrita.</p>
<p><code># for i in `seq 1 1000`; do a=`echo $RANDOM | cut -c1-2`; dd if=/dev/zero of=/teste/`hostname -s`-`date +%H_%M_%S` bs=512k count=$a; sleep 1; done</code></p>
<p><strong>Nós do Cluster</strong></p>
<p><code>[root@cluster-01-node-02 ~]# cman_tool nodes<br />
Node  Sts   Inc   Joined               Name<br />
   1   M     60   2009-01-06 19:46:11  cluster-01-node-01<br />
   2   M     56   2009-01-06 19:46:11  cluster-01-node-02<br />
   3   M     68   2009-01-06 19:56:35  cluster-01-node-03</code></p>
<p><strong>Fence Device</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>fence_vmware_vi - DEVEL.1229423489
&nbsp;
<span style="color: #666666; font-style: italic;"># The Following agent has been tested on:</span>
<span style="color: #666666; font-style: italic;"># VI Perl API 1.6 against:</span>
<span style="color: #666666; font-style: italic;">#       VMware ESX 3.5</span>
<span style="color: #666666; font-style: italic;">#       VMware ESXi 3.5 update 2</span>
<span style="color: #666666; font-style: italic;">#       VMware Virtual Center 2.5</span>
<span style="color: #666666; font-style: italic;">#&lt;/code&gt;</span></pre></div></div>

<p>Com a seguinte modificação na linha 13:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#sys.path.append(&quot;@FENCEAGENTSLIBDIR@&quot;)</span>
sys.path.append<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;/usr/lib/fence&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><strong>Desligar máquina VIRTUAL</strong></p>
<p>Teste: Desligar máquina VIRTUAL cluster-01-node-03</p>
<p>Resultado: GFS congelado por ~1 minuto</p>
<p>O que ocorreu: O fence_vmware_vi conectou no vmcenter e tirou a máquina do Cluster, liberando assim o I/O.</p>
<p><strong>Desligar máquina FISICA normalmente</strong></p>
<p>Teste: Desligar com reboot máquina FISICA 01 (que tinha a cluster-01-node-03)</p>
<p>Resultado: GFS congelado por ~2 minutos</p>
<p>O que ocorreu: Máquinas física iniciou o processo de reboot, a máquina virtual cluster-01-node-03 morreu e foi migrada e reiniciada em outro host físico.</p>
<p>PS: A máquina virtual não retornou ao seu host de origem quando a máquina física voltou</p>
<p><code>-rw-r--r-- 1 root root 44040192 Jan  6  2009 cluster-01-node-01-19_50_52<br />
-rw-r--r-- 1 root root 15204352 Jan  6  2009 cluster-01-node-01-19_50_53<br />
-rw-r--r-- 1 root root 10485760 Jan  6  2009 cluster-01-node-01-19_50_54<br />
-rw-r--r-- 1 root root 41418752 Jan  6  2009 cluster-01-node-01-19_52_57<br />
-rw-r--r-- 1 root root 17825792 Jan  6  2009 cluster-01-node-01-19_52_58<br />
-rw-r--r-- 1 root root 23068672 Jan  6  2009 cluster-01-node-01-19_52_59<br />
-rw-r--r-- 1 root root  6815744 Jan  6  2009 cluster-01-node-01-19_53_00<br />
-rw-r--r-- 1 root root 49807360 Jan  6  2009 cluster-01-node-01-19_53_01<br />
-rw-r--r-- 1 root root 10485760 Jan  6  2009 cluster-01-node-01-19_53_03<br />
</code></p>
<p><strong>Desligar máquina FISICA brutalmente</strong></p>
<p>Desligar com RESET (via RSA) máquina FISICA 02 (que tinha a cluster-01-node-03)</p>
<p>Resultado: GFS congelado por ~3 minutos</p>
<p>O que ocorreu: Máquinas física foi brutalmente desligada, a máquina virtual cluster-01-node-03 morreu e foi migrada e reiniciada em outro host físico.</p>
<p>O fence_vmware_vi tentou várias vezes tirar a máquina do cluster com falhas consecutivas pois a máquina não mais existia e o ESX demorou um pouco para entender o que estava acontecendo.</p>
<p>PS: A máquina virtual não retornou ao seu host de origem quando a máquina física voltou</p>
<p><code>-rw-r--r-- 1 root root 12058624 Jan  6 20:17 cluster-01-node-01-20_17_57<br />
-rw-r--r-- 1 root root 11534336 Jan  6 20:17 cluster-01-node-01-20_17_58<br />
-rw-r--r-- 1 root root 10485760 Jan  6 20:17 cluster-01-node-01-20_17_59<br />
-rw-r--r-- 1 root root  5242880 Jan  6 20:18 cluster-01-node-01-20_18_00<br />
-rw-r--r-- 1 root root  5767168 Jan  6 20:20 cluster-01-node-01-20_18_01<br />
-rw-r--r-- 1 root root  6291456 Jan  6 20:21 cluster-01-node-01-20_21_00<br />
-rw-r--r-- 1 root root 37748736 Jan  6 20:21 cluster-01-node-01-20_21_02<br />
-rw-r--r-- 1 root root 17825792 Jan  6 20:21 cluster-01-node-01-20_21_03<br />
-rw-r--r-- 1 root root 12582912 Jan  6 20:21 cluster-01-node-01-20_21_04<br />
-rw-r--r-- 1 root root 34603008 Jan  6 20:21 cluster-01-node-01-20_21_05<br />
-rw-r--r-- 1 root root  5242880 Jan  6 20:21 cluster-01-node-01-20_21_06<br />
-rw-r--r-- 1 root root 12582912 Jan  6 20:21 cluster-01-node-01-20_21_07<br />
-rw-r--r-- 1 root root 12582912 Jan  6 20:21 cluster-01-node-01-20_21_08</code></p>
<p><strong>Trechos de logs</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">10</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>TOTEM<span style="color: #7a0874; font-weight: bold;">&#93;</span> The token was lost <span style="color: #000000; font-weight: bold;">in</span> the OPERATIONAL state. 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">10</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>TOTEM<span style="color: #7a0874; font-weight: bold;">&#93;</span> Receive multicast socket recv buffer <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">288000</span> bytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>. 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">10</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>TOTEM<span style="color: #7a0874; font-weight: bold;">&#93;</span> Transmit multicast socket send buffer <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">262142</span> bytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>. 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">10</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>TOTEM<span style="color: #7a0874; font-weight: bold;">&#93;</span> entering GATHER state from 2. 
&nbsp;
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>CLM  <span style="color: #7a0874; font-weight: bold;">&#93;</span> CLM CONFIGURATION CHANGE 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>CLM  <span style="color: #7a0874; font-weight: bold;">&#93;</span> New Configuration: 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>CLM  <span style="color: #7a0874; font-weight: bold;">&#93;</span> 	r<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ip<span style="color: #7a0874; font-weight: bold;">&#40;</span>10.0.0.1<span style="color: #7a0874; font-weight: bold;">&#41;</span>  
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>CLM  <span style="color: #7a0874; font-weight: bold;">&#93;</span> 	r<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ip<span style="color: #7a0874; font-weight: bold;">&#40;</span>10.0.0.2<span style="color: #7a0874; font-weight: bold;">&#41;</span>  
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>CLM  <span style="color: #7a0874; font-weight: bold;">&#93;</span> Members Left: 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: cluster-01-node-03 not a cluster member after <span style="color: #000000;">0</span> sec post_fail_delay
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 openais<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2646</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>CLM  <span style="color: #7a0874; font-weight: bold;">&#93;</span> 	r<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ip<span style="color: #7a0874; font-weight: bold;">&#40;</span>10.0.0.3<span style="color: #7a0874; font-weight: bold;">&#41;</span>  
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">15</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fencing node <span style="color: #ff0000;">&quot;cluster-01-node-03&quot;</span>
&nbsp;
  Please use <span style="color: #ff0000;">'-h'</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #007800;">usagcation</span>=HASH<span style="color: #7a0874; font-weight: bold;">&#40;</span>0x1df33bd0<span style="color: #7a0874; font-weight: bold;">&#41;</span>ing with the remote host.eports: vmware_helper returned Cannot power off vm Cluster_01_Node_03<span style="color: #000000; font-weight: bold;">!</span>
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">47</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: agent <span style="color: #ff0000;">&quot;fence_vmware_vi&quot;</span> reports: e 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">47</span> cluster-01-node-01 ccsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2636</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Attempt to close an unopened CCS descriptor <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">44880</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>. 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">47</span> cluster-01-node-01 ccsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2636</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Error <span style="color: #000000; font-weight: bold;">while</span> processing disconnect: Invalid request descriptor 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">47</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fence <span style="color: #ff0000;">&quot;cluster-01-node-03&quot;</span> failed
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">52</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fencing node <span style="color: #ff0000;">&quot;cluster-01-node&quot;</span>
&nbsp;
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">28</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: agent <span style="color: #ff0000;">&quot;fence_vmware_vi&quot;</span> reports: Connection timed out 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">28</span> cluster-01-node-01 ccsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2636</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Attempt to close an unopened CCS descriptor <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">45600</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>. 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">28</span> cluster-01-node-01 ccsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2636</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Error <span style="color: #000000; font-weight: bold;">while</span> processing disconnect: Invalid request descriptor 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">28</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fence <span style="color: #ff0000;">&quot;cluster-01-node-03&quot;</span> failed
&nbsp;
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">33</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fencing node <span style="color: #ff0000;">&quot;cluster-01-node-03&quot;</span>
  Please use <span style="color: #ff0000;">'-h'</span> <span style="color: #007800;">tNotConnected</span>=HASH<span style="color: #7a0874; font-weight: bold;">&#40;</span>0x19bb0090<span style="color: #7a0874; font-weight: bold;">&#41;</span>mote host, since it is disconnected.ware_helper returned Cannot power on vm Cluster_01_Node_03<span style="color: #000000; font-weight: bold;">!</span>
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">46</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: agent <span style="color: #ff0000;">&quot;fence_vmware_vi&quot;</span> reports: <span style="color: #000000; font-weight: bold;">for</span> usage 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">46</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fence <span style="color: #ff0000;">&quot;cluster-01-node-03&quot;</span> failed
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">51</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fencing node <span style="color: #ff0000;">&quot;cluster-01-node-03&quot;</span>
&nbsp;
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 ccsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2636</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Attempt to close an unopened CCS descriptor <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">46710</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>. 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 ccsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2636</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Error <span style="color: #000000; font-weight: bold;">while</span> processing disconnect: Invalid request descriptor 
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 fenced<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2666</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fence <span style="color: #ff0000;">&quot;cluster-01-node-03.ig.com.br&quot;</span> success
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: Trying to acquire journal lock...
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: Looking at journal...
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: Acquiring the transaction lock...
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: Replaying journal...
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: Replayed <span style="color: #000000;">79</span> of <span style="color: #000000;">93</span> blocks
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: replays = <span style="color: #000000;">79</span>, skips = <span style="color: #000000;">13</span>, sames = <span style="color: #000000;">1</span>
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: Journal replayed <span style="color: #000000; font-weight: bold;">in</span> 1s
Jan  <span style="color: #000000;">6</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">59</span> cluster-01-node-01 kernel: GFS: <span style="color: #007800;">fsid</span>=Cluster_GFS:gfs.0: <span style="color: #007800;">jid</span>=<span style="color: #000000;">2</span>: Done</pre></div></div>

<p><strong>Conclusão</strong></p>
<p>Estes testes foram realizados buscando alternativas que reduzam o downtime dos serviços e/ou aplicações contidos em um servidor, chegando a manter sua disponibilidade próxima dos 99,999%.</p>
<p>Como você pôde perceber, esta estrutura permite chegarmos a este número, mas até o momento em que está sendo escrito este post, a versão usada ainda não está homologada, usando pacotes ainda em desenvolvimento (cman+fence_vmware). </p>
<p>Num futuro próximo, já devemos ter algum retorno das empresas desenvolvedoras, pois focam em uma fatia do merdado muito forte e competitiva ($$$).</p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2009/01/06/cluster-com-vmware-esx-gfs/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>VMware Virtualization Forum 2008 &#8211; Eu fui!</title>
		<link>http://everlinux.com/blog/2008/06/19/vmware-virtualization-forum-2008-eu-fui</link>
		<comments>http://everlinux.com/blog/2008/06/19/vmware-virtualization-forum-2008-eu-fui#comments</comments>
		<pubDate>Fri, 20 Jun 2008 02:39:39 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Eventos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[Wii]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2008/06/19/vmware-virtualization-forum-2008-eu-fui/</guid>
		<description><![CDATA[Participei hoje do evento &#8220;VMware Virtualization Forum 2008&#8220;, patrocinado pela VmWare e suas patrocinadoras como a Intel, HP, CA, EMC&#8230; Embora o evento maior da VmWare se passe &#8220;lá fora&#8221;, o evento aqui no Brasil foi bem interessante e tiveram suas inscrições esgotadas. O evento foi gratuíto, contando com café da manhã, Coffee Break, Almoço [...]]]></description>
			<content:encoded><![CDATA[<p>Participei hoje do evento &#8220;<a href="http://info.vmware.com/content/VirtualizationForum_Home">VMware Virtualization Forum 2008</a>&#8220;, patrocinado pela VmWare e suas patrocinadoras como a Intel, HP, CA, EMC&#8230; Embora o evento maior da VmWare se passe &#8220;lá fora&#8221;,  o evento aqui no Brasil foi bem interessante e tiveram <a href="http://info.vmware.com/content/PortgForum_Register?src=undefined&#038;ossrc=undefined">suas inscrições esgotadas</a>.</p>
<p><a href='http://www.everlinux.com/blog/wp-content/uploads/2008/06/nintendo_wii.jpg' title='Nintendo Wii'><img src='http://www.everlinux.com/blog/wp-content/uploads/2008/06/nintendo_wii.thumbnail.jpg' alt='Nintendo Wii' /></a></p>
<p>O evento foi gratuíto, contando com café da manhã, Coffee Break, Almoço e Coquetel de encerramento com o sorteio de alguns prêmios, como dois Ipod Touch e dois <a href="http://www.magazineluiza.com.br/especiais/nitendo/index.asp">Nintendos WII</a>, no qual eu tive a puta sorte de ganhar!!! <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' />  Nunca ganha nada em sorteio algum, porém dessa vez eu realmente preciso agradecer a Deus pelo presentão de aniversário que eu não teria condições de comprar!!! <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' />  Alias, agradeço de algum usuário desta maravilhosa tecnologia pudesse deixar alguns dicas para mim a respeito do console <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Bom, voltando ao evento em si, com tanta coisa &#8220;de graça&#8221; bancada pelos patrocinadores, era de se esperar que os mesmos tentassem vender seus produtos durante as palestras. Não gostei de ver apresentações com slides &#8220;shareados&#8221; dando aquela sensação estranha Deja&#8217;vu&#8230;</p>
<p>Portando, com as palestras mais voltadas ao publico gerencial e não técnico, o evento deve ter agradado as pessoas que não precisam saber como o motor funciona, querem apenas ligar a chave e esperam que o carro saiam andando &#8212; e seus técnicos que se virem para aprender como a coisa funciona <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Na parte da manhã tivemos palestras muito interessantes como:</p>
<p>-  a Polícia Federal, mostrando sua solução de Virtualização usando Blades (edizendo que os dados ainda não estão todos centralizados, portanto, teoricamente você ainda pode cometer um delito em cada cidade do brasil <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
<p>- um estudo da IDC, muito bem apresentado com conteúdo técnico e gerencial bem dosado falando sobre as próximas tendências do mercado, e ainda sugerindo métodos para você virtualizar seu ambiente com a maior segurança possível;</p>
<p>- Tecnologia Quad-Core da Intel, mostrando os aspectos voltados à virtualização e prometendo novidades enormes ainda este ano;</p>
<p>- Case da PRODAM, mostrando os desafios de migrar um Data Center de local, arruma-lo e ainda Virtualizar para abstrair o Hardware. Não posso deixar de citar a quantidade de equipamentos velhos e obsoletos que faziam parte do DC deles, e também as duas toneladas de cabos de rede desnecessários que foram removidos durante a migração, pois os comentários que se escutava era: &#8220;está vendo o que é feito com o seu dinheiro dos impostos?&#8221; <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> </p>
<p>Acho ainda interessante dizer que na parte da tarde, a cada palestra de 1 hora o pessoal da vmware abriu um espaço de 15 minutos para algum parceiro deles falaram um pouco sobre a empresa, e por incrível que pareça, esses 15 minutos foram extremamente técnicos (NetApp, EMC e Sun com o Rafael Tinoco, que mandou muito bem no <a href="http://www.everlinux.com/blog/category/fisl/fisl90/">FISL 9.0</a>) alegrando eu e mais o restante de público Nerd não-gerente ali presente.</p>
<p>Claro que eu já esperava que o evento seria mais voltado à executivos de Terno e Gravata do que para Nerds de Jeans e Camiseta, portanto não posso dizer que estou decepcionado pois eu sabia que isso não era nenhum FISL. Muito pelo contrário, o lugar foi muito bem escolhido, a organização foi ótima e o evento bastante proveitoso.</p>
<p>Também serviu para encontrar velhos amigos (ex-professores do meu colégio, colegas de classe da faculdade, amigos de outras empresas e figuras que eu só encontro no FISL), além de perder um pouco o medo do inglês tentando fazer uns gringos entender que na maior parte das vezes, nós não usamos Linux porque é &#8220;de graça&#8221; ou é mais barato do que a solução X ou Y &#8212; muito pelo contrário, na maior parte das vezes nós pagamos pelo Linux (SuSE, Red Hat) mas usamos devido a suas características serem superiores do que as dos concorrentes, como por exemplo Desempenho, Estabilidade e Segurança.</p>
<p>E foi bom saber também que as empresas estão correndo atrás em adaptar seus produtos/ soluções para Linux nos próximos meses (o <a href="http://www.symmetry.com.br/vizioncore_vconverter.php">VConverter da VizionCore</a> me parece muito promissor). Além do mais, as empresas que já tem solução para Red Hat ainda não expandiram a mesma para SuSE ou Ubuntu devido a problemas gerenciais, como o treinamento do pessoal de suporte e etc, e não por problemas técnicos.</p>
<p>Muito interessante também o pessoal da NetAPP elogiando o iSCSI que geralmente não é bem vindo por ser uma alternativa barata às caríssimas soluções com FC/HBA&#8230;</p>
<p>E para fechar, uma feature do VmWare que eu gostei muito e sinto falta no Xen é o chamado &#8220;VmWare LifeCycle Manager&#8221; que irá cuidar que as suas máquinas virtuais não se proliferem e espalhem em seu ambiente que nem coelhos, pois como é muito fácil provisionar a mesma é também muito fácil você perder o controle e não ter mais certeza se a VM está ou não sendo utilizada ainda&#8230;</p>
<p>Bom, vou parando por aqui e peço desculpas se o texto ficou muito grande ou com as idéias desordenadas&#8230; agora preciso descansar pois amanhã terei mais uma migração grande para fazer de madrugada, portanto, um dia desses eu arrumo melhor este texto <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Boa noite para vocês<br />
Diga &#8220;WI!!!!!!!&#8221; <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
PS: O console só chega semana que vem&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2008/06/19/vmware-virtualization-forum-2008-eu-fui/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fazendo backup das suas VM’s do Xen: Atualizado</title>
		<link>http://everlinux.com/blog/2008/05/12/fazendo-backup-das-suas-vm%e2%80%99s-do-xen-atualizado</link>
		<comments>http://everlinux.com/blog/2008/05/12/fazendo-backup-das-suas-vm%e2%80%99s-do-xen-atualizado#comments</comments>
		<pubDate>Mon, 12 May 2008 19:44:21 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2008/05/12/fazendo-backup-das-suas-vm%e2%80%99s-do-xen-atualizado/</guid>
		<description><![CDATA[O script anterior foi atualizado contando com algumas melhorias sugeridas pelos seus usuários, como: - Agora ele é escrito em Inglês, para maior portabilidade com outros usuários do xen ao redor do mundo; - Você pode fazer backup de somente uma máquina específica, não é mais necessário esperar todo o laço terminar para ver o [...]]]></description>
			<content:encoded><![CDATA[<p>O <a href="http://www.everlinux.com/blog/2008/04/03/fazendo-backup-das-suas-vms-do-xen/">script anterior</a> foi atualizado contando com algumas melhorias sugeridas pelos seus usuários, como:</p>
<p>- Agora ele é escrito em Inglês, para maior portabilidade com outros usuários do xen ao redor do mundo;</p>
<p>- Você pode fazer backup de somente uma máquina específica, não é mais necessário esperar todo o laço terminar para ver o resultado do mesmo;</p>
<p>- Script parametrizado e funcões sub-divididas e</p>
<p>- Pequenos problemas corrigidos.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Backup of Xen VM's</span>
<span style="color: #666666; font-style: italic;"># Tiago Cruz - tiagocruz@everlinux.com</span>
<span style="color: #666666; font-style: italic;"># v 1.0	Mar/2008 - Initial version, just backup all VM's</span>
<span style="color: #666666; font-style: italic;"># v 1.1 May/2008 - Now we have functions and parameters</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #007800;">BACK</span>=<span style="color: #ff0000;">&quot;_snap&quot;</span>
<span style="color: #007800;">LOG</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>backup.<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #666666; font-style: italic;"># root partition to backup (&quot;/&quot;)</span>
<span style="color: #666666; font-style: italic;"># usually the second it's swap</span>
<span style="color: #007800;">ROOT</span>=<span style="color: #ff0000;">&quot;1&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;/mnt/back&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span>  <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;/data/backup&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span>  <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>backup
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> showHelp<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span>        
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Use the following parameters: &quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          help   = Show this help&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          all    = Backup of all VM's&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          list   = List all VM's from this domain&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;          &lt;vm&gt;   = Backup one specific VM&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ex: back_xen.sh tomcat_shop&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> listVM<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;List of VM's avaliables:&quot;</span>
	<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>xm list <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'(Name|Domain-0)'</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> backXen <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backuping machine <span style="color: #007800;">$i</span>...&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Please, look the progress on <span style="color: #007800;">$LOG</span>&quot;</span>
	listVM <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Machine <span style="color: #007800;">$i</span> does not exist, aborting!&quot;</span>
		<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">2</span>
	<span style="color: #000000; font-weight: bold;">fi</span>	
	backup
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup of <span style="color: #007800;">$i</span> completed successfully!!!&quot;</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup finalized on <span style="color: #780078;">`date`</span> with load <span style="color: #780078;">`cat /proc/loadavg | cut -c 1-14`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;==============================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;==============================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> backAll <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #007800;">VMS</span>=<span style="color: #000000; font-weight: bold;">`</span>xm list <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'(Name|Domain-0)'</span><span style="color: #000000; font-weight: bold;">`</span>
	<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$VMS</span>; <span style="color: #000000; font-weight: bold;">do</span>
		backup
	<span style="color: #000000; font-weight: bold;">done</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup finalized on <span style="color: #780078;">`date`</span> with load <span style="color: #780078;">`cat /proc/loadavg | cut -c 1-14`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;==============================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;==============================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> backup <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;==============================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup <span style="color: #007800;">$i</span> started on <span style="color: #780078;">`date`</span> with load <span style="color: #780078;">`cat /proc/loadavg | cut -c 1-14`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
	<span style="color: #007800;">DEVICE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">grep</span> ^disk <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;Vol_LVM&quot;</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> , <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Virtual Machine <span style="color: #007800;">$i</span> uses <span style="color: #007800;">$DEVICE</span> as storage device&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
	lvcreate <span style="color: #660033;">--snapshot</span> <span style="color: #660033;">-L</span> 15G <span style="color: #660033;">-n</span> <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DEVICE</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
	<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error <span style="color: #007800;">$i</span>: creating LVM <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> 
&nbsp;
	kpartx <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
	<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span><span style="color: #007800;">$ROOT</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
	<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error <span style="color: #007800;">$i</span>: mounting <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span><span style="color: #007800;">$ROOT</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> 
&nbsp;
	<span style="color: #007800;">SIZE1</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-hP</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $3}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> Used<span style="color: #000000; font-weight: bold;">`</span>
	<span style="color: #007800;">SIZE2</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-hP</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> Size<span style="color: #000000; font-weight: bold;">`</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup of /dev/mapper/Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span><span style="color: #007800;">$ROOT</span> - <span style="color: #007800;">$SIZE1</span> of <span style="color: #007800;">$SIZE2</span> used&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
	<span style="color: #c20cb9; font-weight: bold;">tar</span> zcf <span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span>-xen.tar.gz <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
	<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error <span style="color: #007800;">$i</span>: creating /LVM/backup/<span style="color: #007800;">$i</span>.tar.gz&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> 
&nbsp;
	<span style="color: #007800;">SIZE3</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lh</span> <span style="color: #000000; font-weight: bold;">/</span>LVM<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span>-xen.tar.gz  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $5}'</span><span style="color: #000000; font-weight: bold;">`</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Created /LVM/backup/<span style="color: #007800;">$i</span>-xen.tar.gz with <span style="color: #007800;">$SIZE3</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
	<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
	<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
	<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error <span style="color: #007800;">$i</span>: umounting <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> 
	kpartx <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
	<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error <span style="color: #007800;">$i</span>: deleting partition mappings <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> 
&nbsp;
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Removing snapshot already backuped <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
	lvremove <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$#&quot;</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	showHelp
&nbsp;
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span> 
	list<span style="color: #7a0874; font-weight: bold;">&#41;</span>	listVM	<span style="color: #000000; font-weight: bold;">;;</span>
	all <span style="color: #7a0874; font-weight: bold;">&#41;</span>	backAll	<span style="color: #000000; font-weight: bold;">;;</span>
	<span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>	showHelp <span style="color: #000000; font-weight: bold;">;;</span>
	 <span style="color: #000000; font-weight: bold;">*</span>  <span style="color: #7a0874; font-weight: bold;">&#41;</span>  	<span style="color: #007800;">i</span>=$<span style="color: #000000;">1</span>; backXen <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></div></div>

<p>Caso tenha problemas com o copy-past, você pode pegar o mesmo aqui: <a href="http://www.everlinux.com/tiago/shell/back_xen.sh.txt">back_xen.sh.txt</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2008/05/12/fazendo-backup-das-suas-vm%e2%80%99s-do-xen-atualizado/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Fazendo backup das suas VM&#8217;s do Xen</title>
		<link>http://everlinux.com/blog/2008/04/03/fazendo-backup-das-suas-vms-do-xen</link>
		<comments>http://everlinux.com/blog/2008/04/03/fazendo-backup-das-suas-vms-do-xen#comments</comments>
		<pubDate>Thu, 03 Apr 2008 14:06:51 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2008/04/03/fazendo-backup-das-suas-vms-do-xen/</guid>
		<description><![CDATA[Se você usa o Xen, usa Storage Devices sob LVM, e acha importante ter um backup das mesmas, você pode utilizar/ adaptar este pequeno script que tira um snapshot e em seguida faz um &#8220;tar.gz&#8221; de todo o &#8220;/&#8221; da sua VM, e a guarda em um local para que você possa restaura-lo caso necessário. [...]]]></description>
			<content:encoded><![CDATA[<p>Se você usa o Xen, usa Storage Devices sob LVM, e acha importante ter um backup das mesmas, você pode utilizar/ adaptar este pequeno script que tira um snapshot e em seguida faz um &#8220;tar.gz&#8221; de todo o &#8220;/&#8221; da sua VM, e a guarda em um local para que você possa restaura-lo caso necessário. <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Backup das VM's do Xen</span>
<span style="color: #666666; font-style: italic;"># Tiago Cruz - tiagocruz@everlinux.com</span>
<span style="color: #666666; font-style: italic;"># Mar/2008</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
&nbsp;
<span style="color: #007800;">VMS</span>=<span style="color: #000000; font-weight: bold;">`</span>xm list <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'(Name|Domain-0)'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">BACK</span>=<span style="color: #ff0000;">&quot;_snap&quot;</span>
<span style="color: #007800;">LOG</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>backup
<span style="color: #666666; font-style: italic;"># Particao root, geralmente a segunda eh swap</span>
<span style="color: #007800;">ROOT</span>=<span style="color: #ff0000;">&quot;1&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;/mnt/back&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span>  <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;/dados/backup&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span>  <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>dados<span style="color: #000000; font-weight: bold;">/</span>backup
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$VMS</span>; <span style="color: #000000; font-weight: bold;">do</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=================================================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup <span style="color: #007800;">$i</span> iniciado em <span style="color: #780078;">`date`</span> com load de <span style="color: #780078;">`cat /proc/loadavg`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #007800;">DEVICE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">grep</span> disk <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;Vol_LVM&quot;</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> , <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Maquina Virtual <span style="color: #007800;">$i</span> usa <span style="color: #007800;">$DEVICE</span> como storage device&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
        lvcreate <span style="color: #660033;">--snapshot</span> <span style="color: #660033;">-L</span> 15G <span style="color: #660033;">-n</span> <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DEVICE</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Erro <span style="color: #007800;">$i</span>: criando LVM <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
        kpartx <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span><span style="color: #007800;">$ROOT</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Erro <span style="color: #007800;">$i</span>: montando <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span><span style="color: #007800;">$ROOT</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
        <span style="color: #007800;">SIZE1</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-hP</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $3}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> Used<span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #007800;">SIZE2</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-hP</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> Size<span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup de /dev/mapper/Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span><span style="color: #007800;">$ROOT</span> - <span style="color: #007800;">$SIZE1</span> de <span style="color: #007800;">$SIZE2</span> usados&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #c20cb9; font-weight: bold;">tar</span> zcf <span style="color: #000000; font-weight: bold;">/</span>dados<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span>-xen.tar.gz <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Erro <span style="color: #007800;">$i</span>: criando /dados/backup/<span style="color: #007800;">$i</span>.tar.gz&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
        <span style="color: #007800;">SIZE3</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lh</span> <span style="color: #000000; font-weight: bold;">/</span>dados<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span>-xen.tar.gz  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $5}'</span><span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Criado /dados/backup/<span style="color: #007800;">$i</span>-xen.tar.gz com <span style="color: #007800;">$SIZE3</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
        <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>back<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Erro <span style="color: #007800;">$i</span>: desmontando <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        kpartx <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM-<span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Erro <span style="color: #007800;">$i</span>: desmapeando <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
&nbsp;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Removendo snapshot ja backupeado <span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
        lvremove <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>Vol_LVM<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span><span style="color: #007800;">$BACK</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup finalizado em <span style="color: #780078;">`date`</span> com load de <span style="color: #780078;">`cat /proc/loadavg`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=================================================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=================================================================&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOG</span></pre></div></div>

<p>Trecho do log:</p>
<blockquote><p>Backup ora_busca iniciado em Fri Mar 28 05:02:53 BRT 2008 com load de 1.31 1.33 1.21<br />
Maquina Virtual ora_busca usa ora_busca como storage device<br />
  Logical volume &#8220;ora_busca_snap&#8221; created<br />
Backup de /dev/mapper/Vol_LVM-ora_busca_snap1 &#8211; 16G de 95G usados<br />
Criado /dados/backup/ora_busca-xen.tar.gz com 4.9G<br />
Removendo snapshot ja backupeado ora_busca_snap<br />
  Logical volume &#8220;ora_busca_snap&#8221; successfully removed
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2008/04/03/fazendo-backup-das-suas-vms-do-xen/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Clonando VM&#8217;s no XEN</title>
		<link>http://everlinux.com/blog/2008/02/07/clonando-vms-no-xen</link>
		<comments>http://everlinux.com/blog/2008/02/07/clonando-vms-no-xen#comments</comments>
		<pubDate>Thu, 07 Feb 2008 18:16:48 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2008/02/07/clonando-vms-no-xen/</guid>
		<description><![CDATA[1-) Estou armazenando as VMs no LVM: # lvcreate -Ay -L 60G -n vm00 Vol_LVM # lvcreate -Ay -L 60G -n vm01 Vol_LVM # lvcreate -Ay -L 60G -n vm02 Vol_LVM 2-) Estou usando o &#8220;partimage-0.6.7_beta2.tar.bz2&#8243;, pois a versão stable não funciona bem em 64 bits: 3-) A primeira VM deve ser instalada/ configurada manualmente/normalmente. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1-)</strong> Estou armazenando as VMs no LVM:</p>
<p><code>	# lvcreate -Ay -L 60G -n vm00 Vol_LVM<br />
	# lvcreate -Ay -L 60G -n vm01 Vol_LVM<br />
	# lvcreate -Ay -L 60G -n vm02 Vol_LVM<br />
</code><br />
<strong>2-)</strong> Estou usando o &#8220;partimage-0.6.7_beta2.tar.bz2&#8243;, pois a versão stable não funciona bem em 64 bits:</p>
<p><strong>3-)</strong> A primeira VM deve ser instalada/ configurada manualmente/normalmente. Depois você pode tirar uma cópia dela:</p>
<p><code>	# kpartx -a /dev/mapper/Vol_LVM-vm01<br />
	# partimage -z1 save /dev/mapper/Vol_LVM-vm01p1 /LVM/vm01p1.partimg.gz</code><br />
ou<br />
<code>	# partimage -z0 -c -d -f0 save /dev/mapper/Vol_LVM-vm01p1 /LVM/vm01p1.partimg<br />
	# kpartx -d /dev/mapper/Vol_LVM-vm01</code></p>
<p>PS: Note que se você usar compressão (-z1) a geração da imagem vai demorar mais para ser criado, porém com o tamanho bem menor (515M vs 3.7GB) . A restauração da mesma também será mais lenta.</p>
<p><strong>4-)</strong> Com base na primeira VM:</p>
<p><code># fdisk -l /dev/mapper/Vol_LVM-vm00<br />
Disk /dev/mapper/Vol_LVM-vm00: 64.4 GB, 64424509440 bytes<br />
255 heads, 63 sectors/track, 7832 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>                   Device Boot      Start         End      Blocks   Id  System<br />
/dev/mapper/Vol_LVM-vm00p1   *           2        7395    59392305   83  Linux<br />
/dev/mapper/Vol_LVM-vm00p2            7396        7832     3510202+  82  Linux swap / Solaris<br />
</code></p>
<p>Você poderá preparar um arquivo, por exemplo, /tmp/parttable, com as especificações das demais partições.<br />
1,7394,83,*<br />
7395,,82,-</p>
<p>Estou usando uma partição primária para o raiz &#8220;/&#8221; (tipo 83) com ~ 60 GB e o restante para swap (tipo 82).</p>
<p>Você poderá usar o sfdisk e especificar os dados em: sectors, blocks, cylinders ou megabytes.</p>
<p><strong>5-)</strong> Crie as partições para a segunda VM:</p>
<p><code>	# dd if=/dev/zero of=/dev/mapper/Vol_LVM-vm01 count=1 bs=512<br />
	# sfdisk -uC /dev/mapper/Vol_LVM-vm01 < /tmp/parttable</code></p>
<p>Se preferir, simplesmente faça o processo manualmente:<br />
# fdisk /dev/mapper/Vol_LVM-vm01</p>
<p><strong>6-)</strong> Crie a SWAP para o segundo device:</p>
<p>Será necessário usar o "kpartx" para "mapear" as partições que existem dentro do device LVM:</p>
<p><code>	# kpartx -a /dev/mapper/Vol_LVM-vm01<br />
	# ll /dev/mapper/Vol_LVM-vm01*<br />
	# mkswap /dev/mapper/Vol_LVM-vm01p2<br />
</code><br />
<strong>7-)</strong> Restaure a imagem da primeira VM:</p>
<p>- Restauração com GZIP:</p>
<blockquote><p>	# partimage restore /dev/mapper/Vol_LVM-vm02p1 /LVM/vm01p1.partimg.gz<br />
        Time elapsed: 10m:59sec<br />
        Speed: 5.16 GiB/min<br />
        Data copied: 56.64 GiB</p></blockquote>
<p>- Restauração sem GZIP:</p>
<blockquote><p>	# partimage restore /dev/mapper/Vol_LVM-vm03p1 /LVM/vm01p1.partimg.000<br />
        Time elapsed:  1m:15sec<br />
        Speed: 2.90 GiB/min<br />
        Data copied: 3.62 GiB</p></blockquote>
<p><strong> <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </strong> Monte a VM e troque endereços de IP, hostname e MAC Address:<br />
<code>	# mount /dev/mapper/Vol_LVM-vm01p1 /mnt/xen/<br />
        # vi /mnt/xen/etc/sysconfig/network-scripts/ifcfg-eth0<br />
        # vi /mnt/xen/etc/sysconfig/network<br />
        # vi /mnt/xen/etc/hosts</code></p>
<p>PS: Use o macgen.py para alterar o MAC address:</p>
<blockquote><p>$ cat macgen.py<br />
	#! /usr/bin/python<br />
	# macgen.py script generates a MAC address for Xen guests<br />
	#<br />
	import random<br />
	mac = [ 0x00, 0x16, 0x3e,<br />
	random.randint(0x00, 0x7f),<br />
	random.randint(0x00, 0xff),<br />
	random.randint(0x00, 0xff) ]<br />
	print ':'.join(map(lambda x: "%02x" % x, mac))</p></blockquote>
<p><strong>9-) </strong>Desmonte a partição, e arrume seu /etc/xen/vm02:</p>
<p><code>	# umount /mnt/xen<br />
	# kpartx -d /dev/mapper/Vol_LVM-vm02<br />
</code></p>
<p>Utilize o "uuidgen" para gerar um novo UUID para sua VM.<br />
Não esqueça de trocar também o MAC no campo "vif" e o device LVM, ex:</p>
<blockquote><p>name = "vm02"<br />
uuid = "82f89076-487e-4de5-ab4a-99ce07c586eb"<br />
maxmem = 1000<br />
memory = 800<br />
vcpus = 1<br />
bootloader = "/usr/bin/pygrub"<br />
on_poweroff = "destroy"<br />
on_reboot = "restart"<br />
on_crash = "restart"<br />
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]<br />
disk = [ "phy:/dev/Vol_LVM/vm01,xvda,w" ]<br />
vif = [ "mac=00:16:3e:5a:02:a6,bridge=xenbr0" ]
</p></blockquote>
<p><strong>10-) </strong>Inicie a VM e corra para o abraço:</p>
<p>	<code># xm create vm02 -c</code></p>
<p>Em caso de problemas, consulte este artigo: <a href="http://www.everlinux.com/blog/2007/12/04/xen-dicas-rapidas-e-problemas-resolvidos/">Xen: Dicas rápidas e problemas resolvidos</a></p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2008/02/07/clonando-vms-no-xen/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Xen &#8211; Dicas rápidas e problemas resolvidos</title>
		<link>http://everlinux.com/blog/2007/12/04/xen-dicas-rapidas-e-problemas-resolvidos</link>
		<comments>http://everlinux.com/blog/2007/12/04/xen-dicas-rapidas-e-problemas-resolvidos#comments</comments>
		<pubDate>Tue, 04 Dec 2007 16:02:43 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2007/12/04/xen-dicas-rapidas-e-problemas-resolvidos/</guid>
		<description><![CDATA[1-) Problemas com o reconhecimento do disco durante o boot: &#8220;Booting from Hard Disk Boot from Hard Disk failed: coud not read the boot disk FATAL: No bootable device&#8221; Verifique qual é o device utilizado em seu arquivo de configuração. Máquinas Para-Virtualizadas geralmente utilizam &#8216;xvda&#8217;: disk = [ 'phy:/dev/Vol_LVM/xen_01,xvda,w', ] Máquinas Full-Virtualizadas (HVM) geralmente utilizam-se [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1-) Problemas com o reconhecimento do disco durante o boot:</strong></p>
<p><em>&#8220;Booting from Hard Disk<br />
Boot from Hard Disk failed: coud not read the boot disk<br />
FATAL: No bootable device&#8221;</em></p>
<p>Verifique qual é o device utilizado em seu arquivo de configuração. Máquinas Para-Virtualizadas geralmente utilizam &#8216;xvda&#8217;:</p>
<p><code>disk = [ 'phy:/dev/Vol_LVM/xen_01,xvda,w', ]</code></p>
<p>Máquinas Full-Virtualizadas (HVM) geralmente utilizam-se de &#8216;hda&#8217; ou &#8216;sda&#8217;.</p>
<p><code>disk = [ 'phy:/dev/Vol_LVM/xen_01,hda,w', ]</code></p>
<p>Para saber mais sobre os tipos de virtualizações existentes, consulte este post: <a href="http://www.everlinux.com/blog/2007/04/27/falando-um-pouco-sobre-virtualizacao/">Falando um pouco sobre Virtualização</a></p>
<p><strong>2-) Se a sua placa de rede não é reconhecida depois do boot:</strong></p>
<p>Experimente alterar o config da VM de<br />
<code>vif = [ 'mac=00:xx:xx:xx:xx:bc, bridge=xenbr0', ]</code></p>
<p>Para:<br />
<code>vif = [ 'type=ioemu, mac=00:xx:xx:xx:xx:bc, bridge=xenbr0', ]</code></p>
<p>Utilizando uma virtualização de um Red Hat 7.2, deu certo e apareceu a tal da Realtek <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>3-) Se o &#8216;xm console&#8217; não funcionar&#8230;</strong></p>
<p>- Altere o /etc/inittab (do guest) da seguinte forma:<br />
<code>...<br />
# Console do Xen<br />
co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav</p>
<p># Run gettys in standard runlevels<br />
1:2345:respawn:/sbin/mingetty tty1<br />
2:2345:respawn:/sbin/mingetty tty2<br />
...</code></p>
<p>- Dê um reload no inittab:<br />
<code># /sbin/init q<br />
</code><br />
- Altere o /etc/securetty para permitir o login de root via console:<br />
<code>...<br />
tty11<br />
xvc0<br />
</code><br />
- Se o device não existir, crie-o:<br />
<code># mknod /dev/xvc0 c 250 187</code></p>
<p><strong>4-) Para gerar um UUID para uma nova máquina virtual:</strong></p>
<p><code># uuidgen</code></p>
<p><strong>5-) Para gerar um MAC-ADDRESS para outra máquina virtual:</strong></p>
<p><code>#! /usr/bin/python<br />
# macgen.py script generates a MAC address for Xen guests<br />
#<br />
import random<br />
mac = [ 0x00, 0x16, 0x3e,<br />
random.randint(0x00, 0x7f),<br />
random.randint(0x00, 0xff),<br />
random.randint(0x00, 0xff) ]<br />
print ':'.join(map(lambda x: "%02x" % x, mac))</code></p>
<p>Acredite: Seu roteador não vai gostar de encontrar duas máquinas com IP&#8217;s diferentes e MAC-ADDRESS iguais&#8230; <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2007/12/04/xen-dicas-rapidas-e-problemas-resolvidos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trabalho acadêmico sobre o Xen</title>
		<link>http://everlinux.com/blog/2007/05/22/trabalho-academico-sobre-o-xen</link>
		<comments>http://everlinux.com/blog/2007/05/22/trabalho-academico-sobre-o-xen#comments</comments>
		<pubDate>Tue, 22 May 2007 17:10:42 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Apresentação]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2007/05/22/trabalho-academico-sobre-o-xen/</guid>
		<description><![CDATA[Este é um trabalho acadêmico realizado pelos meus alunos do 3 Semestre do curso de Tecnologia em Redes de Computadores, da FAENAC em São Caetano do Sul. Os alunos fizeram algo muito interessante: Em um notebook P4 com 512 MB de RAM rodando Windows XP, instalaram o Ubuntu Feisty 7.04 dentro de um Vmware, e [...]]]></description>
			<content:encoded><![CDATA[<p>Este é um trabalho acadêmico realizado pelos meus alunos do 3 Semestre do curso de Tecnologia em Redes de Computadores,  da <a href="http://www.faenac.edu.br/cur_especifico.asp?IdCurso=25&#038;IdCategoria=4">FAENAC</a> em São Caetano do Sul.</p>
<p>Os alunos fizeram algo muito interessante: Em um notebook P4 com 512 MB de RAM rodando Windows XP, instalaram o Ubuntu Feisty 7.04 dentro de um Vmware, e dentro desta máquina virtual configuraram um <a href="http://www.everlinux.com/blog/category/xen/">Xen</a> para rodar uma <a href="http://www.everlinux.com/blog/2007/04/27/falando-um-pouco-sobre-virtualizacao/">para-virtualização</a> do Ubuntu Edgy 6.10.</p>
<p>Uma pena que eles esqueceram de colocar as fontes das consultas, mas eu sei que uma delas foi retirada do <a href="https://help.ubuntu.com/community/XenVirtualMachine/XenOnUbuntuFeisty">Wiki do Ubuntu</a>, a qual eu mesmo escrevi. E antes que eu esqueça, sim eles serão penalizados por esquecerem de citar a fonte! <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>A apresentação deles está bem recheada de ScreenShoots das configurações, mas você pode usar o Wiki se quiser fazer algo parecido (está mais legível). </p>
<p>Alunos:<br />
Cezimar Nascimento / Diego Carvalho / Jose Wilter Frazão /  Josiel Borges e Rodolfo Domingues</p>
<p>Link para download: <a href='http://www.everlinux.com/blog/wp-content/uploads/2007/05/apresentacao_xen.zip' title='Apresentação Acadêmica sobre o XEN'>Apresentação Acadêmica sobre o XEN</a></p>
<p>Abraços a todos</p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2007/05/22/trabalho-academico-sobre-o-xen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalar guest OS com mais de um CD no XEN</title>
		<link>http://everlinux.com/blog/2007/05/11/instalar-guest-os-com-mais-de-um-cd-no-xen</link>
		<comments>http://everlinux.com/blog/2007/05/11/instalar-guest-os-com-mais-de-um-cd-no-xen#comments</comments>
		<pubDate>Fri, 11 May 2007 18:24:36 +0000</pubDate>
		<dc:creator>Tiago Cruz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.everlinux.com/blog/2007/05/11/instalar-guest-os-com-mais-de-um-cd-no-xen/</guid>
		<description><![CDATA[Uma dica rápida, colaboração do meu amigo Deny C. Luchetti: Um problema de usar o virt-manager da Red Hat (também presente no Mandriva 2007.1!) para criar e administrar máquinas virtuais é o fato de que você simplesmente não consegue trocar de CD durante a instalação do guest OS, conforme eu havia comentado no artigo anterior [...]]]></description>
			<content:encoded><![CDATA[<p>Uma dica rápida, colaboração do meu amigo Deny C. Luchetti:</p>
<p>Um problema de usar o <a href="http://virt-manager.et.redhat.com/">virt-manager</a> da Red Hat (também presente no <a href="http://www.everlinux.com/blog/2007/05/07/breve-analise-do-mandriva-spring-20071/">Mandriva 2007.1</a>!) para criar e administrar máquinas virtuais é o fato de que você simplesmente não consegue trocar de CD durante a instalação do guest OS, conforme eu havia comentado no artigo anterior sobre o <a href="http://www.everlinux.com/blog/2007/05/02/xen-no-red-hat-es-5/">Xen no Red Hat ES 5</a> <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>O que acontece é uma pequena salada: O Xen não faz a instalação, ele executa uma versão modificada do qemu para faze-lo. E para trocar os CD&#8217;s pelo qemu existe um pequeno truque, bem documentado por sinal. O que não bem estava documentado era que o Xen da Red Hat chama o VNC por padrão quando você pede o console da máquina, e infelizmente, as teclas de atalho do qemu não funcionam dentro do VNC. Entendeu? Se não, leia de novo :-p</p>
<p>Para resolver isso, basta desabilitar o VNC no arquivo de configuração gerado pelo virt-manager (nota: o console gráfico continua funcionando, e até mais rápido!), mais ou menos assim:</p>
<blockquote><p>name = &#8220;suse93&#8243;<br />
builder = &#8220;hvm&#8221;<br />
memory = &#8220;500&#8243;<br />
disk = [ 'phy:/dev/lvm/xen_suse93,hda,w', 'file:/home/dluchetti/suse93.iso,hdc:cdrom,r',]<br />
vif = [ 'type=ioemu, mac=00:16:3e:36:5b:9b, bridge=xenbr1',]<br />
uuid = &#8220;e4e85bc7-b244-9d85-ec7a-b06728e6c70c&#8221;<br />
device_model = &#8220;/usr/lib64/xen/bin/qemu-dm&#8221;<br />
kernel = &#8220;/usr/lib/xen/boot/hvmloader&#8221;<br />
vnc=0<br />
vncunused=0<br />
apic=0<br />
acpi=0<br />
pae=1<br />
vcpus=1<br />
boot=&#8221;d&#8221;<br />
ne2000=1<br />
serial = &#8220;pty&#8221;<br />
on_reboot   = &#8216;restart&#8217;<br />
on_crash    = &#8216;restart&#8217;
</p></blockquote>
<p>E, finalmente, para trocar a ISO do qemu e continuar a instalação, basta fazer assim:</p>
<p>Teclar &#8220;CRTL+ALT+2&#8243;  (atenção, não é F2!) e digitar:</p>
<blockquote><p>(qemu) eject cdrom<br />
(qemu) change cdrom /caminho/para/a/segunda/iso/arquivo.iso</p></blockquote>
<p>Facinho né?<br />
Abraços e boas virtualizações para vocês <img src='http://everlinux.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://everlinux.com/blog/2007/05/11/instalar-guest-os-com-mais-de-um-cd-no-xen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  everlinux.com/blog/category/virtualizacao/feed ) in 1.34683 seconds, on Jul 30th, 2010 at 8:57 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Jul 30th, 2010 at 9:57 pm UTC -->