¥È¥Ã¥×¥Ú¡¼¥¸ » SolarisƦÃμ± » ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥å¥Ç¡¼¥â¥ó nscd ¤È¤Ï
¥«¥Æ¥´¥ê¡¼
Solaris10Âбþ¥³¡¼¥¹
¢£Solaris½é¿´¼Ô¸þ¤±
ÆþÌ祳¡¼¥¹¡¡
¥·¥¹¥Æ¥à´ÉÍý­µ¡¡¡Êx86ÈǤϤ³¤Á¤é¡Ë
¥·¥¹¥Æ¥à´ÉÍý­¶¡¡¡Êx86ÈǤϤ³¤Á¤é¡Ë
¥·¥¹¥Æ¥à´ÉÍý­·¡¡¡Êx86ÈǤϤ³¤Á¤é¡Ë
¥·¥¹¥Æ¥à´ÉÍý­¸¡¡¡Êx86ÈǤϤ³¤Á¤é¡Ë
¥Í¥Ã¥È¥ï¡¼¥¯´ÉÍý­µ
¥Í¥Ã¥È¥ï¡¼¥¯´ÉÍý­¶

¢£·Ð¸³¼Ô¡¦¾åµé¼Ô¸þ¤±
Solaris10¥È¥é¥Ö¥ë¥·¥å¡¼¥Æ¥£¥ó¥° ¡úNEW¡ú
¥»¥­¥å¥¢¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ð¡¼¹½ÃÛ ¡úNEW¡ú
Solaris 10 ZFS ´ÉÍý
Solaris 10¥³¥ó¥Æ¥Ê(¥¾¡¼¥ó)
·Ð¸³¼Ô¸þ¤±Â®½¬¥³¡¼¥¹
Solaris10¿·µ¡Ç½¡Ê¥·¥¹¥Æ¥à´ÉÍýÊÔ¡Ë
Solaris10¿·µ¡Ç½¡Ê¥Í¥Ã¥È¥ï¡¼¥¯ÊÔ¡Ë
Solaris ¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹´ÉÍý
DTrace ¤ò»È¤Ã¤¿¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¥Á¥å¡¼¥Ë¥ó¥°¤È ¥È¥é¥Ö¥ë¥·¥å¡¼¥Æ¥£¥ó¥°

Solaris 8/9 Âбþ¥³¡¼¥¹
¢£½é¿´¼Ô¸þ¤±
ǧÄê»î¸³Âкö¥³¡¼¥¹
UNIXÆþÌç
¥·¥¹¥Æ¥à´ÉÍý­µ
¥·¥¹¥Æ¥à´ÉÍý­¶
¥·¥¹¥Æ¥à´ÉÍý­·
¥Í¥Ã¥È¥ï¡¼¥¯´ÉÍý´ðÁÃ

¢£·Ð¸³¼Ô¡¦¾åµé¼Ô¸þ¤±
¥È¥é¥Ö¥ë¥·¥å¡¼¥Æ¥£¥ó¥°´ðÁÃ
OS¥»¥­¥å¥ê¥Æ¥£ for Solaris
Solaris ¥Í¥Ã¥È¥ï¡¼¥¯¿¯Æþ¸¡ÃÎ
Sun Ray ¥·¥¹¥Æ¥à¤Î¥¤¥ó¥¹¥È¡¼¥ë¤È´ÉÍý ¡úNEW¡ú
Sun Systems Fault Analysis Workshop
Crash Dump Analysis and the SunOS Kernel
Solaris¥¤¥ó¥¿¡¼¥Ê¥ë(ÆâÉô¹½Â¤)

¢£DNS,Apache,¥×¥í¥­¥·,¥á¡¼¥ë·Ï
Solaris10¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ð¡¼¹½ÃÛ ¡úNEW¡ú
¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ð¹½ÃÛ
¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ð¥»¥­¥å¥ê¥Æ¥£

¢£¥Ü¥ê¥å¡¼¥à´ÉÍý¡¢¥¯¥é¥¹¥¿·Ï
Solaris Volume Manager ´ÉÍý
VERITAS Volume Manager4.0´ÉÍý
Sun Cluster 3.x ´ÉÍý
Sun Cluster 3.2 ´ÉÍý ¡úNEW¡ú

