HOME   ·Î±×ÀΠ  ȸ¿ø°¡ÀÔ
    
ȸ¿ø°¡ÀÔ
ºñ¹Ð¹øÈ£ ã±â ÀÚµ¿·Î±ä
ÀÌÀü°Ô½ÃÆÇ
   free_board
   °Ç°­°Ô½ÃÆÇ
   ¿À¶óŬDB
   Linux
   HTML/javascript
   Áú¹®°ú ´ä
È£¼­±â
   À̹ÌÁö°Ô½ÃÆÇ  
   °Ç°­°Ô½ÃÆÇ  
   À½¾ÇÀÚ·á  
   ¼ºÁØÀÌ °Ô½ÃÆÇ  
 Hit : 5492
 À̸§ : È£¼®  (121.¢½.39.7)
 ³¯Â¥ : 2007-08-13 08:59:05
 Á¦¸ñ : ¼Ö¶ó¸®½º ½Ã½ºÅÛ ºÎÇÏ ÃøÁ¤
<½Ã½ºÅÛ ºÎÇÏ ÃøÁ¤>

1. ¿ë·® È®ÀÎ

 

1.1 Sun O/S ÀÏ °æ¿ì

 

# df

 

1.2 SolarisÀÏ °æ¿ì

 

# df -k

 

(Âü°í)¸¸¾à root filesystemÀÌ 90% ÀÌ»óÀÏ °æ¿ì ȨÆäÀÌÁö¿¡ ÀÖ´Â find ¸í·É¾î »ç¿ë¹ýÀ» ÂüÁ¶ÇÏ¿© ºñÁ¤»óÀûÀ¸·Î »ý¼ºµÈ fileÀ» »èÁ¦Ç϶ó. ±×¸®°í root filesystem¿¡ userÀÇ directory°¡ ÀÖ´ÂÁö »ìÆì º¸¾Æ¶ó. ƯÈ÷ backup ½Ã device ¸íÀ» À߸ø Á־ file·Î ÀúÀåµÇ¾î¼­ ½Ã½ºÅÛÀÌ full µÇ´Â °æ¿ì°¡ ¸¹½À´Ï´Ù.

 

(Âü°í) Find ¸í·É¾î »ç¿ë¹ý

 

1. /usr¿¡ 50,000 charactersº¸´Ù Å« ÆÄÀÏ Ã£¾Æ¶ó.

 

# find /usr -type f -size +50000c -print

 

2. core fileÀ» »èÁ¦Ç϶ó.

 

# find / -name core -type f -exec rm {} \;

 

3. /usr/src¿¡¼­ À̸§ÀÌ mem*.c ÀÎ °ÍÀ» ã¾Æ¶ó.

 

# find /usr/src -type f -name "mem*.c" -print

 

4. owner°¡ rootÀÌ°í set-user-ID¸¦ °¡Áö´Â ¸ðµç ÆÄÀÏÀ» ã¾Æ¶ó.

 

# find / -perm -04000 -user root -type f -exec ls -l {} \;

 

5. ÃÖ±Ù ÀÌƲ ³»¿¡ ¾²¿©Áø ÆÄÀÏÀ» ã¾Æ¶ó.

 

# find /usr -ctime -2 -print

 

6. ÃÖ±Ù ÀÌƲ ³»¿¡ ¾²¿©Áö°í Å©±â°¡ 10,000byteÀÌ»óÀÎ ÆÄÀÏÀ̳ª µð·ºÅ丮¸¦ ã¾Æ¶ó.

 

# find /usr -ctime -2 -size +10000c -exec ls -l {} \;

 

 

2. CPU ¿ë·® check

 

2.1 MP Control and Monitoring

 

* Processor control and information

 

* psrinfo - »ç¿ë °¡´ÉÇÑ CPU¸¦ º¸¿©ÁØ´Ù.

 

# psrinfo

 

0 on-line since 09/05/97 10:49:27

2 on-line since 09/05/97 10:49:31

 

* psradm - Enable or disable CPUs

 

# psradm -f 2 -> 2¹ø CPU¸¦ off-line

 

# psrinfo

 

0 on-line since 09/05/97 11:16:04

2 off-line since 09/05/97 11:18:34

 

# psradm -n –a   //¸ðµç process¸¦ on-line

 

2.2 CPU Rules for the SOlaris 2.x Operating Environment

 

- vmstat 30 or mpstat 30

    condition                      Conclusion

 

0 == r                             CPU idle

 

0 < r / ncpus < 3.0                No problem

 

3.0 <= r / ncpus <= 5              CPU busy

 

5.0 <= r /ncpus                    CPU very busy

 

smtx < 200                         No problem

 

200 <= smtx < 400          Mutex stall

 

400 <= smtx                        Mutex stall

 

- psrinfo | grep -c on (CPU ÀÇ °³¼ö)

 

 

3. Swap space check

 

# vmstat 30

    Condition

 Conclusion

 

100,000K <= swap

 Swap waste

 

