首页 > IT职业 > IT生活 > 在PUB上看到的,暂时留下来!
我也遇到了這個問題:
[root@vmrac2 ~]# mount -t ocfs2 /dev/sdd1 /mnt/ocfs2
ocfs2_hb_ctl: Device name specified was not found while reading uuid
mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted"
我是這樣解決的﹕
先是在兩台主機上修改 /etc/sysconfig/o2cb ﹕
O2CB_HEARTBEAT_THRESHOLD=301
接著重新啟動兩台主機
然后在第二台上重新格式化(之前是在第一台格式化的)﹐并mount:
[root@vmrac2 ~]# mkfs.ocfs2 -b 4K -C 32K -N 4 --force -L oradatafiles /dev/sdd1
mkfs.ocfs2 1.2.1
Overwriting existing ocfs2 partition.
WARNING: Cluster check disabled.
Proceed (y/N): y
Filesystem label=oradatafiles
Block size=4096 (bits=12)
Cluster size=32768 (bits=15)
Volume size=5346394112 (163159 clusters) (1305272 blocks)
6 cluster groups (tail covers 1879 clusters, rest cover 32256 clusters)
Journal size=67108864
Initial number of node slots: 4
Creating bitmaps: done
Initializing superblock: done
Writing system files: done
Writing superblock: done
Formatting Journals: done
Writing lost+found: done
mkfs.ocfs2 successful
[root@vmrac2 ~]# mount -t ocfs2 /dev/sdd1 /mnt/ocfs2
[root@vmrac2 ~]# mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda3 on /oracle type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
configfs on /config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/sdd1 on /mnt/ocfs2 type ocfs2 (rw,_netdev,heartbeat=local)
[root@vmrac2 ~]# umount /mnt/ocfs2/
[root@vmrac2 ~]# mount -t ocfs2 -o datavolume /dev/sdd1 /mnt/ocfs2
[root@vmrac2 ~]# mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda3 on /oracle type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
configfs on /config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/sdd1 on /mnt/ocfs2 type ocfs2 (rw,_netdev,datavolume,heartbeat=local)
[root@vmrac2 ~]#
最后在第一台執行mount﹕
[root@vmrac1 ~]# mount -t ocfs2 /dev/sdd1 /mnt/ocfs2
[root@vmrac1 ~]# mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda3 on /oracle type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
configfs on /config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/sdd1 on /mnt/ocfs2 type ocfs2 (rw,_netdev,heartbeat=local)
[root@vmrac1 ~]# umount /mnt/ocfs2/
[root@vmrac1 ~]# mount -t ocfs2 -o datavolume /dev/sdd1 /mnt/ocfs2
[root@vmrac1 ~]# mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda3 on /oracle type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
configfs on /config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/sdd1 on /mnt/ocfs2 type ocfs2 (rw,_netdev,datavolume,heartbeat=local)
[root@vmrac1 ~]#
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8570952/viewspace-906414/ ,如需转载,请注明出处,否则将追究法律责任。