Starting, Stopping, and Resetting Servers and Server Groups

This section describes the following activities:

To power on and boot a server or pool To shut down and shut down a server or pool To restart a server or pool Starting servers

and pools

Use the start command with the server or group keyword to

  • power on a

  • server

  • or pool

. If bootable PROMS is configured, the servers boot. You can also use the Actions menu on the Servers by Group page to start the start operation. The Actions menu is shown in the following chart.

For syntax and parameter details, type help start server or help start group at the N1-ok command line.

To power on and boot a server or pool

,

log

on to N1 System Manager.

  1. See To access the N1 System Manager command line for more information

    . Type one of the following commands:

    N1-ok

  2. > start server server The server is powered on, and if boot PROMs are configured

    , the server boots. See Start Server in Sun N1 System Manager 1.2 Command Line Reference Manual for syntax details.

    N1-ok> boot group The pool

    is powered on, and if boot PROMs are configured, the servers in the pool are started. Job completion takes longer for large pools. See the startup group in the Sun N1 System Manager 1.2 Command Line Reference Manual for syntax details.

Example 4-15 Starting

a Server from the Network

The following command-line example shows how to boot a server from the network.

N1-ok> start server 10.5.7.2 netboot=true Example 4-16 Starting a Server Group from the Network

The following command-line example shows how to boot a pool from the network.

N1-ok> start group dev netboot=true

Stop servers and pools To

shut down

and shut down a server or pool, use the stop command with the server or pool keyword. Stopping a server or group of servers will initiate the successful shutdown of the operating systems and the subsequent shutdown of the physical servers. If the servers do not have an operating system installed or do not shut down, you can use the force subcommand to shut down the pool.

The following graphic shows how to stop a group by using the Actions menu on the Servers by Group page or by issuing the Stop Group command.

For syntax and parameter details, type help stop server or help stop group at the N1-ok command line. To shut down

and shut down a server or pool

,

  1. log on to System Manager

    N1.

    See To access the N1 System Manager command line for more information

  2. .

  3. Type one of the following commands:

    N1-ok> stop server

    server The server is stopped. See Stop Server in Sun N1 System Manager 1.2 Command Line Reference Manual for syntax details.

    N1-ok> Stop Group

    The pool is stopped. See the stop group in the Sun N1 System Manager 1.2 Command Line Reference Manual for syntax details.

Example 4-17 Force a server shutdown

The following command-line example shows how to force the operating system to shut down.

N1-ok> stop server 10.0.7.2 This operation is not supported. Use the force option. N1-ok> stop server 10.0.7.2 force=true Server 10.0.7.2 shut down.

Example 4-18 Force

shutdown of a pool

The following command-line example shows how to force the operating system shutdown for a pool.

N1-ok> stop group development This operation is not supported. Use the force option. N1-ok> stop group dev force=true Group development off.

Troubleshooting

If you use the Force option, run one of the following file system check commands on the client through the console accessed from the service processor, when the server restarts.

For

  • the Solaris OS

  • , run fsck For

  • Linux, run reiserfsck or e2fsck

  • For

information about running the fsck command on a provisioned server, see Issuing Remote Commands on Servers and Server Groups.

Resetting servers

and

pools To initiate a successful shutdown of the operating system followed by shutdown of the physical server or pool, use the reset command with the server or pool keyword. The servers are then powered on, and if the boot PROMs are configured, the servers are restarted. If the servers do not have an operating system installed or do not shut down, you can use the force subcommand to restart the server or pool.

For syntax and parameter details, type help reset server or help reset group at the N1-ok command line. To

restart a server or pool

,

log

on to N1 System Manager.

  1. See To access the N1 System Manager command line for more information

    . Type one of the following commands

    : N1-ok

  2. > Reset Server Server [force=true]

    The server restarts. See Reset Server in Sun N1 System Manager 1.2 Command Line Reference Manual for more information.

    N1-ok> reset group group [force=true]

    The servers in the group restart. See the reset group in the Sun N1 System Manager 1.2 Command Line Reference Manual for more information.

Example 4-19 Force a server reset

The following command-line example shows how to force the operating system reset.

N1-ok> Reset Server 10.5.7.2 force=true

Example 4-20 Force

reset a pool

If the operating system does not shut down correctly, use the following command-line example to force the operating systems reset for the servers in the pool.

N1-ok> reset group dev force=true

Example 4-21 Restarting

a server from the network

The following command-line example shows how to restart a server from the network.

N1-ok> Reset Server 10.5.7.2 netboot=true

Example 4-22 Restarting

a Server Group from the Network

The following command-line example shows how to restart a pool from the network.

N1-ok> reset group dev netboot=true

Troubleshooting

If you use one of the

preceding force commands, run one of the following file system check commands on the service processor when the server restarts.

For

  • the Solaris OS

  • , run fsck For Linux, run

  • reiserfsck or e2fsck To learn how to run the fsck

command on provisioned servers, see Issuing Remote Commands on Servers and Server Groups for instructions.

Contact US