10,000K <= swap < 100,000K

 No problem

 

4,000K <= swap < 10,000K

 Swap low

 

1,000K <= swap < 4,000K

 Swap very low

 

swap < 1,000K

 No swap

 

Action to Take

* Swap Low - ½ÇÇàµÇ´Â ÇÁ·Î±×·¥ ¼ö¸¦ ÁÙÀÌ°í, swap space¸¦ ´Ã·Á¶ó.

* No Swap - ÇÁ·Î±×·¥ÀÌ ¸ØÃâ °ÍÀÌ´Ù. Áï½Ã swap space¸¦ ´Ã·Á¶ó.

 

(Âü°í)¡¡Swap space À» ´Ã¸®·Á¸é

 

1. Sun O/S 4.x ÀÏ °æ¿ì

 

# mkfile 40m /user/swap¡¡ (40mb size)

 

# swapon /user/swap

 

# pstat -T¡¡¡¡¡¡ (swap size È®ÀÎ)

 

# vi /etc/fstab

  /usr/swap¡¡¡¡ swap¡¡¡¡ swap¡¡¡¡ rw 0¡¡ 0

 

- swap file »èÁ¦

 

# rm /user/swap

 

# vi /etc/fstab - addÇÑ entry À» »èÁ¦

 

2. Solaris 2.x ÀÏ °æ¿ì

 

# /usr/sbin/mkfile 40m /user/swapfile

 

# swap -a /user/swapfile (O/S¿¡ swap fileÀ» Ãß°¡ÇÔ)

 

# swap -l

 

# vi /etc/vfstat

   /user/swapfile    -    -    swap     -    no    -     ( ÀÌ ¶óÀÎÀ» Ãß°¡)

 

# swap -s

total : 5828kbytes allocated + 2456k reserved = 8284k used, 103792k available

( allocated : ÇöÀç »ç¿ë, reserved : kernelÀÌ Àâ¾Æ³õÀ½ , available : »ç¿ëÇÒ ¼ö ÀÖ´Â ¾ç)

 

# swap -d /user/swapfile (swap addÇÑ fileÀ» »èÁ¦)

 

 

4. Memory ¿ë·® check

 

# vmstat 30

    Condition

 Conclusion

 

sr == 0

 RAM waste

 

0 < sr < 200

 No problem

 

200 <= sr < 300

 Low RAM

 

300 <= sr

 Very low RAM

 

* Low RAM - ¸Þ¸ð¸®¸¦ Áõ¼³ÇØ¾ß ÇÑ´Ù.

 

 

5. Disk ºÎÇÏ check

 

# iostat -x 30

 

* svc_t (avque + avwait) : disk ÀÀ´ä½Ã°£

 

* 10 - 50 acceptable

 

* 100 - 1500 not acceptable

 

* %b : µð½ºÅ©¸¦ ¾ó¸¶³ª ¸¹ÀÌ ¾²´Â°¡?

 

* 5% ÀÌÇÏ´Â ¹«½Ã

 

* 60% ÀÌ»óÀ̸é Á¶Á¤ÇÒ ÇÊ¿ä°¡ ÀÖ´Ù.

 

 

6. Network ºÎÇÏ Check

 

# netstat -i 30

    Condition

 Conclusion

 

(0<output packets<10)&&(100*output colls/(output packets)<0.5%)&&(other nets OK)

 Inactive network

 

(0<output packets<10)&&(100*output.colls/(output packets)<1.5%)&&(other nets busy)

 Unbalanced

 

(10<=output packets)&&(0.5%<=100*output colls/output packets <2.0%)

 No problem

 

(10 <= output packets)&&(2.0%<=100*output colls/output packets<5.0%)

 Busy network

 

(10<=output packets)&&(5.0%<=100*output colls/output packets)

 Very Busy Net

 

network type is not ie,le,ne or qe;it is bf or nf

 Not Ethernet

 

* Busy Network - ³×Æ®¿öÅ©¿¡ ³Ê¹«³ª ¸¹Àº Ãæµ¹ÀÌ »ý°Ü¼­ »ç¿ëÀÚµéÀÌ ÀÀ´äÀ» ±â´Ù¸®´Â ´Ã¾î³ª °í throughputÀÌ °¨¼ÒÇÑ´Ù. ¸¸¾à ´Ù¸¥ ³×Æ®¿öÅ©°¡ ÀÖ´Ù¸é ºÎÇϸ¦ ÁÖ´Â °ÍÀ» ºÎÇÏ°¡ ¾ø´Â ³×Æ®¿öÅ©·Î ¿Å°Ü¶ó. ¶Ç´Â ATM À̳ª 100-MB Ethernet, FDDI°°Àº ºü¸¥ ³×Æ®¿öÅ©·Î upgradeÇ϶ó.

 

 

7. System error messages check

 

# vi /var/adm/messages

 

# cd /var/adm

 

# grep panic *

 

# grep error *

 

# grep warning *

 

 

8. system Á¤º¸ Ãâ·Â

 

