Unit 2 System Startup and Shutdown
Unit 2 System Startup and Shutdown
SMS mode
Start AIX - OR -
partitions
Normal mode
• Normal mode
– AIX boots into multi-user mode (run level 2).
– Users can log in, the system can be configured, and applications can start.
– The bootlist command can set/change the start-up boot device.
Partition Activation
LOGIN
© Copyright IBM Corporation 2009
AIX partition activation (1 of 2)
IBM Power Systems
To activate
into SMS
AIX
AIX Version
Version 66
Copyright
Copyright IBM
IBM Corporation,
Corporation, 1982,
1982, 2007
2007
Console
Console login:
login:
alog program
/var/adm/ras/bootlog
/var/adm/ras/BosMenus.log
Use the
/var/adm/ras/bosinst.log
alog
command
/var/adm/ras/nimlog
to view /var/adm/ras/conslog
logs /var/adm/ras/errlog
• Start-up and stops scripts can be defined for each run level
which are automatically invoked at entry and exit.
/etc/rc.d # ls –R
/etc/rc.d # ls –R
init.d rc rc2.d rc3.d rc4.d rc5.d rc6.d rc7.d rc8.d rc9.d
init.d rc rc2.d rc3.d rc4.d rc5.d rc6.d rc7.d rc8.d rc9.d
./init.d:
./init.d:
./rc2.d:
./rc2.d:
Ksshd Kwpars Ssshd Scripts starting with
Ksshd Kwpars Ssshd
S are invoked at
./rc3.d:
./rc3.d: boot time by
./rc4.d:
/etc/rc.d/rc
./rc4.d:
./rc5.d:
./rc5.d:
./rc6.d: Scripts starting with K are
./rc6.d:
invoked synchronously by
./rc7.d:
./rc7.d: shutdown with one argument:
./rc8.d: 'stop'. They are also called on
./rc8.d:
start-up prior to invoking the start
./rc9.d:
./rc9.d:
scripts.
• Controlling subsystems
## stopsrc
stopsrc -s
-s inetd
inetd
0513-044
0513-044 The /usr/sbin/inetd
The /usr/sbin/inetd Subsystem
Subsystem was
was requested
requested to
to stop.
stop.
## startsrc
startsrc -s
-s inetd
inetd
0513-059
0513-059 The inetd
The inetd Subsystem
Subsystem has
has been
been started.
started. Subsystem
Subsystem PID
PID is
is
311374.
311374.
## refresh
refresh -s
-s inetd
inetd
0513-095
0513-095 The request
The request for
for subsystem
subsystem refresh
refresh was
was completed
completed
successfully.
successfully.
Not all
subsystems
support being
refreshed.
## refresh
refresh -s
-s sshd
sshd
0513-005
0513-005 The Subsystem,
The Subsystem, sshd,
sshd, only
only supports
supports signal
signal communication.
communication.
Do a fast
shutdown,
shutdown -F