Solaris advanced system management lecture notes Day 2

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.