viernes, 28 de septiembre de 2012

Montar iso o DVD sobre un LDOM



Ahora toca instalar el SO sobre el ldom aqui estan los pasos breves para montar un iso sobre el dominio.

root@t5120 # ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      8     2G       0.2%  21h 17m
ldg0             active     -n----  5000    8     512M     0.1%  15h 40m
ldg1             active     -t----  5001    8     512M      12%  21h 15m
ldg2             active     -t----  5002    8     512M      12%  21h 15m
root@t5120 #


Primero bajo el dominio en el cual quiero montar el SO que es el ldg1

root@t5120 # ldm stop ldg1
LDom ldg1 stopped
root@t5120 # ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      8     2G       0.3%  21h 17m
ldg0             active     -n----  5000    8     512M     0.1%  15h 41m
ldg1             bound      ------  5001    8     512M          
ldg2             active     -t----  5002    8     512M      12%  21h 15m
root@t5120 #

Ahora de desenlaza el dominio con el comando

root@t5120 # ldm unbind ldg1
root@t5120 # ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      8     2G       2.0%  21h 19m
ldg0             active     -n----  5000    8     512M     0.1%  15h 42m
ldg2             active     -t----  5002    8     512M      12%  21h 17m
ldg1             inactive   ------          8     512M          
root@t5120 #

Ahora si se puede añadir el iso desde el dominio primario

root@t5120 # ldm add-vdsdev /export/home/itc/install/V27764-01.iso iso_vol@primary-vds0
root@t5120 # ldm add-vdisk vdisk_iso iso_vol@primary-vds0 ldg1
root@t5120 # 

root@t5120 # ldm bind ldg1
root@t5120 # ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      8     2G       2.2%  21h 35m
ldg1             bound      ------  5000    8     512M          
ldg2             active     -t----  5002    8     512M      12%  21h 32m
ldg0             inactive   ------          8     512M          
root@t5120 #

root@t5120 # ldm start ldg1
LDom ldg1 started
root@t5120 # ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      8     2G       0.2%  21h 35m
ldg1             active     -t----  5000    8     512M     4.6%  2s
ldg2             active     -t----  5002    8     512M      12%  21h 33m
ldg0             inactive   ------          8     512M          
root@t5120 #

Nos conectamos al dominio y se verifica el est

{0} ok banner

SPARC Enterprise T5120, No Keyboard
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.33.0.b, 512 MB memory available, Serial #83525636.
Ethernet address 0:14:4f:fa:80:4, Host ID: 84fa8004.



{0} ok devalias
vdisk_iso                /virtual-devices@100/channel-devices@200/disk@1
vdisk0                   /virtual-devices@100/channel-devices@200/disk@0
vnet0                    /virtual-devices@100/channel-devices@200/network@0
net                      /virtual-devices@100/channel-devices@200/network@0
disk                     /virtual-devices@100/channel-devices@200/disk@0
virtual-console          /virtual-devices/console@1
name                     aliases
{0} ok


En esta instancia ya se puede levantar desde el iso virtual

{0} ok boot cdrom 
Boot device: /virtual-devices@100/channel-devices@200/disk@0  File and args: cdrom
Bad magic number in disk label
ERROR: /virtual-devices@100/channel-devices@200/disk@0: Can't open disk label package

ERROR: boot-read fail


Can't open boot device

{0} ok boot vdisk_iso
Boot device: /virtual-devices@100/channel-devices@200/disk@1  File and args:
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface vnet0...



Para remover hay que seguir el siguiente orden.

1 Parar el dominio

2 Desenlazar el dominio

3 Remover el disco con el comando
 ldm remove-vdisk [-f] disk-name ldom
root@t5120 # ldm remove-vdisk vdisk_iso  ldg0

4 Remover el device entregado al dominio con:
ldm remove-vdsdev [-f] volume-name@service-n
root@t5120 # ldm remove-vdsdev iso_vol@primary-vds0    
root@t5120 # 

Thats all!!

No hay comentarios:

Publicar un comentario