SA-299 Day 2
-------------
========================================================== ==============
Dump)
Preparation
----
VI/usr/kernel/drv/crashsample
Type: Caution: this will cause system crash!
CP/etc/system. orig
VI/etc/System
Type: forceload: drv/crashsample
Dump
----
Reboot
# Observe the system restart process (reporting module loading failure, but not crash dump)
Boot-
Ls/var/crash/sunxx/vmcore. x
Ls/var/crash/sunxx/Unix. x
Restore site
--------
Delete/usr/kernel/drv/crashsample
CP/etc/system. orig/etc/System
========================================================== ==============
Core dump after process crash
Preparation
----
CD $ home
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
X vi coresample. c
X type:
# Include <stdio. h>
# Include <stdlib. h>
Void main ()
{
Char * P = NULL;
P [0] = 'a ';
}
X Compilation
X ----
/Usr/UCB/CC coresample. C-o coresample
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Run
----
./Coresample
Ls-L core
========================================================== ==============
Which Mount
========================================================== ==============
CD/Net
Ls
# Empty
Ls sunxxx
#
========================================================== ==============
Create an autofs direct mount point
Mount point:/export/home/mt
# Vi/etc/auto_master
Type:/-auto_direct-RW, browser
VI/etc/auto_direct
Type:/export/home/MT-RW, soft server3, server4:/usr/share/man
Ls/export/home/mt
========================================================== ==============
Create an autofs indirect mount point
VI/etc/auto_home
Type:
<Newuser> <otherserver>:/export/home/newuser
Ls/home/newuser
Or
CD/home/newuser
Ls-la
========================================================== ==============
Create an autofs indirect mount point
VI/etc/auto_master
Type:
/Indirect auto_indirect-RW, browser
VI/etc/auto_indirect
Type:
SSS <otherserver>:/export/home/SSS
Ls/indirect/SSS
Or
CD/indirect/SSS
Ls-la
========================================================== ==============
Move existing file systems
Move to the front cylinder and empty the rear cylinder. Divides four partitions evenly on the idle cylinder.
/
(SWAP)
(S2, overlap)
/Usr