¢£¥Ï¡¼¥É¥¦¥§¥¢¡¢¥á¥ó¥Æ¥Ê¥ó¥¹·Ï
Sun Fire¥µ¡¼¥Ð¡¼´ÉÍý
Sun Fire 15K ¥µ¡¼¥Ð¡¼´ÉÍý

¢£¥·¥§¥ë¥×¥í¥°¥é¥ß¥ó¥°·Ï
C¥·¥§¥ë¥×¥í¥°¥é¥ß¥ó¥°
B¥·¥§¥ë/K¥·¥§¥ë¥×¥í¥°¥é¥ß¥ó¥°

SunJavaSystem¥³¡¼¥¹
¢£¥¢¥¤¥Ç¥ó¥Æ¥£¥Æ¥£´ÉÍý
¥¢¥¤¥Ç¥ó¥Æ¥£¥Æ¥£´ÉÍý¡Ê´ðËÜÊÔ¡Ë
¥¢¥¤¥Ç¥ó¥Æ¥£¥Æ¥£´ÉÍý¡Ê±þÍÑÊÔ¡Ë
¥¢¥¯¥»¥¹¥Þ¥Í¡¼¥¸¥ã¡¼
¢£LDAP¥µ¡¼¥Ð¡¢¥á¡¼¥ë¥µ¡¼¥Ð
¥Ç¥£¥ì¥¯¥È¥ê¥µ¡¼¥Ó¥¹ 5.x
¥á¥Ã¥»¡¼¥¸¥ó¥°¥µ¡¼¥Ó¥¹ 5.x

¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥å¥Ç¡¼¥â¥ó nscd ¤È¤Ï

ÃÏÌ£¤Ê¥Ç¡¼¥â¥ó¤À¤¬Solaris¤Ç¥Í¥Ã¥È¥ï¡¼¥¯¤Î¥È¥é¥Ö¥ë¥·¥å¡¼¥Æ¥£¥ó¥°¤ò¤¹¤ë¤È¤­¤Ë¤Ïɬ¤ºÍí¤ó¤Ç¤¯¤ë¥Ç¡¼¥â¥ó¤À¡£
¤è¤¯¤ï¤«¤é¤Ê¤¤¤¬¥ê¥Ö¡¼¥È¤·¤¿¤éľ¤Ã¤¿¤Ê¤ó¤Æ¥È¥é¥Ö¥ë¤Ï¤â¤·¤«¤¹¤ë¤Ènscd¥Ç¡¼¥â¥ó¤Ë¸¶°ø¤¬¤¢¤Ã¤¿¤Î¤«¤â¡¦¡¦¡¦

¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥å¥Ç¡¼¥â¥ó¡Ênscd¡Ë¤ÏDNS¤äNIS¤Ê¤É¤Î°ìÈÌŪ¤Ê¥Í¡¼¥à¥µ¡¼¥Ó¥¹¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤òÊÝ»ý¤·¡¢passwd¡¢group¡¢hosts¥Õ¥¡¥¤¥ë¤Ê¤É¤Î¾ðÊó¤ò¥­¥ã¥Ã¥·¥å¤¹¤ë¡£

¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤¬Êѹ¹¤µ¤ì¤ë¤È³ºÅö¤¹¤ë¥ì¥³¡¼¥É¤Ï£±£°ÉÃ°ÊÆâ¤Ë¹¹¿·¤µ¤ì¤ë¡£¤¿¤À¡¢¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥¤¥Ã¥Á¥Õ¥¡¥¤¥ë /etc/nsswitch.conf¤ä nscd ¤Î¹½À®¥Õ¥¡¥¤¥ë /etc/nscd.conf ¤ÏÆÉ¤ßľ¤·¤Æ¤¯¤ì¤Ê¤¤¤¿¤á¡¢°Ê²¼¤Î¤è¤¦¤Ë¥Ç¡¼¥â¥ó¤ÎºÆµ¯Æ°¤¬É¬ÍפÀ¡£

# /etc/init.d/nscd stop
# /etc/init.d/nscd start


