ナビゲーションリンクをスキップ | |
印刷ビューの終了 | |
Solaris のシステム管理 (基本編) Oracle Solaris 10 8/11 Information Library (日本語) |
1. Oracle Solaris 管理ツール (製品概要)
3. Oracle Java Web Console の操作 (手順)
11. Oracle Solaris ブート動作の変更 (手順)
12. Oracle Solaris システムのブート (手順)
SPARC: システムを実行レベル 3 (マルチユーザーレベル) でブートする方法
SPARC: システムを実行レベル S (シングルユーザーレベル) でブートする方法
SPARC: デフォルトのカーネル以外のカーネルをブートする方法
SPARC システムで指定した ZFS ルートファイルシステムからブートする
SPARC: ZFS ルートプール内の使用可能なブート可能データセットのリストを表示する方法
SPARC: 指定した ZFS ルートファイルシステムからブートする方法
GRUB を使用して x86 システムをブートする (作業マップ)
x86: システムを実行レベル 3 (マルチユーザーレベル) でブートする方法
x86: x86 システムで指定した ZFS ルートファイルシステムからブートする
x86: 使用可能な ZFS ブート環境のリストを表示する方法
x86: 指定した ZFS ルートファイルシステムからブートする方法
x86: フェイルセーフモードでブートして、破壊されたブートアーカイブを強制的に更新する方法
x86: GRUB ベースのブートをネットワークから実行する方法
SPARC プラットフォームでのリブートプロセスの高速化 (作業マップ)
13. Oracle Solaris ブートアーカイブの管理 (手順)
14. Oracle Solaris システムのブートのトラブルシューティング (手順)
16. x86: GRUB を実装しないシステムのブート (手順)
17. Oracle Solaris 自動登録コマンド regadm の操作 (手順)
21. Oracle Solaris システム管理ツールによるソフトウェアの管理 (手順)
|
次の手順に従って、現時点で実行レベル 0 になっているシステムを実行レベル 3 でブートします。
# reboot
Press any key to reboot プロンプトが表示されている場合は、任意のキーを押してシステムをリブートします。
あるいは、リセットボタンを使用することもできます。システムが停止している場合は、電源スイッチを押してシステムを起動します。
ブートシーケンスが始まると、GRUB メニューが表示されます。
エントリを 10 秒以内に選択しない場合、システムは自動的に実行レベル 3 でブートします。
ブートプロセスが正常に終了すると、ログイン画面かログインプロンプトが表示されます。
hostname console login:
# who -r system% who -r . run-level 3 Mar 2 09:44 3 0 S
例 12-9 x86: システムを実行レベル 3 (マルチユーザーレベル) でブートする
# reboot Jul 24 11:29:52 bearskin reboot: rebooted by root syncing file systems... done rebooting... Adaptec AIC-7899 SCSI BIOS v2.57S4 (c) 2000 Adaptec, Inc. All Rights Reserved. Press <Ctrl><A> for SCSISelect(TM) Utility! Ch B, SCSI ID: 0 SEAGATE ST336607LSUN36G 160 GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ============================================================== Solaris 10 10/08 s10x_u6wos_03 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. SunOS Release 5.10 Version Generic_144500-10 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Hostname: pups NIS domain name is ....sfbay.sun.com Reading ZFS config: done. Mounting ZFS filesystems: (5/5) pups console login: # who -r . run-level 3 Jul 24 11:31 3 0 S
次の手順に従って、実行レベル 0 になっているシステムを実行レベル S でブートします。シングルユーザーレベルは、システムを保守する場合に使用します。
注 - この手順は、すべての GRUB 実装で使用できます。ただし、GRUB メインメニューに表示されるブートエントリは、実行している Oracle Solaris リリースに応じて異なります。
ブート時に指定できるすべてのカーネルオプションについては、「x86: ブート時に GRUB メニューを編集してブート動作を変更する」を参照してください。
# reboot
Press any key to reboot プロンプトが表示されている場合は、任意のキーを押してシステムをリブートします。
あるいは、リセットボタンを使用することもできます。システムが停止している場合は、電源スイッチを押してシステムを起動します。
ブートシーケンスが始まると、GRUB メニューが表示されます。
矢印キーを使用できない場合は、キャレットキー (^) を使って上方へスクロールしたり、英字キー v を使って下方へスクロールしたりします。
ここから、kernel 行または kernel$ 行にオプションと引数を追加できます。
この方法で、次の代替ブート動作を指定できます。
再構成用ブートを実行する
64 ビット対応のシステムを 32 ビットモードでブートする
カーネルデバッガを使ってシステムをブートする
コンソールをリダイレクトする
詳細は、boot(1M) のマニュアルページを参照してください。
# who -r . run-level S Jun 13 11:07 S 0 0
例 12-10 x86: システムをシングルユーザーモードでブートする
# reboot Jul 2 14:30:01 pups reboot: initiated by root on /dev/console syncing files... Press <Ctrl><A> forPSCSISelect(TM) Utility! GNU GRUB version 0.95 (637K lower / 2096064K upper memory) =================================================== Solaris 10 10/08 s10x_u6wos_03 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. ===================================================== GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ===================================================== findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS module /platform/i86pc/boot_archive ================================================ Use the and keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits. ] grub edit> kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -s GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ======================================================= findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -s module /platform/i86pc/boot_archive ====================================== Use the and keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. . . . SunOS Release 5.10 Version Generic_144500-10 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Booting to milestone "milestone/single-user:default". Hostname: pups Requesting System Maintenance Mode SINGLE USER MODE Root password for system maintenance (control-d to bypass): single-user privilege assigned to /dev/console. Entering System Maintenance Mode Jul 2 14:41:48 su: 'su root' succeeded for root on /dev/console Sun Microsystems Inc. # who -r who -r . run-level S Jul 2 14:39 S 0 0 #
代替のカーネルまたは代替の /etc/system ファイルを指定する必要がある場合は、次の手順に従ってシステムをブートします。
始める前に
boot a コマンドを使用して x86 システムを対話式でブートするときに、代替の -/etc/system ファイルを指定するには、次の手順を実行します。
1. /etc/system ファイルと boot/solaris/filelist.ramdisk ファイルのバックアップコピーを作成します。
# cp /etc/system /etc/system.bak # cp /boot/solaris/filelist.ramdisk /boot/solaris/filelist.ramdisk.orig
2. /etc/system.bak ファイル名を /boot/solaris/filelist.ramdisk ファイルに追加します。
# echo "etc/system.bak" >> /boot/solaris/filelist.ramdisk
ブートアーカイブを更新します。
# bootadm update-archive -v
# reboot
Press any key to reboot プロンプトが表示されている場合は、任意のキーを押してシステムをリブートします。
あるいは、リセットボタンを使用することもできます。システムが停止している場合は、電源スイッチを押してシステムを起動します。
ブートシーケンスが始まると、GRUB メインメニューが表示されます。
Enter default directory for modules [/platform/i86pc/kernel /kernel /usr/kernel]:
Name of system file [etc/system]: /etc/system.bak
代替ファイルを入力しないで Enter キーを押すと、デフォルトが受け入れられます。
破損した /etc/system ファイルを修復します。
例 12-11 x86: システムを対話式でブートする
# reboot syncing file systems... done rebooting... GNU GRUB version 0.95 (637K lower / 2096064K upper memory) =================================================== Solaris 10 10/08 s10x_u6wos_03 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. ===================================================== GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ===================================================== findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS module /platform/i86pc/boot_archive ====================================================== Use the and keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits. ] grub edit> kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -a GNU GRUB version 0.95 (637K lower / 2096064K upper memory) =================================================== findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -a module /platform/i86pc/boot_archive ==================================================== . . . Enter default directory for modules [/platform/i86pc/kernel /kernel /usr/kernel]: Name of system file [/etc/system]: /etc/system.bak SunOS Release 5.10 Version Generic_144500-10 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Hostname: pups NIS domain name is ....sfbay.sun.com Reading ZFS config: done. Mounting ZFS filesystems: (5/5) pups console login: