Subject : Cache filesystem Setup

Solution Description:
=====================

NFS±â¹Ý CACHEFSÀÇ °³³äÀº Á»´õ ¼º´ÉÀÌ Çâ»óµÈ ¼º´ÉÀ» ±â´ëÇÏ´Â °ÍÀÌ´Ù.
´Ü Read Only FileÀÎ °æ¿ì¿¡ ÇÑÇÏ¿© CACHEFSÀÇ È¿°ú¸¦ ±â´ëÇÒ ¼ö ÀÖ´Ù.

´ÙÀ½Àº cachefs¸¦ default·Î setup ÇÏ´Â ProcedureÀÌ´Ù.

www /> mount -F nfs tech:/user3/SUNWss /user3/SUNWss
www /> cfsadmin -c /cache1   /* cache directory »ý¼º )   */
www /> mkdir /xyz            /* cachefs mount point »ý¼º */
www /> mount -F cachefs -o backfstype=nfs,backpath=/user3/SUNWss,cachedir=/cache1 tech:/user3/SUNWss /xyz

mount optionÀº ´Ù¾çÇÏ´Ù. Á»´õ »ó¼¼ÇÑ OptionÀº man mount_cachefs¸¦ ÂüÁ¶ÇϽÿÀ.

www /> df -k
ÆÄÀϽýºÅÛ           ų·Î¹ÙÀÌÆ®    »ç¿ë    °¡¿ë ¿ë·®      ¼³Ä¡ÁöÁ¡
    .
    .
tech:/user3/SUNWss    989285  689765  200600    77%    /user3/SUNWss
/user3/SUNWss         989285  689765  200600    77%    /xyz

www /cache1> cfsadmin -l /cache1
cfsadmin: ij½¬ FS Á¤º¸ ³ª¿­
   ÃÖ´ëºí·°      90%
   ÃÖ¼Òºí·°       0%
   ½º·¹½Ãºí·°    85%
   ÃÖ´ëÆÄÀÏ      90%
   ÃÖ¼ÒÆÄÀÏ       0%
   ½º·¹½ÃÆÄÀÏ    85%
   ÃÖ´ëÆÄÀÏÅ©±â   3MB
  tech:_user3_SUNWss:_xyz


´ÙÀ½Àº cache directory¸¦ »ý¼ºÇϰųª ¼öÁ¤ÇÒ ¶§ ÁÙ¼ö ÀÖ´Â 
parameterÀÇ Á¾·ù¿Í default°ªÀ» º¸¿©ÁØ´Ù.

   maxblocks     90
   minblocks      0
   threshblocks  85
   maxfiles      90
   minfiles       0
   threshfiles   85
   maxfilesize    3MB

----------------------------------------------------------------------------

Revision History

ÀÛ¼ºÀÏÀÚ : 97.03.13
ÀÛ¼ºÀÚ : À̹ÎÈ£

¼öÁ¤ÀÏÀÚ :
¼öÁ¤ÀÚ :