Solaris のシステム管理 (第 1 巻)

IA: システムを実行レベル S (シングルユーザー状態) にする方法

  1. Type any key to continue プロンプトが表示されている場合は、任意のキーまたはリセットボタンを押してシステムをリブートします。システムがシャットダウンされている場合は、電源スイッチを押してシステムを起動します。

    数分後、「Current Boot Parameters」メニューが表示されます。

  2. b -s と入力し、システムを実行レベル S でブートします。Enter キーを押します。

    5 秒以内に選択しないと、システムは自動的に実行レベル 3 でブートします。

  3. プロンプトが表示されたら、スーパーユーザーのパスワードを入力します。

  4. who -r を使用して、システムが実行レベル S になっていることを確認します。


    # who -r
       .       run-level S  Jul 19 14:37     S      0  3
  5. 実行レベルを S に移行して行う必要がある保守作業を行います。

  6. システムを実行レベル 3 に戻すには、Control-d を押します。

IA: 例 - システムを実行レベル S (シングルユーザー状態) にする


Type any key to continue
            .
            .
            .
 
                     <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0:a
Boot args: 
Type    b [file-name] [boot-flags] <ENTER>      to boot with options
or      i <ENTER>                               to enter boot interpreter
or      <ENTER>                                 to boot with defaults
 
 
                     <<< timeout in 5 seconds >>>
 
Select (b)oot or (i)nterpreter: b -s
              .
              .
              .
INIT: SINGLE USER MODE
 
Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance):  xxx
Entering System Maintenance Mode
              .
              .
              .
# who -r
   .       run-level S  Jul 19 14:37     S      0  3
(システム保守作業を行う)
# <Control-d> を押す