Heitor Lessa
2012-Jun-22 11:55 UTC
[Ocfs2-users] Renew IP address node came online again - Amazon EC2
Hi, I was looking for why one of the nodes could not mount OCFS again, then I found this path: /sys/kernel/config/cluster/r0/node/ Which I have folders related to my servers, then I noticed that node1 (which is working with OCFS2) did not update node2 IP address. The file I am talking about is: /sys/kernel/config/cluster/r0/node/raid2/ipv4_address Example: root at node1:/sys/kernel/config/cluster/r0/node/node2# cat ipv4_address10.227.43.31 root at node22:/sys/kernel/config/cluster/r0/node/node2# cat ipv4_address10.54.19.4 The question is: How could I update it in order to get it working again Without Restart ocfs service? Cluster.conf - Updated with new IP address OCFS2 Version - 1.4 OS - Ubuntu Lucid Thank you very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20120622/6576bfd4/attachment.html
Heitor Lessa
2012-Jun-28 11:36 UTC
[Ocfs2-users] 答复: Renew IP address node came online again - Amazon EC2
Hi, Sorry for delay. Unfortunately this not going to work (tested by the way), once cluster directory (under /sys/kernel/config/cluster/) is created when we start o2ctb daemon, after that its not possible to handle any modify operation over that (write()) manually. Once you try you will get an error - Operation not permitted -- which is normal. Researching a little bit more, I have seen that OCFS2 1.4 does not support modify nodes in a running cluster, then I check BugZilla to open a feature request, however someone already created years and years ago with no response. Add a new node in a running cluster works fine, to remove or modify you have to stop the whole cluster/mount points though. -- When run a new node command you will get: # Node node2 created -- When run a modification command you will get: # OCFS - Not yet supported At the moment we will have to use Amazon VPC once we will ensure that IP address will not change And whether any bug occurs, we can simply replace such NIC to another node and so on. References: OCFS BugZilla - https://oss.oracle.com/bugzilla/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&product=&content=modify+nodeMailing list thread - http://www.mail-archive.com/ocfs2-users at oss.oracle.com/msg00085.html Quote from OCFS developer -- The o2cb cluster stack currently only allows adding new nodesdynamically. All other ops, modify/del, require the cluster to be down. Thank you very much for reply and I strongly believe that such clarification will help someone else with the same issue. Heitor Lessa From: guozhonghua at h3c.com To: heitor.lessa at hotmail.com CC: ocfs2-users at oss.oracle.com Subject: ??: [Ocfs2-users] Renew IP address node came online again - Amazon EC2 Date: Mon, 25 Jun 2012 11:32:21 +0000 Hi, You can remove the directory of the node, and add it again with o2cb_ctl command; For example, Please refer to the man o2cb_ctl for details: o2cb_ctl -C -i -n node2 -t node -a number= -a ip_address=New_IP -a ip_port=New_port -a cluster=r0 At the same time, the cluster configure file should be changed according the new IP address and the new port of the node. ???: ocfs2-users-bounces at oss.oracle.com [mailto:ocfs2-users-bounces at oss.oracle.com] ?? Heitor Lessa ????: 2012?6?22? 19:55 ???: ocfs2-users at oss.oracle.com ??: [Ocfs2-users] Renew IP address node came online again - Amazon EC2 Hi, I was looking for why one of the nodes could not mount OCFS again, then I found this path: /sys/kernel/config/cluster/r0/node/ Which I have folders related to my servers, then I noticed that node1 (which is working with OCFS2) did not update node2 IP address. The file I am talking about is: /sys/kernel/config/cluster/r0/node/raid2/ipv4_address Example: root at node1:/sys/kernel/config/cluster/r0/node/node2# cat ipv4_address 10.227.43.31 root at node22:/sys/kernel/config/cluster/r0/node/node2# cat ipv4_address 10.54.19.4 The question is: How could I update it in order to get it working again Without Restart ocfs service? Cluster.conf - Updated with new IP address OCFS2 Version - 1.4 OS - Ubuntu Lucid Thank you very much. ------------------------------------------------------------------------------------------------------------------------------------- ???????????????????????????????????????? ???????????????????????????????????????? ???????????????????????????????????????? ??? 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/20120628/287b82ac/attachment.html