Introduction to Solaris10 System Maintenance Experience

Source: Internet
Author: User
Article Title: Solaris10 system maintenance experience. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I believe many people share the same idea: it would be nice if solaris 10 threw it to a certain location after it was installed and configured and no longer needed to worry about it. Of course, this is just our wishful thinking! Although the functions of solaris 10 are exceptionally powerful and super stable, we still need to take care of and maintain it regularly. The main maintenance content includes monitoring, configuration/configuration modification, and troubleshooting. We will discuss these situations with some examples.

System Monitoring

The main purpose of monitoring is to understand and master the load and performance of the system.

  (1) understand the status of the system.

1. Check the running version of solaris 10 and run the command showrev without parameters. This command and option-r are another function: view the patches to be installed in the current system.

Root @ zsc # showrev

Hostname: zsc

Hostid: 841e69f3

Release: 5.10

Kernel architecture: sun4u // The server output in intel architecture is different.

Application architecture: iSCSI

Hardware provider: Sun_Microsystems

Domain:

Kernel version: SunOS 5.10 Generic_118833-18 // Kernel version

2. Run the prtconfig command to view some information about the hardware device.

Root @ zsc # prtconf

System Configuration: Sun Microsystems sun4u // intel, amd cpu output is different

Memory size: 8192 Megabytes // The Memory size is 8 GB.

System Peripherals (Software Nodes ):

SUNW, Sun-Fire-V490

Scsi_vhci, instance #0

Packages (driver not attached)

SUNW, builtin-drivers (driver not attached)

.........

3. Check the number of disks connected to the local machine. Use the format command to format the hard disk.

Root @ zsc # format

Searching for disks... done

Available disk selections:

0. c1t0d0

/Pci @ 9,600000/SUNW, qlc @ 2/fp @ 0, 0/ssd @ w237914c39d4d9d, 0

1. c1t1d0

/Pci @ 9,600000/SUNW, qlc @ 2/fp @ 0, 0/ssd @ w237914c39d4d9b, 0

The output shows that the server has two scsi hard disks.

4. view the status of the network interface and use the ifconfig? A.

Root @ zsc # ifconfig-

Lo0: flags = 2001000849 Mtu 8232 index 1

Inet 127.0.0.1 netmask ff000000

Ce0: flags = 1000843 Mtu 1500 index 2

Inet 61.128.x.x netmask ffffff00 broadcast 61.128.x.255

Ether 0: 14: 4f: 1e: 69: f3 // ce0 indicates the name of the network interface.

Ce1: flags = 1, 1000843 Mtu 1500 index 3

Inet 192.168.x.5 netmask ffffff00 broadcast 192.168.x.255

Ether 0: 14: 4f: 1e: 69: f3 // x is a specific value, which can be processed as follows:

The output shows that the local machine has two network interfaces. If the network interface is configured incorrectly or is not activated, the interface name and status may not be visible in the output.

5. Check the number of CPUs and run the command mpstat without parameters.

Root @ db890 ~ # Mpstat // This command is also a tool for viewing CPU Loads

CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl

0 0 1 136 3 1 67 1 1 6 1 93 0 1 4 94

1 0 1 101 25 22 67 1 1 6 1 85 0 1 4 95

2 0 1 121 3 1 68 1 1 6 1 91 0 1 4 95

3 0 1 129 3 1 69 1 1 6 1 95 0 1 4 95

4 0 1 126 3 1 69 1 1 5 1 95 0 1 4 95

5 0 1 125 129 126 66 1 1 5 1 90 0 1 4 95

6 0 1 123 4 1 68 1 1 6 1 92 0 1 4 95

7 0 1 105 242 140 65 1 1 7 1 89 0 4 95

From the output, we can see that this server has eight CPUs, starting from 0 to 7. Some outputs do not start with sequence numbers, however, you can know the number of CPUs from the number of rows (the number of CPUs is the number of rows ).

[1] [2] [3] [4] Next page

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.