# /etc/init.d/o2cb loadLoading module "configfs": OK
Mounting configfs filesystem at /config: OK
Loading module "ocfs2_nodemanager": OK
Loading module "ocfs2_dlm": OK
Loading module "ocfs2_dlmfs": OK
Mounting ocfs2_dlmfs filesystem at /dlm: OK
通过以下方式使cluster ocfs2 启动:
# /etc/init.d/o2cb online ocfs2
Starting cluster ocfs2: OK
通过以下方式停止cluster ocfs2:
# /etc/init.d/o2cb offline ocfs2
Cleaning heartbeat on ocfs2: OK
Stopping cluster ocfs2: OK
通过以下方式停止所有服务:
# /etc/init.d/o2cb unload
Unmounting ocfs2_dlmfs filesystem:
Unloading module "ocfs2_dlmfs": OK
Unmounting configfs filesystem: OK
Unloading module "configfs": OK
通过以下方式使O2CB在系统启动时自动被加载:
# /etc/init.d/o2cb configure
Configuring the O2CB driver.
This will configure the on-boot properties of the O2CB driver.
The following questions will determine whether the driver is loaded onboot. The currentvalues will be shown in brackets ('[]'). Hitting
<ENTER> without typing an answer will keep that current value. Ctrl-C
will abort.
Load O2CB driver on boot (y/n) [n]: y
Cluster to start on boot (Enter "none" to clear) []: ocfs2
Writing O2CB configuration: oK
#
如果cluster已经被配置为系统启动时加载,可以通过以下方式启动和停止它:
# /etc/init.d/o2cb loadLoading module "configfs": OK
Mounting configfs filesystem at /config: OK
Loading module "ocfs2_nodemanager": OK
Loading module "ocfs2_dlm": OK
Loading module "ocfs2_dlmfs": OK
Mounting ocfs2_dlmfs filesystem at /dlm: OK