--前期测试挂的disk /dev/sdb1一直mount不成功,也检查了/etc/fstab基本是正确
--经查询,可以在操作系统启动时查看系统日志,一分析是文件系统搞清了,正确是ext2而非ext3
[root@rhel5 oracle]# more /var/log/messages|grep sdb1
Jun 5 13:37:16 rhel5 kernel: sdb: sdb1
Jun 5 13:37:18 rhel5 kernel: sdb: sdb1
Jun 5 13:38:27 rhel5 kernel: VFS: Can't find ext3 filesystem on dev sdb1.--提示很明显了
Jun 6 01:29:08 rhel5 kernel: sdb: sdb1
Jun 6 01:39:15 rhel5 kernel: sdb: sdb1
Jun 6 02:08:17 rhel5 kernel: sdb: sdb1
Jun 6 02:08:17 rhel5 kernel: ext3: No journal on filesystem on sdb1
Jun 6 02:08:20 rhel5 kernel: ext3: No journal on filesystem on sdb1
Jun 6 02:48:11 rhel5 kernel: ext3: No journal on filesystem on sdb1
Jun 6 02:50:47 rhel5 kernel: sdb: sdb1
小结:
1,如果设备不能mount,直接查看/var/log/messages
列下
[root@rhel5 oracle]# more /etc/fstab
LABEL=/ / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/sdb1 /oracle ext2 defaults 1 1
--这个也可以查看设备mount文件系统类型
[root@rhel5 oracle]# mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /oracle type ext2 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-763182/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-763182/