Subject : Root file systemÀÌ fullÀÏ ¶§ Trouble Shooting(Solaris 2.x)

Description :

. Åë»ó root filesystemÀÌ ¸ðÀÚ¸£´Â °æ¿ì´Â coreµî ºÒÇÊ¿äÇÑ fileÀÌ »ý¼ºµÇ¾ú°Å³ª
  ±Ùº»ÀûÀ¸·Î tmp, ¶Ç´Â var directoryµîÀÌ ºÎÁ·ÇÑ °æ¿ìµîÀÌ´Ù.
  ¹°·Ð repartionÀ» ÇÏ´Â °ÍÀÌ °¡Àå ÁÁÀº ¹æ¹ýÀÌÁö¸¸ ¿©ÀÇÄ¡ ¾ÊÀº °æ¿ì
  variableÇÑ directoryÀÎ tmp, var¸¦ ´Ù¸¥ partionÀ¸·Î link ÇÏ´Â °ÍÀÌ´Ù.

. setup procedure

 - ¸ÕÀú availableÇÑ filesystemÀ» ã´Â´Ù.

 - init 1 (Single User Mode)

 - mount /dev/dsk/c0t1d0s7 /user3

 - data backup
  ex)tar cvpf /user3/var.tar ./var

 - cd /user3;tar xvpf var.tar

 - cd /;rm -r var;ln -s /user3/var /var

 - /etc/vfstab¿¡¼­ user3 partitionÀ» usr partition°ú °°ÀÌ "mount at boot"¸¦
   "1" ±×¸®°í "mount options"¸¦ "no"·Î editiong.

 - cd /etc/rcS.d

 - vi S30rootusr.sh (ÀÌÇÏ line add)
     ...
   exec < ${vfstab}; readvfstab "/user3"
   if [ "${mountp}" ]
   then
           /sbin/mount -m -o ro /user3
   fi
     ...

 - vi S40standardmounts.sh (ÀÌÇÏ line add)
     ...
   #
   # Check and remount the /user3 file system (formerly mounted read-only).
   #
   exec < ${vfstab}; readvfstab "/user3"
   if [ "${mountp}" ]
   then
           checkopt "ro" ${mntopts}
           if [ "X${option}" != "Xro" ]
           then
                   checkfs ${fsckdev} ${fstype} ${mountp}
                   if [ "${mntopts}" != "-" ]
                   then
                           mntopts="remount,${mntopts}"
                   else
                           mntopts="remount"
                   fi
                   /sbin/mount -m -o ${mntopts} ${mountp}
           fi
           mntlist="${mntlist}${special} ${mountp}\n"
   fi
     ...

 - reboot

Revision History

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

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