Oracle Solaris 10 9/10 설치 설명서: Solaris Live Upgrade 및 업그레이드 계획

(선택 사항) 소스 부트 환경으로 폴백

폴백 절차에는 새 부트 환경 활성화 상태에 따라 다음 세 가지가 있습니다.


예 9–1 SPARC: 성공적인 부트 환경 작성 시의 폴백

이 예에서 원래의 c0t4d0s0 부트 환경은 성공적으로 활성화되었음에도 불구하고 활성 부트 환경으로 복귀됩니다. 장치 이름은 first_disk입니다.


# /sbin/luactivate first_disk 
# init 6


예 9–2 SPARC: 실패한 부트 환경 활성화에서의 폴백

이 예에서는 새 부트 환경을 부트할 수 없는 상태입니다. 원래의 부트 환경인 c0t4d0s0에서 부트하기 전에 단일 사용자 모드에서 OK 프롬프트로 복귀해야 합니다.


OK boot net -s
# /sbin/luactivate first_disk
Do you want to fallback to activate boot environment c0t4d0s0 
(yes or no)? yes
# init 6

원래 부트 환경인 c0t4d0s0이 활성 부트 환경이 됩니다.



예 9–3 SPARC: DVD, CD 또는 네트워크 설치 이미지를 사용하여 원래 부트 환경으로 폴백

이 예에서는 새 부트 환경을 부트할 수 없는 상태입니다. 원래의 부트 환경에서 부트할 수 없으며 매체나 네트워크 설치 이미지를 사용해야 합니다. 장치는 /dev/dsk/c0t4d0s0입니다. 원래 부트 환경인 c0t4d0s0이 활성 부트 환경이 됩니다.


OK boot net -s
# fsck /dev/dsk/c0t4d0s0
# mount /dev/dsk/c0t4d0s0 /mnt 
# /mnt/sbin/luactivate
Do you want to fallback to activate boot environment c0t4d0s0 
(yes or no)? yes
# umount /mnt 
# init 6


예 9–4 x86: GRUB 메뉴를 사용하여 원래 부트 환경으로 폴백

Solaris 10 1/06 릴리스부터 다음 예는 GRUB 메뉴를 사용하여 폴백하는 단계를 제공합니다.

이 예에서 GRUB 메뉴는 올바르게 표시되지만 새 부트 환경이 부트 가능하지 않습니다. 폴백을 사용하기 위해 원래 부트 환경이 단일 사용자 모드로 부트됩니다.

  1. 수퍼유저 또는 동등한 역할의 사용자로 로그인합니다.


    주 –

    역할에는 권한 부여 및 권한이 있는 명령이 포함됩니다. 역할에 대한 자세한 내용은 System Administration Guide: Security ServicesConfiguring RBAC (Task Map)를 참조하십시오.


  2. GRUB 메뉴를 표시하려면 시스템을 재부트합니다.


    # init 6
    

    GRUB 메뉴가 표시됩니다.


    GNU GRUB version 0.95 (616K lower / 4127168K upper memory)
    +-------------------------------------------------------------------+
    |Solaris                                                            |
    |Solaris failsafe                                                   |
    |second_disk                                                        |
    |second_disk failsafe                                               |
    +-------------------------------------------------------------------+
    Use the ^ and v 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.
  3. GRUB 메뉴에서 원래 부트 환경을 선택합니다. GRUB 소프트웨어를 사용하여 이미 부트 환경이 만들어져 있어야 합니다. Solaris 10 1/06 릴리스 이전에 작성된 부트 환경은 GRUB 부트 환경이 아닙니다. 부트 가능한 GRUB 부트 환경이 없는 경우 예 9–5로 넘어갑니다.

  4. 다음을 입력하여 GRUB 메뉴를 편집합니다. e.

  5. 화살표 키를 사용한 다음 e를 입력하여 kernel /boot/multiboot를 선택합니다. GRUB 편집 메뉴가 표시됩니다.


    grub edit>kernel /boot/multiboot
  6. -s를 입력하여 단일 사용자 모드로 부트합니다.


    grub edit>kernel /boot/multiboot -s
    
  7. 부트 환경을 부트하고 마운트한 다음 활성화합니다.


# b
# fsck /dev/dsk/c0t4d0s0
# mount /dev/dsk/c0t4d0s0 /mnt 
# /mnt/sbin/luactivate
Do you want to fallback to activate boot environment c0t4d0s0
(yes or no)? yes
# umount /mnt
# init 6


예 9–5 x86: DVD 또는 CD를 사용하여 GRUB 메뉴를 통해 원래 부트 환경으로 폴백

Solaris 10 1/06 릴리스부터 다음 예는 DVD 또는 CD를 사용하여 폴백하는 단계를 제공합니다.

이 예에서는 새 부트 환경을 부트할 수 없는 상태입니다. 또한 GRUB 메뉴가 표시되지 않습니다. 폴백을 사용하기 위해 원래 부트 환경이 단일 사용자 모드로 부트됩니다.

  1. Solaris Operating System for x86 Platforms DVD 또는 Solaris Software for x86 Platforms - 1 CD를 넣습니다.

  2. 수퍼유저 또는 동등한 역할의 사용자로 로그인합니다.


    주 –

    역할에는 권한 부여 및 권한이 있는 명령이 포함됩니다. 역할에 대한 자세한 내용은 System Administration Guide: Security ServicesConfiguring RBAC (Task Map)를 참조하십시오.


  3. DVD 또는 CD에서 부트합니다.


    # init 6
    

    GRUB 메뉴가 표시됩니다.


    GNU GRUB version 0.95 (616K lower / 4127168K upper memory)
    +-------------------------------------------------------------------+
    |Solaris 10 9/10                                                    |
    |Solaris 10 9/10 Serial Console ttya                                |
    |Solaris 10 9/10 Serial Console ttyb (for lx50, v60x and v65x       |
    +-------------------------------------------------------------------+
    Use the ^ and v 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.
  4. 기본 옵션으로 부트할 때까지 기다리거나 표시된 옵션을 모두 선택합니다.

    설치 화면이 표시됩니다.


    +-------------------------------------------------------------------+
    
    |Select the type of installation you want to perform:                |
    |                                                                    |
    |         1 Solaris Interactive                                      |
    |         2 Custom JumpStart                                         |
    |         3 Solaris Interactive Text (Desktop session)               |
    |         4 Solaris Interactive Text (Console session)               |
    |         5 Apply driver updates                                     |
    |         6 Single user shell                                        |
    |                                                                    |
    |        Enter the number of your choice followed by the <ENTER> key.|
    |        Alternatively, enter custom boot arguments directly.        |
    |
    |         If you wait 30 seconds without typing anything,            |
    |         an interactive installation will be started.               |
    +----------------------------------------------------------------- --+
  5. “Single user shell” 옵션을 선택합니다.

    다음 메시지가 표시됩니다.


    Do you wish to automatically update the boot archive? y /n
  6. 다음을 입력합니다. n


    Starting shell...
    #

    사용자는 이제 단일 사용자 모드에 있습니다.

  7. 부트 환경을 마운트합니다. 활성화하고 재부트합니다.


    # fsck /dev/dsk/c0t4d0s0
    # mount /dev/dsk/c0t4d0s0 /mnt 
    # /mnt/sbin/luactivate
    Do you want to fallback to activate boot environment c0t4d0s0
    (yes or no)? yes
    # umount /mnt
    # init 6