|
From: Marc G. <gr...@at...> - 2009-04-27 06:52:34
|
On Friday 24 April 2009 00:42:17 Dan Magenheimer wrote:
> Hi Marc --
>
> Thanks for the help. I got past my rpm problems and am
> now much further along but have hit another roadblock.
>
> First, FYI, I am using a different approach then the
> RHEL5 OCFS2 Shared Root Mini Howto, because of the
> way that I want to use the shared root. Specifically,
> I am first building and booting a root ocfs2 filesystem,
> using my own kernel (2.6.29) and my own initrd.img. With
> this (and before I install any OSR stuff), I am able
> to boot it as a Xen paravirtualized guest, using
> the Xen kernel= and ramdisk= config options; the root
> disk is NOT an LVM because I don't need a /boot. The
No problem with this my osr-ocfs2 cluster is running exactly the same. No LVM,
direct boot via kernel and initrd. That should not be a problem.
> 2.6.29 kernel has CONFIG_IP_PNP and I pass in the
> IP address and hostname from the Xen config file.
> This all seems to work fine (for a single node).
Ok. But still we need the mac adress for detecting the nodes identity in
the /etc/cluster/cluster.conf.
Also you might try to set the onboot flag in the cluster.conf at the nic
config to "no":
<com_info>
..
<eth name="eth0" mac="..." onboot="no"/>
..
</com_info>
I didn't test it yet (it not YET in my testcases) but I'm pretty confident it
should work.
>
> Next, I install the OSR rpms directly in the running
> ocfs2-root guest, then shut it down.
Ok. so far so good.
>
> Next, I mount the ocfs2-root-disk from another guest
> (that also has the OSR rpms installed) and follow
> the howto steps to create the cdsl infrastructure
> and links. Then I shut down the other guest.
Could you recall the exact steps and outputs?
>
> Next, I try to boot the OSR-modified ocfs2-root guest,
> but it has problems. It appears that /var doesn't
> exist as I get many messages such as:
The not mouting of /var is very strange. It should put you in a rescue shell.
Then type messages and send me the output.
>
> /etc/rc.d/rc.sysinit: /var/log/dmesg: No such file or directory
That's just before it trys to boot. That's somehow to far advanced.
>
> and then the boot process seems to hang trying to start the
> System Logger. No, it just takes a very long time and
> eventually I get to a login prompt. (Or I can boot
> single-user mode and get the same error messages, but
> get to a bash prompt.)
>
> With a "ls -l /var", I see:
>
> lrwxrwxrwx 1 root root 14 <date> /var -> cdsl.local/var
That's perfectly ok.
>
> (Note no leading / before cdsl.local)
>
> but "ls -ld /cdsl.local" shows it is empty.
That's strange.
>
> Browsing around, I see that /cluster/cdsl is populated
> (with subdirectories 0 ... 7 and default) and each has
> an etc and a var subdirectory. /cluster/shared has
> a var subdirectory and a var/lib subdirectory.
That's again perfectly ok.-
>
> So I'm guessing that cdsl.local should somehow be
> linked to /cluster but isn't. True?
Right but it is not liked but bind mounted. That means:
mount --bind /cluster/cdsl/<nodeid> /cdsl.local
but that's done in the initrd automatically so you should not have to bother
about that.
>
> One other thing I should mention... since my cluster.conf
> has 8 nodes numbered 0 to 7, in the "mount --bind"
> command during the cdsl setup steps, I used cluster/cdsl/0
> instead of cluster/cdsl/1 to bind to cdsl.local.
How did you "use" that. That should be done automatically shouldn't it?
>
> Any ideas? Maybe your initrd creates some necessary links
> and mine does not? (I tried booting with your initrd,
> but my ocfs2-root failed to mount giving a kernel panic...
> have you tested with linux-2.6.29? The error message
> "Heartbeat has to be started to mount a read-write
> clustered device" looks like it comes from a somewhat
> recent ocfs2 kernel patch I found here:
> http://www.mail-archive.com/ocf...@os.../msg00293.html
> and I worked around it by mounting with -o heartbeat=local)
>
> Sorry this is so long!
How does your /etc/cluster/cluster.conf look like?
--
Gruss / Regards,
Marc Grimme
http://www.atix.de/ http://www.open-sharedroot.org/
|