4. 奇怪的问题出现在reboot之后,这个配置消失了,居然又变回了默认值。
[root@CentOS01 ~]# reboot
[root@centos01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_centos00-lv_root
14G 11G 2.6G 80% /
tmpfs 1.9G 88K 1.9G 1% /dev/shm
/dev/sda1 485M 37M 424M 8% /boot
5. 难道刚才的修改没有写到配置文件?确认一下刚才的修改是保存成功的。
[root@centos01 ~]# cat /etc/fstab
tmpfs /dev/shm tmpfs defaults,size=3276M 0 0
并且/etc/mtab的记录信息也是匹配的
[root@centos01 ~]# cat /etc/mtab
/dev/mapper/vg_centos00-lv_root / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw,size=3276M 0 0
/dev/sda1 /boot ext4 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
6. 经过多次测试,这个问题反复出现。wait4friend没找到其他办法,最后只能用比较暴力的办法在开机过程中remount这个目录,见下面红色的增加部分。
[root@centos01 ~]# vi /etc/rc.local
"/etc/rc.local" 11L, 274C#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
mount -o remount /dev/shm
重新启动之后,问题解决。
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
