Diferencia entre revisiones de «Montar disco duro fisico en VM»

De enunpimpam
Saltar a: navegación, buscar
Línea 10: Línea 10:
 
==Listar dispositivos==
 
==Listar dispositivos==
 
  ls -lah /vmfs/devices/disks/
 
  ls -lah /vmfs/devices/disks/
<syntaxhighlight lang="css"> vml.01000000002020202020202020202020203958573033364a4b535433313530 -> naa.5000c5001a2b6b7e
+
<syntaxhighlight lang="css">
vml.01000000002020202020202020202020203958573033364a4b535433313530:2 -> naa.5000c5001a2b6b7e:2
+
vml.01000000002020202020202020202020203958573033364a4b535433313530 -> naa.5000c5001a2b6b7e
vml.0100000000202020202057442d574341533833323637313936574443205744 -> naa.50014ee25619eff0
+
vml.01000000002020202020202020202020203958573033364a4b535433313530:2 -> naa.5000c5001a2b6b7e:2
vml.0100000000202020202057442d574341533833323637313936574443205744:2 -> naa.50014ee25619eff0:2
+
vml.0100000000202020202057442d574341533833323637313936574443205744 -> naa.50014ee25619eff0
vml.0100000000202020202057442d574343374b32464454533432574443205744 -> naa.50014ee2bbd7f58c
+
vml.0100000000202020202057442d574341533833323637313936574443205744:2 -> naa.50014ee25619eff0:2
vml.0100000000202020202057442d574343374b32464454533432574443205744:3 -> naa.50014ee2bbd7f58c:3
+
vml.0100000000202020202057442d574343374b32464454533432574443205744 -> naa.50014ee2bbd7f58c
vml.0100000000202020202057442d574343374b3356525946484b574443205744 -> naa.50014ee2668209a2
+
vml.0100000000202020202057442d574343374b32464454533432574443205744:3 -> naa.50014ee2bbd7f58c:3
vml.0100000000202020202057442d574343374b3356525946484b574443205744:3 -> naa.50014ee2668209a2:3
+
vml.0100000000202020202057442d574343374b3356525946484b574443205744 -> naa.50014ee2668209a2
vml.0200010000600508b1001c935101a0f711189c8d0c4c4f47494341 -> naa.600508b1001c935101a0f711189c8d0c
+
vml.0100000000202020202057442d574343374b3356525946484b574443205744:3 -> naa.50014ee2668209a2:3
vml.0200010000600508b1001c935101a0f711189c8d0c4c4f47494341:1 -> naa.600508b1001c935101a0f711189c8d0c:1
+
vml.0200010000600508b1001c935101a0f711189c8d0c4c4f47494341 -> naa.600508b1001c935101a0f711189c8d0c
vml.0200020000600508b1001cb2580df45329aeb564af4c4f47494341 -> naa.600508b1001cb2580df45329aeb564af
+
vml.0200010000600508b1001c935101a0f711189c8d0c4c4f47494341:1 -> naa.600508b1001c935101a0f711189c8d0c:1
vml.0200020000600508b1001cb2580df45329aeb564af4c4f47494341:1 -> naa.600508b1001cb2580df45329aeb564af:1
+
vml.0200020000600508b1001cb2580df45329aeb564af4c4f47494341 -> naa.600508b1001cb2580df45329aeb564af
vml.0200030000600508b1001c94344d101f9c462000094c4f47494341 -> naa.600508b1001c94344d101f9c46200009
+
vml.0200020000600508b1001cb2580df45329aeb564af4c4f47494341:1 -> naa.600508b1001cb2580df45329aeb564af:1
vml.0200030000600508b1001c94344d101f9c462000094c4f47494341:1 -> naa.600508b1001c94344d101f9c46200009:1
+
vml.0200030000600508b1001c94344d101f9c462000094c4f47494341 -> naa.600508b1001c94344d101f9c46200009
vml.0200040000600508b1001cbf030bc3754a4e140d8c4c4f47494341 -> naa.600508b1001cbf030bc3754a4e140d8c
+
vml.0200030000600508b1001c94344d101f9c462000094c4f47494341:1 -> naa.600508b1001c94344d101f9c46200009:1
vml.0200040000600508b1001cbf030bc3754a4e140d8c4c4f47494341:1 -> naa.600508b1001cbf030bc3754a4e140d8c:1
+
vml.0200040000600508b1001cbf030bc3754a4e140d8c4c4f47494341 -> naa.600508b1001cbf030bc3754a4e140d8c
vml.0200050000600508b1001c64f41a4414b42c6048354c4f47494341 -> naa.600508b1001c64f41a4414b42c604835
+
vml.0200040000600508b1001cbf030bc3754a4e140d8c4c4f47494341:1 -> naa.600508b1001cbf030bc3754a4e140d8c:1
vml.0200050000600508b1001c64f41a4414b42c6048354c4f47494341:1 -> naa.600508b1001c64f41a4414b42c604835:1
+
vml.0200050000600508b1001c64f41a4414b42c6048354c4f47494341 -> naa.600508b1001c64f41a4414b42c604835
vml.0200060000600508b1001cc6b7e768aa71eab79d8f4c4f47494341 -> naa.600508b1001cc6b7e768aa71eab79d8f
+
vml.0200050000600508b1001c64f41a4414b42c6048354c4f47494341:1 -> naa.600508b1001c64f41a4414b42c604835:1
vml.0200060000600508b1001cc6b7e768aa71eab79d8f4c4f47494341:1 -> naa.600508b1001cc6b7e768aa71eab79d8f:1</syntaxhighlight>
+
vml.0200060000600508b1001cc6b7e768aa71eab79d8f4c4f47494341 -> naa.600508b1001cc6b7e768aa71eab79d8f
 +
