[Ocfs2-users] 答复: 答复: Multiple Filesystems per Node

Guozhonghua guozhonghua at h3c.com
Wed Aug 13 17:52:31 PDT 2014


For example with two nodes:
cat /etc/ocfs2/cluster.conf

cluster:
        node_count = 2
        name = ocfs2
node:
        number = 1
        cluster = ocfs2
        ip_port = 7100
        ip_address = 192.168.0.2
        name = host1
node:
        number = 2
        cluster = ocfs2
        ip_port = 7100
        ip_address = 192.168.0.3
        name = host2

At the same time, in the file /etc/default/o2cb, the value of O2CB_BOOTCLUSTER muster be same with the value of the cluster in cluster.conf file.
The default is ocfs2, you can change it with other string value.

The cluster.conf muster be same on every node which will mount the same LUNs.

On every node, execute the commands as below after cluster.conf copied. Yeah, you can change the o2cb service started status at host booting time.
service o2cb onload
service o2cb online

Then you can mount the LUNS on every node.
But at first, the node must have the permissions to access the LUN, write permission for disk heartbeat of OCFS2.

发件人: Jacob Godin [mailto:jacobgodin at gmail.com]
发送时间: 2014年8月13日 19:33
收件人: guozhonghua 02084
抄送: ocfs2-users at oss.oracle.com
主题: Re: 答复: [Ocfs2-users] Multiple Filesystems per Node

Thanks Guozhonghua! Would you mind providing a sample config?

On Wed, Aug 13, 2014 at 12:37 AM, Guozhonghua <guozhonghua at h3c.com<mailto:guozhonghua at h3c.com>> wrote:
You can setup one cluster with two nodes and using two LUNS at the same time.

I means mount different LUN with different point on the every node, and the two nodes are in one same cluster.

Configur the /etc/ocfs2/cluster.conf

发件人: ocfs2-users-bounces at oss.oracle.com<mailto:ocfs2-users-bounces at oss.oracle.com> [mailto:ocfs2-users-bounces at oss.oracle.com<mailto:ocfs2-users-bounces at oss.oracle.com>] 代表 Jacob Godin
发送时间: 2014年8月13日 11:27
收件人: ocfs2-users at oss.oracle.com<mailto:ocfs2-users at oss.oracle.com>
主题: [Ocfs2-users] Multiple Filesystems per Node

Hi all,

We're looking to have 2 separate iSCSI LUNs serve up two separate OCFS2 filesystems to the same set of nodes. IE, LUN 1 will mount to /mnt1 o all nodes, and LUN 2 will mount to /mnt2.

We're having a hard time figuring out the best way to accomplish this. Is it possible to have multiple clusters per node? Multiple FS per cluster?

Thanks!
-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20140814/6a799495/attachment.html 


More information about the Ocfs2-users mailing list