[OS]/Embedded&Linux

solaris boot_archive 깨진 경우 복구 방법

하늘을닮은호수M 2007. 8. 20. 11:52
반응형

solaris boot_archive 깨진 경우 복구 방법

Solaris 패치시 기타 등의 경우 boot_archive 가 깨지는 경우가 있습니다.

부팅이 불가능한데 이런경우

부트메뉴에서 failsafe 모드를 선택하고 부팅합니다.

솔라리스 최근 버전 06/06 버전부터는

failsafe모드로 진입시 /a에 마운트하고 읽고 쓰기 가능한 상태로 설정할지 물어봅니다.

이때 y를 선택하면 /a에 디스크가 마운트 됩니다.
(중간에 Phase별로질문들이 몇 있는데, 모두 "yes"라고 입력하면 됨)

콘솔에서

# bootadm update-archive -f -R /a

와 같이 입력하면 부트 아카이브를 새로 쓰고

umount /a

init 6 로 재부팅 해주면 됩니다.


일반적인 경우 부트 아카이브가 깨졌을때 사용할수있습니다.
=============== 원문 ==============
x86: How to Boot the Failsafe Archive to Forcibly Update a Corrupt Boot Archive


This procedure shows you how to replace a corrupt boot archive by using the bootadm command. For more information, see the bootadm(1M) man page.

Stop the system by using the system's Stop key sequence.

Use the Stop key sequence for your system if you do not know the superuser password, or if you cannot log in to the system. For more information, see x86: How to Stop a System for Recovery Purposes.

If the system displays the Press any key to reboot prompt, press any key to reboot the system.

You can also use the Reset button at this prompt.

When the boot sequence begins, the GRUB menu is displayed.



+-------------------------------------------------------------------------+
| Solaris 10.1... X86 |
| Solaris failsafe |
| |
| |
+-------------------------------------------------------------------------+
Use the and keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, or 'c' for a command-line.


Use the arrow keys to navigate the GRUB menu, then select the Solaris failsafe entry. Type b or press Enter to boot the failsafe archive.

If any boot archives are out of date, a message that is similar to the following is displayed:



Searching for installed OS instances...

An out of sync boot archive was detected on /dev/dsk/c0t0d0s0.
The boot archive is a cache of files used during boot and
should be kept in sync to ensure proper system operation.

Do you wish to automatically update this boot archive? [y,n,?]



Type y, then press Enter to update the out-of-date boot archive.

The system displays the following message:



Updating boot archive on /dev/dsk/c0t0d0s0.
The boot archive on /dev/dsk/c0t0d0s0 was updated successfully.


If no out-of-date boot archives are found, a message that is similar to the following is displayed:



Searching for installed OS instances...

Solaris 10.1... X86 was found on /dev/dsk/c0t0d0s0.
Do you wish to have it mounted read-write on /a? [y,n,?]


This message is also displayed after any out-of-date boot archives are updated successfully.

Mount the device that contains the corrupt boot archive on /a by typing the corresponding number of the device, then press Enter.


--------------------------------------------------------------------------------
Note ?
If any out-of-date boot archives were updated in the previous step, the device is already mounted on /a. Proceed to Step 6.


--------------------------------------------------------------------------------

To forcibly update the corrupt boot archive, type:



# bootadm update-archive -f -R /a



Unmount the device.



# umount /a



Reboot the system.



# init 6
반응형