# /usr/platform/'uname -i'/sbin/prtdiag  (this show usefull hardware information and failures of system)

 

# /etc/prtvtoc (show the detail information of disk slice  ex) prtvtoc /dev/dsk/c0t0d0s2)

 

# /usr/sbin/eeprom (user can set some of variables of NVRAM via this command ex) eeprom boot-device=disk3)

 

# /usr/sbin/prtconf -vp (Shows device configuration)

 

# devinfo -vp (Shows device configuration for Solaris 1.x)

 

# /usr/sbin/sysdef (Shows software configuration)

 

# /usr/bin/dmesg | more (collect system diagnostic messages to form error log)

 

# /usr/proc/bin/ptree (Process trees that contain the process)

 

# /usr/proc/bin/pwdx pid (Current working directory for a process)

 

# /usr/proc/bin/pldd pid (Dynamic libraries linked into a process)

 

# /usr/proc/bin/pmap pid (Address space map)

 

 

9. Performance gathering script

 

        date >> /sunsolv/hangdata/vmstat.out

        vmstat 30 10 >> /sunsolv/hangdata/vmstat.out

        date >> /sunsolv/hangdata/iostat.out

        iostat -xtc 30 10 >> /sunsolv/hangdata/iostat.out

        date >> /sunsolv/hangdata/ps.out

        /usr/ucb/ps -aux >> /sunsolv/hangdata/ps.out

        date >> /sunsolv/hangdata/kmstat.out

        echo kmastat | crash >> /sunsolv/hangdata/kmstat.out

        date >> /sunsolv/hangdata/kernelmap.out

        echo "map kernelmap" | crash >> /sunsolv/hangdata/kernelmap.out

 

À§ ¸í·É¾î¸¦ ¸Å 15ºÐ ¸¶´Ù ½ÇÇà Çϵµ·Ï crontab¿¡ µî·ÏÇسõ´Â´Ù.
°Ô½Ã¹° 121°Ç
¹øÈ£ ºÐ·ù Á¦¸ñ
À̸§
³¯Â¥ ÀÐÀ½
70 ÀÏ¹Ý   ¾ÆÆÄÄ¡ ½ÃÀ۽à ¿¡·¯ could not determine the server's È£¼® 08-04-22 4993
69 ÀÏ¹Ý   ³×Æ®웤 ¼­ºê³Ý ³Ý¸¶½ºÆ® µîµî °ü·Ã È£¼® 08-02-15 4465
68 ÀÏ¹Ý   ¸®´ª½º ·çÆ® ºñ¹Ð¹øÈ£ ºÐ½Ç½Ã ó¸® È£¼® 08-02-11 5493
67 ÀÏ¹Ý   CVS Linux Setting È£¼® 08-01-26 4992
66 ÀÏ¹Ý   JSP À¥¼­¹ö ¼ÂÆÃ, ¾ÆÆÄÄ¡ ÅèÄÏ - ÄÁ³ØÅÍ (2) È£¼® 07-12-23 5445
65 ÀÏ¹Ý   ¸®´ª½º ¾ÆÆÄÄ¡ ÅèÄÏ ¿¬µ¿ È£¼® 08-01-17 5567
64 ÀÏ¹Ý   ¸®´ª½º¿¡¼­ ¾ÆÆÄÄ¡ + ÀÚ¹Ù + ÅèÄÏ ¿¬µ¿Çϱâ (1) È£¼® 07-12-31 4995
63 ÀÏ¹Ý   ¡Ú¡Ú¡Ú¡Ú¡Ú ¾ÆÆÄÄ¡ ÅèÄÏÀÇ ¿¬µ¿ (2) È£¼® 08-01-22 5094
62 ÀÏ¹Ý   GLIBC_2.0 not defined in file libc.so.6 ¿¡·¯ ÇØ°áÇϱâ (5) È£¼® 08-01-17 6396
61 ÀÏ¹Ý   vi ¸í·É¾î @ È£¼® 07-12-26 4750
60 ÀÏ¹Ý   vi ¸í·É¾î »ç¿ë È£¼® 07-12-26 4444
¡æ ÀÏ¹Ý   ¼Ö¶ó¸®½º ½Ã½ºÅÛ ºÎÇÏ ÃøÁ¤ È£¼® 07-08-13 5493
58 ÀÏ¹Ý   ¼Ö¶ó¸®½º¿¡¼­ sar »ç¿ë¿¡ ´ëÇؼ­ ... È£¼® 07-08-01 8714
57 ÀÏ¹Ý   raid ±¸ÃàÇϱâ È£¼® 07-07-03 5156
56 ÀÏ¹Ý   [GOOD] OIS 7 °èÃþ °ü·ÃÀÚ·á È£¼® 07-06-25 5360
óÀ½ÀÌÀü  [1] [2] [3] 4 [5] [6] [7] [8] [9]  ´ÙÀ½¸Ç³¡
 
Copyright © zenos.pe.kr. All rights reserved.