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
작성자 : 이민호
수정일자 :
수정자