Following up on my own post, for the benefit of those searching the
archives, the solution in this case involved wiping out enough of the
partition table on the device before re-partitioning and re-making the
ocfs2 filesystems on these luns.
They had originally been formatted via ocfs2console using the entire
device (/dev/sdb) without partitioning. We then realized we needed a
partition table and created a single partition, re-making the ocfs2
filesystem on it. But looking for device labels with 'findfs' always
showed two devices with the same label (/dev/sdb & /dev/sdb1). That was
apparently enough to hose mounting by label.
The original advice I got was to wipe out the 1st 1KB of the device
using something like "dd if=dev/zero of=/dev/sdb bs=1024 count=1"
before
re-partitioning/re-mkfs'ing, but apparently that did not erase enough of
the old partitioning information. Upping the count to 512 (probably
overkill) did the trick.
Sorry if any of this is painfully obvious to any of you.
-Norm
On Thu, 2010-02-04 at 09:14 -0500, Norman P. B. Joseph
wrote:> What would cause OCFS2 filesystems to be mountable via
'ocfs2console',
> but not via the command line (or /etc/init.d/ocfs2)? The symptoms are:
>
> # mount /u01
> mount.ocfs2: Bad magic number in inode while trying to determine heartbeat
information
>
> Similar messages come from the ocfs2 startup script. Yet using the
> mount option in ocfs2console mounts the partitions without a problem.
>
> System is RHEL 5.4 x86_64, OCFS2 is v2.6.18 and ocfs2-tools are v1.4.3.
>
>
--
Norman Joseph, Senior System Engineer joseph at ctc.com
IC|XC
Concurrent Technologies Corporation 814.269.2633 --+--
Information Systems Management Office (ISMO) NI|KA
-~- However beautiful the strategy, you should occasionally look at the results.
-~-
------------------------------------------------------------
This message and any files transmitted within are intended
solely for the addressee or its representative and may
contain company sensitive information. If you are not the
intended recipient, notify the sender immediately and delete
this message. Publication, reproduction, forwarding, or
content disclosure is prohibited without the consent of the
original sender and may be unlawful.
Concurrent Technologies Corporation and its Affiliates.
www.ctc.com 1-800-282-4392
------------------------------------------------------------