Bienvenidos

Todos estos pasos descriptos fueron probados en ambientes productivos

lunes, 1 de octubre de 2012

No funciona el boot net -s



Intento hacer un booteo por red, y el sector de booteo esta corrupto
 Sun Fire E25K, using IOSRAM based Console
 Ethernet address 0:0:be:a9:fb:e9, Host ID: 82a9fbe9.
 {20} ok
 {20} ok boot net -s
 Boot device: /pci@3c,70.0000/network@3,1  File and args: -s
 Requesting Internet Address for 0:0:be:a9:fb:e9
 boot: cannot open kernel/sparcv9/unix
 Enter filename [kernel/sparcv9/unix]:
boot: cannot open kernel/sparcv9/unix
Enter filename [kernel/sparcv9/unix]: ^C^D
 Type  'go' to resume
 {20} ok
Chequeo con devalias , si esta bien seteado la red 
Sep 28 11:39:39 2012 {20} ok devalias
Sep 28 11:40:16 2012 net                      /pci@3c,70.0000/network@3,1
Luego de haber chequeado que los parametros de OBP estan correctos, el problema es que probablemente este corrupto el sector de booteo 
Esto se soluciona asi :
Primero , chequeo en el bootparams, de donde saco el boot que le corresponde a ese dominio, en este caso tomo de ejemplo el dominio B 
root@e25k-1-sc0 # grep e25k-1-b /etc/bootparams
e25k-1-b  root=e25k-1-sc-i1:/export/install/SOL_10_1009_SPARC/Solaris_10/Tools/Boot install=e25k-1-sc-i1:/export/install/SOL_10_1009_SPARC boottype=:in   rootopts=:rsize=8192
root@e25k-1-sc0 #
Me paro en el directorio que tiene los comandos para generar el boot nuevo pra el dominio que yo le indique
cd /export/install/SOL_10_1009_SPARC/Solaris_10/Tools
Ejecuto el comando que hace la magia ( Ojo, que esto me borra el anterior, por si me interesaba guardarlo para algo, sino da igual )
./add_install_client e25k-1-b sun4u
Listo, chequeo como  quedo.
grep e25k-1-b /etc/bootparams
Y luego puedo ejecutar el booteo por red ( seguramente tenga que realizar fsck )
console -d B
 {20} ok boot net -s
 Resetting...
 Rebooting with command: boot net -s
 Boot device: /pci@3c,70.0000/network@3,1  File and args: -s
 Requesting Internet Address for 0:0:be:a9:fb:e9
Booting to milestone "milestone/single-user:default".
 Configuring devices.
 SUNW,eri0 : 100 Mbps half duplex link up
Using RPC Bootparams for network configuration information.
 Attempting to configure interface dman0...
 Configured interface dman0
 Attempting to configure interface ce5...
 Skipped interface ce5
 Attempting to configure interface ce4...
 Skipped interface ce4
 Attempting to configure interface ce3...
 Skipped interface ce3
 Attempting to configure interface ce2...
 Skipped interface ce2
 Attempting to configure interface ce1...
 Skipped interface ce1
 Attempting to configure interface ce0...
 Skipped interface ce0
 Attempting to configure interface eri0...
 Configured interface eri0
 ip_arp_done: init failed
 ifconfig: setifflags: SIOCSLIFFLAGS: eri0: Cannot assign requested address
 Requesting System Maintenance Mode
 SINGLE USER MODE
 # format
Searching for disks...done
 AVAILABLE DISK SELECTIONS:
        0. c0t10d0
           /pci@3c,700000/pci@1/pci@1/scsi@2/sd@a,0
        1. c0t11d0
          /pci@3c,700000/pci@1/pci@1/scsi@2/sd@b,0
# fsck -y /dev/rdsk/c0t10d0s0
 ** /dev/rdsk/c0t10d0s0
 ** Last Mounted on /
 ** Phase 1 - Check Blocks and Sizes
 ** Phase 2 - Check Pathnames
 ** Phase 3a - Check Connectivity
 ** Phase 3b - Verify Shadows/ACLs
 ** Phase 4 - Check Reference Counts
 UNREF FILE  I=617432  OWNER=root MODE=100644
SIZE=28 MTIME=Sep 27 02:39 2012
 RECONNECT?  yes
LINK COUNT FILE I=617432  OWNER=root MODE=100644
 SIZE=28 MTIME=Sep 27 02:39 2012  COUNT 0 SHOULD BE 1
 ADJUST?  yes
 ** Phase 5 - Check Cylinder Groups
***** FILE SYSTEM WAS MODIFIED *****
 #  fsck -y /dev/rdsk/c0t10d0s0
 ** /dev/rdsk/c0t10d0s0
 ** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
 ** Phase 2 - Check Pathnames
 ** Phase 3a - Check Connectivity
 ** Phase 3b - Verify Shadows/ACLs
 ** Phase 4 - Check Reference Counts
 ** Phase 5 - Check Cylinder Groups
 195904 files, 9421235 used, 15688572 free (92068 frags, 1949563 blocks, 0.4% fragmentation)
 #
 #  fsck -y /dev/rdsk/c0t11d0s0
 ** /dev/rdsk/c0t11d0s0
** Last Mounted on /
 ** Phase 1 - Check Blocks and Sizes
 ** Phase 2 - Check Pathnames
 ** Phase 3a - Check Connectivity
 ** Phase 3b - Verify Shadows/ACLs
 ** Phase 4 - Check Reference Counts
 UNREF FILE  I=617432  OWNER=root MODE=100644
 SIZE=28 MTIME=Sep 27 02:39 2012
 RECONNECT?  yes
 LINK COUNT FILE I=617432  OWNER=root MODE=1

Luego init 6