初次安装rac,遇到不少问题,其中问题一就是
#mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs
报错:mount.ocfs2: Invalid argument while mounting /dev/sdb1 on /ocfs.
Check 'dmesg' for more information on this error.
所以就检查了
#cat /var/log/dmesg------但是功力尚浅看不出什么原因来
又检查
#cat /var/log/message------里面提示错误
Apr 23 15:32:59 rac1 kernel: (6696,1):ocfs2_initialize_super:1455
ERROR: couldn't mount because of unsupported optional features (50).
Apr 23 15:32:59 rac1 kernel: (6696,1):ocfs2_fill_super:578 ERROR: status = -22
Apr 23 15:32:59 rac1 kernel: ocfs2: Unmounting device (8,17) on (node 255)
Apr 23 15:32:59 rac1 kernel: (6696,1):ocfs2_fill_super:578 ERROR: status = -22
Apr 23 15:32:59 rac1 kernel: ocfs2: Unmounting device (8,17) on (node 255)
由此可以知道可能选择的rpm出现了问题,笨人不怕多练嘛!那就换个rpm版本试试吧
哥们的linux redhat5 有点久,kernel号:
#uname -r
2.6.18-8.el5xen
原来版本是:ocfs2 1.4.4-1
更换为
:ocfs2 1.2.7-1
跟换步骤:
1.#rpm -ivh ocfs* --force ——安装后把1.4.4rpm包卸掉(#rpm -e ocfs。。。)
2.以 root 身份运行
#/etc/init.d/o2cb unload
# /etc/init.d/o2cb configure
# /etc/init.d/o2cb status
# /etc/init.d/o2cb status
# ocfs2console----格式化sdb1
# mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs
至此搞定,成功使用!
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23890223/viewspace-722052/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23890223/viewspace-722052/