/etc/nsswitch.conf ¤ä /etc/nscd.conf ¥Õ¥¡¥¤¥ë¤ÏÌÇ¿¤ËÊѹ¹¤ò²Ã¤¨¤ë¤³¤È¤Ï¤Ê¤¤¤¬¡¢¥Í¡¼¥à¥µ¡¼¥Ó¥¹¤ÎÀÚ¤êÂØ¤¨¡õưºî¸¡¾ÚÃæ¤Ê¤É¤Î¤È¤­¤Ïnscd¥Ç¡¼¥â¥óºÆµ¯Æ°¤òƬ¤ËÆþ¤ì¤Æ¤ª¤«¤Ê¤¤¤È¡¢ÀßÄ꤬Àµ¤·¤¤¤Ë¤â¤«¤«¤ï¤é¤º¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¡¦¡¦¡¦¡£¸¶°øÉÔÌÀ¤À¤¬¥ê¥Ö¡¼¥È¤·¤¿¤é¤¦¤Þ¤¯¤¤¤Ã¤¿¡£¤Ê¤É¤È¤¤¤¦¤³¤È¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¡£

nscd ¤Î¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¥«¥¹¥¿¥Þ¥¤¥º¤¹¤ëºÝ¤Ïµ¯Æ°¥¹¥¯¥ê¥×¥È /etc/rc2.d/S76nscd Æâ¤Îµ¯Æ°¥¨¥ó¥È¥ê¤òÊÔ½¸¤¹¤ì¤Ð¤è¤¤¡£

¥ª¥×¥·¥ç¥óÀâÌÀ
-e cache,yes|nocache¤Ç»ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤òÍ­¸ú(yes)¤Þ¤¿¤Ï̵¸ú(no)¤Ë¤¹¤ë¡£
-f configfileconfigfile¤Ç»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤ò¹½À®¥Õ¥¡¥¤¥ë¤È¤·¤Æ¤·¤è¤¦¤¹¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï/etc/nscd.conf¥Õ¥¡¥¤¥ë¡£
-g¸½ºß¤Î¹½À®¤ÈÅý·×¾ðÊó¤òɽ¼¨¤¹¤ë¡£¥­¥ã¥Ã¥·¥å¥Ò¥Ã¥ÈΨ¤Ê¤É¤ò³Îǧ¤¹¤ë¤È¤­¤Ë»ÈÍѤ¹¤ë¡£
-i cache»ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤ò̵¸ú¤Ë¤¹¤ë¡£¥È¥é¥Ö¥ë¥·¥å¡¼¥Æ¥£¥ó¥°»þ¤Ë¸¶°ø¤òÀÚ¤êʬ¤±¤ë¤È¤­¤Ê¤É¤ËÍøÍѤ¹¤ë¡£


¤Á¤Ê¤ß¤Ë nscd -g ¤Î·ë²Ì¤Ï°Ê²¼¤ÎÄ̤ꡣ

# nscd -g
nscd configuration:

         0  server debug level
""  is server log file

passwd cache:

       Yes  cache is enabled
     17062  cache hits on positive entries
       135  cache hits on negative entries
        77  cache misses on positive entries
       118  cache misses on negative entries
      98.9% cache hit rate
         0  queries deferred
        13  total entries
       211  suggested size
       600  seconds time to live for positive entries
         5  seconds time to live for negative entries
        20  most active entries to be kept valid
       Yes  check /etc/{passwd, group, hosts, inet/ipnodes} file for changes
        No  use possibly stale data rather than waiting for refresh

group cache:

       Yes  cache is enabled
      3531  cache hits on positive entries
         0  cache hits on negative entries
         9  cache misses on positive entries
         0  cache misses on negative entries
      99.7% cache hit rate
         0  queries deferred
         9  total entries
       211  suggested size
      3600  seconds time to live for positive entries
         5  seconds time to live for negative entries
        20  most active entries to be kept valid
       Yes  check /etc/{passwd, group, hosts, inet/ipnodes} file for changes
        No  use possibly stale data rather than waiting for refresh

hosts cache:

       Yes  cache is enabled
      8137  cache hits on positive entries
         6  cache hits on negative entries
     10777  cache misses on positive entries
       385  cache misses on negative entries
      42.2% cache hit rate
         0  queries deferred
        63  total entries
       211  suggested size
      3600  seconds time to live for positive entries
         5  seconds time to live for negative entries
        20  most active entries to be kept valid
       Yes  check /etc/{passwd, group, hosts, inet/ipnodes} file for changes
        No  use possibly stale data rather than waiting for refresh

