[Ocfs2-users] renaming a OCFS2 cluster

Werner Flamme werner.flamme at ufz.de
Fri Feb 26 01:33:49 PST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tao Ma [25.02.2010 07:18]:
> Hi Werner,

Hi Tao,

>> Before you change a cluster name, you missed one important step, you 
>> need to offline the cluster. So the right steps is:
>> 1. /etc/init.d/o2cb offline
>> 2. change /etc/ocfs2/cluster.conf
>> 3. run /etc/init.d/o2cb configure and change the name.
> 
>> Now, since you have already changed the configuration file(step 2 and 
>> 3), there are 2 different ways to get the right cluster up. One is 
>> "umount the ocfs2 volume and reboot the box.", this is simple.
>> The other is that you can just renamed the cluster name(in cluster.conf 
>> and o2cb configure) back to the name in your /config/cluster and then do 
>> the steps I described above(1,2,3).

Since rebooting a SAP system is not really an option for me ;-) I chose
the way with reverting all changes.

I can't do "/etc/init.d/o2cb offline", because this option is not
supported, so I did an "rco2cb stop" (just less to write, since:
- ---snip---
# ls -l $(which rco2cb)
lrwxrwxrwx  1 root root 16 Jan 12  2008 /sbin/rco2cb -> /etc/init.d/o2cb
- ---pins---
However that command must be named, the /config and /dlm directory were
empty, nothing was mounted there. "lsmod | grep o" showed nothing that
looks like OCFS2 related.
After that, I changed /etc/ocfs2/cluster.conf (but not
/etc/sysconfig/o2cb), and then:
- ---snip---
# rco2cb 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 on
boot.  The current values 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) [y]:
Cluster to start on boot (Enter "none" to clear) [ocfs2]: sapcluster
Writing O2CB configuration: OK
Starting cluster sapcluster: Failed
o2cb_ctl: Memory allocation failed while setting cluster name
Stopping cluster sapcluster: OK
sapuft:/etc/ocfs2 #
- ---pins---

Hm.

OK, I start all over again.

And now:
- ---snip---
# rco2cb 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 on
boot.  The current values 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) [y]:
Cluster to start on boot (Enter "none" to clear) [sapcluster]:
Writing O2CB configuration: OK
Loading 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
Starting cluster sapcluster: OK
- ---pins---

> 
>> Good luck.

Now I understand why you wished that :-)

Thank you, for both giving me advice and wishing luck!

Regards,
Werner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkuHlXwACgkQk33Krq8b42Oe5QCbBdES8y6/CmkyNe5Lgn+yyTAc
mdUAn0svIKGTQjH5x+K0XsH+2Whl7VVr
=ad3J
-----END PGP SIGNATURE-----



More information about the Ocfs2-users mailing list