vml.0200060000600508b1001cc6b7e768aa71eab79d8f4c4f47494341:1 -> naa.600508b1001cc6b7e768aa71eab79d8f:1
 +
</syntaxhighlight>

Revisión del 11:54 30 oct 2020

La cuestión es que ESXi VMware particiona los discos formato VMFS, esto son fantásticos te permite ampliar la capacidad añadiendo otros discos, y otras muchas cosas.

Las VM montan archivos vmdk como discos duros que están en los almacenes de datos (particiones VMFS) todo esto es perfecto si disponemos de una gran infraestructura y no nos movemos de los productos de VMWare, la cuestión es que me he tenido que realizar el sistema de RAID por software, y la utilización de vmdk para los HD VM, dentro de las particiones VMFS, me incomoda los pasos a realizar para recuperar posibles fallos, (montar vmfsm en linux, pasar vmdk a otra dispositivo).

Así que la solución mas fácil es montar los Disco duros físicos a una VM, a la hora de fallo, estos discos pueden ser montados sin necesidad de pasos intermedios.

Entramos en host ESXi por SSH

Listar dispositivos

ls -lah /vmfs/devices/disks/
vml.01000000002020202020202020202020203958573033364a4b535433313530 -> naa.5000c5001a2b6b7e
vml.01000000002020202020202020202020203958573033364a4b535433313530:2 -> naa.5000c5001a2b6b7e:2
vml.0100000000202020202057442d574341533833323637313936574443205744 -> naa.50014ee25619eff0
vml.0100000000202020202057442d574341533833323637313936574443205744:2 -> naa.50014ee25619eff0:2
vml.0100000000202020202057442d574343374b32464454533432574443205744 -> naa.50014ee2bbd7f58c
vml.0100000000202020202057442d574343374b32464454533432574443205744:3 -> naa.50014ee2bbd7f58c:3
vml.0100000000202020202057442d574343374b3356525946484b574443205744 -> naa.50014ee2668209a2
vml.0100000000202020202057442d574343374b3356525946484b574443205744:3 -> naa.50014ee2668209a2:3
vml.0200010000600508b1001c935101a0f711189c8d0c4c4f47494341 -> naa.600508b1001c935101a0f711189c8d0c
vml.0200010000600508b1001c935101a0f711189c8d0c4c4f47494341:1 -> naa.600508b1001c935101a0f711189c8d0c:1
vml.0200020000600508b1001cb2580df45329aeb564af4c4f47494341 -> naa.600508b1001cb2580df45329aeb564af
vml.0200020000600508b1001cb2580df45329aeb564af4c4f47494341:1 -> naa.600508b1001cb2580df45329aeb564af:1
vml.0200030000600508b1001c94344d101f9c462000094c4f47494341 -> naa.600508b1001c94344d101f9c46200009
vml.0200030000600508b1001c94344d101f9c462000094c4f47494341:1 -> naa.600508b1001c94344d101f9c46200009:1
vml.0200040000600508b1001cbf030bc3754a4e140d8c4c4f47494341 -> naa.600508b1001cbf030bc3754a4e140d8c
vml.0200040000600508b1001cbf030bc3754a4e140d8c4c4f47494341:1 -> naa.600508b1001cbf030bc3754a4e140d8c:1
vml.0200050000600508b1001c64f41a4414b42c6048354c4f47494341 -> naa.600508b1001c64f41a4414b42c604835
vml.0200050000600508b1001c64f41a4414b42c6048354c4f47494341:1 -> naa.600508b1001c64f41a4414b42c604835:1
vml.0200060000600508b1001cc6b7e768aa71eab79d8f4c4f47494341 -> naa.600508b1001cc6b7e768aa71eab79d8f
vml.0200060000600508b1001cc6b7e768aa71eab79d8f4c4f47494341:1 -> naa.600508b1001cc6b7e768aa71eab79d8f:1