Mudanças entre a Versão Inicial e Versão 1 de RecoverDamagedVDI


Ignorar:
Timestamp:
21/05/2015 15:58:14 (6 anos atrás)
Autor:
fabior
Comentário:

--

Legenda:

Não Modificado
Adicionado
Removido
Modificado
  • RecoverDamagedVDI

    v1 v1  
     1= Como recuperar um disco virtual danificado =
     2== Apresentando erro VDI Unavailable. ==
     3Ok, to do that, create a new vdi larger than the one that is damaged. Preferably use the command line:
     4
     5[[BR]]
     6{{{
     7xe vdi-create sr-uuid=bc4c43f3-1321-2b17-bef0-3b58686a8075
     8name-label=copy virtual-size=210130436096
     9}}}
     10[[BR]] the sr-uuid is the storage where you want to put the copy. Take note of the uuid that comes up after you execute the command[[BR]] [[BR]] get the uuid of your xenserver control domain by doing[[BR]]
     11{{{
     12xe vm-list name-label=Control\ domain\ on\ host:\
     13<name of your xenserver host> params=uuid
     14}}}
     15[[BR]] then create the vbd [[BR]]
     16{{{
     17xe vbd-create vm-uuid=<vm-uuid you got from the previous command>
     18vdi-uuid=<vdi uuid you got from the vdi-create command> device=0
     19}}}
     20[[BR]] plug the vbd[[BR]]
     21{{{
     22xe vbd-plug uuid=<vbd uuid you got from the previous command>
     23}}}
     24[[BR]] then do the copy[[BR]] [[BR]]
     25{{{
     26dd if=/dev/mapper/VG_XenStorage--bc4c43f3--1321--2b17--bef0--3b58686a8075-
     27VHD--b079b55a--6679--47a1--b2a2--d207a476494e of=/dev/xvda
     28}}}
     29[[BR]] The copy will take several minutes. When finished unplug the vbd[[BR]] [[BR]]
     30{{{
     31xe vbd-unplug uuid=<vbd uuid you got from the vbd-create command>
     32}}}
     33{{{
     34xe vbd-destroy uuid=<vbd uuid you got from the vbd-create command>
     35}}}
     36[[BR]] Afterwards, you can connect the new vdi to a vm and see if you can recover anything.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.