ipnodes cache:

       Yes  cache is enabled
       286  cache hits on positive entries
        59  cache hits on negative entries
         2  cache misses on positive entries
       981  cache misses on negative entries
      26.0% cache hit rate
         0  queries deferred
         6  total entries
       211  suggested size
      3600  seconds time to live for positive entries
         5  seconds time to live for negative entries
        20  most active entries to be kept valid
       Yes  check /etc/{passwd, group, hosts, inet/ipnodes} file for changes
        No  use possibly stale data rather than waiting for refresh

exec_attr cache:

       Yes  cache is enabled
         0  cache hits on positive entries
         0  cache hits on negative entries
         0  cache misses on positive entries
         0  cache misses on negative entries
       0.0% cache hit rate
         0  queries deferred
         0  total entries
       211  suggested size
      3600  seconds time to live for positive entries
       300  seconds time to live for negative entries
        20  most active entries to be kept valid
       Yes  check /etc/{passwd, group, hosts, inet/ipnodes} file for changes
        No  use possibly stale data rather than waiting for refresh

prof_attr cache:

       Yes  cache is enabled
         0  cache hits on positive entries
         0  cache hits on negative entries
         0  cache misses on positive entries
         0  cache misses on negative entries
       0.0% cache hit rate
         0  queries deferred
         0  total entries
       211  suggested size
      3600  seconds time to live for positive entries
         5  seconds time to live for negative entries
        20  most active entries to be kept valid
       Yes  check /etc/{passwd, group, hosts, inet/ipnodes} file for changes
        No  use possibly stale data rather than waiting for refresh

user_attr cache:

       Yes  cache is enabled
      2570  cache hits on positive entries
        82  cache hits on negative entries
         2  cache misses on positive entries
        29  cache misses on negative entries
      98.8% cache hit rate
         0  queries deferred
         2  total entries
       211  suggested size
      3600  seconds time to live for positive entries
         5  seconds time to live for negative entries
        20  most active entries to be kept valid
       Yes  check /etc/{passwd, group, hosts, inet/ipnodes} file for changes
        No  use possibly stale data rather than waiting for refresh


¤Þ¤¿¡¢/etc/nscd.conf¤Î¥Ç¥Õ¥©¥ë¥È(Solaris9)¤Î¾õÂ֤ϰʲ¼¤ÎÄ̤ꡣ
#¤Ç»Ï¤Þ¤ë¹Ô¤Ï¥³¥á¥ó¥È¡£¥¨¥ó¥È¥ê·Á¼°¤ÏÂ裱¥Õ¥£¡¼¥ë¥É¤¬Â°À­¡¢Â裲¥Õ¥£¡¼¥ë¥É¤¬¥­¥ã¥Ã¥·¥å̾¡¢Â裳¥Õ¥£¡¼¥ë¥É¤¬Â°À­¤ËÂбþ¤·¤¿ÃÍ(Éÿô¤Ê¤É)¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£Í­¸ú¤Ê¥­¥ã¥Ã¥·¥å¤Î̾Á°¤Ï hosts, passwd, group, ipnodes, exec_attr, prof_attr, user_attr ¤Î£·¤Ä¡£ipnodes¤ÏIPv6ÍѤΥۥ¹¥È¾ðÊ󡢡Á_attr¤Î£³¤Ä¤ÏRBAC(Role Based Access Control)ÍѤξðÊó¤Ë¤Ê¤ë¡£

# cat /etc/nscd.conf
#
# Copyright (c) 1994-2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident    "@(#)nscd.conf    1.6    01/01/26 SMI"
#

#
# Currently supported cache names: passwd, group, hosts, ipnodes
# exec_attr, prof_attr, user_attr
#

