[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Bad day in writesville

Ken Preslan wrote:
On Tue, Dec 21, 2004 at 05:19:30PM -0800, Rick Stevens wrote:

2. Do I have to destroy the filesystem and reformat it using the "-p lock_gulm" option?

To change the module permanently, you can unmount the filesystem on all
nodes and run the commands:

gfs_tool sb <device> proto <module>
gfs_tool sb <device> table <table>

If it's just a temporary thing, you can unmount the filesystem on all
nodes and mount with options to override the defaults in the superblock:

mount -o lockproto=<module>,locktable=<table>

<Module> is whatever you'd have for gfs_mkfs' -p and <table> is whatever you'd have to gfs_mkfs' -t.

Note that you need to be careful when you do either of these things. Running a mixed cluster where some machines are locking a FS with one protocol/table and other machines are locking the same FS with a different protocol/table is bad. It is bound to end in great sadness.

Gotcha. After looking at the bugzilla entries refered to in other replies to my question, it appears that LVM works fairly well with DLM but has major issues with GULM. However, someone mentioned that one can use DLM to lock LVM and use GULM to lock GFS.

Since the LVM stuff is pretty important, I intend to try that method.
I rebuilt LVM to use DLM/CMAN.  I've modprobed both lock_dlm and
lock_gulm and started clvmd.  I've used "cman_tool join" to set up DLM
and "vgchange -aly"d the LVM volume and it appeared.  I've used gfs_tool
to change the locking protocol on the filesystem to use GULM (the table
remains the same) and it mounted fine.  I'm about to start the same
stuff on the second node.  I'll keep you informed.
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
- Millihelen, adj: The amount of beauty required to launch one ship. -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]