boot hangs after recovering corrupted kernel
Emrah Gokce Bayram <[email protected]>
| Newsgroups | gmane.os.solaris.managers |
|---|---|
| Message-ID | <CA+4qT1bAX5T87Z-JOqVqGFJbxULTK2Q5V2VeYgr5C8ymFx4UQg@mail.gmail.com> |
Hi Gurus; After a patch installation, Solaris 10 kernel has been corrupted. I used following procedure to recover it: (from an identical server): (1) Booted from network (2) # installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0 (0) On Good server: # cd / ; tar -cvf /tmp/kernel_dirs.tar ./kernel ./platform ./usr/platform (1) mounted the root FS slice: # mount /dev/dsk/c1t0d0s0 /a (2) I renamed these kernel directories: # cd /a ; mv kernel kernel.BAD ; mv platform platform.BAD; mv ./usr/platform ./usr/platform.BAD (3) ftp'ed them from good server and untarred to original locations: # ftp goodsvr's ip, lcd /a, cd tmp, hash/bin, mget kernel_dirs.tar # cd /a ; tar -xvf kernel_dirs.tar (4) unmounted the root FS slice: umount /a (5) reboot After this I received some /kernel .... stale messages, then I booted in failsafe mode (boot -F failsafe) and updated boot archive. I also fsck root filesystem and fixed corrupted superblock. Fsck one more time to make sure any error remained. No error found. After that, I tried to reboot. I receive no error message but booting process is hang at some specific point. To see what is happening I tried to boot server with boot -rv. Here is the output: (where boot hangs): . . . fp1) to target address: w50060e80045c5951,4 is online Load balancing: round-robin /scsi_vhci/ssd@g60060e80045c590000005c5900000c0a (ssd30) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0 (fp1) to target address: w50060e80045c5951,3 is online Load balancing: round-robin /scsi_vhci/ssd@g60060e80045c590000005c5900000c09 (ssd31) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0 (fp1) to target address: w50060e80045c5951,2 is online Load balancing: round-robin /scsi_vhci/ssd@g60060e80045c590000005c5900000c08 (ssd32) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0 (fp1) to target address: w50060e80045c5951,1 is online Load balancing: round-robin /scsi_vhci/ssd@g60060e80045c590000005c5900000c07 (ssd33) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0 (fp1) to target address: w50060e80045c5951,0 is online Load balancing: round-robin Then it is stuck at this point. Do you have any suggestions? Any answer will be highly appreciated. Thanks G. Bayram