#    logfile            /var/adm/nscd.log
#    enable-cache        hosts        no

    debug-level        0

    positive-time-to-live    passwd        600
    negative-time-to-live    passwd        5
    suggested-size        passwd        211
    keep-hot-count        passwd        20
    old-data-ok        passwd        no
    check-files        passwd        yes

    positive-time-to-live    group        3600
    negative-time-to-live    group        5
    suggested-size        group        211
    keep-hot-count        group        20
    old-data-ok        group        no
    check-files        group        yes

    positive-time-to-live    hosts        3600
    negative-time-to-live    hosts        5
    suggested-size        hosts        211
    keep-hot-count        hosts        20
    old-data-ok        hosts        no
    check-files        hosts        yes

    positive-time-to-live    ipnodes        3600
    negative-time-to-live    ipnodes        5
    suggested-size        ipnodes        211
    keep-hot-count        ipnodes        20
    old-data-ok        ipnodes        no
    check-files        ipnodes        yes

    positive-time-to-live    exec_attr    3600
    negative-time-to-live    exec_attr    300
    suggested-size        exec_attr    211
    keep-hot-count        exec_attr    20
    old-data-ok        exec_attr    no
    check-files        exec_attr    yes

    positive-time-to-live    prof_attr    3600
    negative-time-to-live    prof_attr    5
    suggested-size        prof_attr    211
    keep-hot-count        prof_attr    20
    old-data-ok        prof_attr    no
    check-files        prof_attr    yes

    positive-time-to-live    user_attr    3600
    negative-time-to-live    user_attr    5
    suggested-size        user_attr    211
    keep-hot-count        user_attr    20
    old-data-ok        user_attr    no
    check-files        user_attr    yes


³ÆÂ°À­¤ÎÀâÌÀ¤Ï°Ê²¼¤ÎÄ̤ꡣ

°À­ÀâÌÀ
check-files»ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤Ë´Ø¤·¤Æ´ØÏ¢¥Õ¥¡¥¤¥ë¤ÎÊѹ¹¤Î̵ͭ¤ò£±£°É䴤Ȥ˥Á¥§¥Ã¥¯¤¹¤ë¤«¤É¤¦¤«¤ò»ØÄꤹ¤ë¡£yes¤ÇÍ­¸ú¡¢no¤Ç̵¸ú¤Ë¤Ê¤ë¡£
debug-level¥Ç¥Ð¥Ã¥°¾ðÊó¤Î¥ì¥Ù¥ë¤ò0¡Á10¤ÎÈϰϤÇÀßÄꤹ¤ë¡£10¤ò»ØÄꤹ¤ë¤ÈºÇ¤â¾ÜºÙ¤Ê¾ðÊ󤬯À¤é¤ì¤ë¡£0°Ê³°¤ÎÃͤò»ØÄꤹ¤ë¤Ènscd¤Ï¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ç¼Â¹Ô¤µ¤ì¤ë¡£
enable-cache»ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤òÍ­¸ú¤Ë¤¹¤ë¤«¤É¤¦¤«¤ò»ØÄꤹ¤ë¡£yes¤ÇÍ­¸ú¡¢no¤Ç̵¸ú¤Ë¤Ê¤ë¡£
keep-hot-count»ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤òÊÝ»ý¤¹¤ë¥¨¥ó¥È¥ê¤Î¿ô¤ò»ØÄꤹ¤ë¡£
logfile»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë¥Ç¥Ð¥Ã¥°¾ðÊó¤òÁ÷¤ë¡£/dev/tty¤Ê¤É¤ÎÆÃ¼ì¥Ç¥Ð¥¤¥¹¤â»ØÄê²Äǽ¡£
negative-time-to-live»ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤Ë´Ø¤·¤Æ¼ºÇÔ¤·¤¿Ì䤤¹ç¤ï¤»¤ÎÀ¸Â¸´ü´Ö¤ò»ØÄꤹ¤ë¡£Ã±°Ì¤ÏÉá£
positive-time-to-live »ØÄꤵ¤ì¤¿¥­¥ã¥Ã¥·¥å¤Ë´Ø¤·¤ÆÀ®¸ù¤·¤¿Ì䤤¹ç¤ï¤»¤ÎÀ¸Â¸´ü´Ö¤ò»ØÄꤹ¤ë¡£Ã±°Ì¤ÏÉá£
suggested-sizeÆâÉô¥Ï¥Ã¥·¥å¥Æ¡¼¥Ö¥ë¤Î¥µ¥¤¥º¤ò»ØÄꤹ¤ë¡£ÃͤˤÏÁÇ¿ô¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï211¤¬Å¬ÍѤµ¤ì¤Æ¤¤¤ë¡£

¡Ú¥¢¥ó¥±¡¼¥È¡Û
¤³¤Îµ­»ö¤Ï¤¿¤á¤Ë¤Ê¤ê¤Þ¤·¤¿¤«¡©
¡¡¡¡¡¡¤Ï¤¤¡¡¡¡/¡¡¡¡¤¤¤¤¤¨

My Yahoo!¤ËÄɲÃ