View previous topic :: View next topic |
Author |
Message |
olli.bo Apprentice
Joined: 16 Jul 2003 Posts: 208 Location: Germany
|
Posted: Tue Jul 24, 2007 1:50 pm Post subject: GFS2 and Gentoo |
|
|
Hi,
is there anywhere a HowTo or a Documentation how to install GFS2 especially on Gentoo. There doesn't seem to be any ebuilds for tools like mkfs.gfs2...!?
I tried to compile the sources found on sources.redhat.com but after getting several error I gave it up...
Is there anyone got it running?
thx
olli |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Tue Jul 24, 2007 5:45 pm Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo.
Not about getting gentoo installed, so moved here. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
thepustule Apprentice
Joined: 22 Feb 2004 Posts: 212 Location: Toronto, Canada
|
Posted: Tue Sep 25, 2007 10:11 pm Post subject: |
|
|
Yes, well, GFS2 still isn't in Gentoo. It's been in the kernel for ages already - since 2.6.19. But according to https://bugs.gentoo.org/show_bug.cgi?id=184850 it is believed to be not production ready by gentoo devs. What gives? |
|
Back to top |
|
|
crquan n00b
Joined: 12 Oct 2007 Posts: 12 Location: Singapore
|
Posted: Fri Jan 11, 2008 1:46 am Post subject: |
|
|
wow, I have tried to work on gfs2-2.01.00.ebuild and the work not finished:
- cluster-2.xx.xx series have too many differences with cluster-1.xx.xx, its homepage (http://sources.redhat.com/cluster/) recorded them as "Cluster Components - Old" and "Cluster Components - New", so could appear in the new gfs2-2.xx.xx.ebuild (and cman and others);
- gfs2-2.01.00.ebuild (https://bugs.gentoo.org/show_bug.cgi?id=201132) could install the gfs2 component of redhat cluster now, only with ebuild xx.ebuid digest merge;
- some gfs's dependencies such as gfs-header,cman-header is not needed any more, gfs2 has been merged into the mainline kernel and cman redesigned with openais library dependency, the original cman kernel module not needed any more;
- openais-0.80.3.ebuild (https://bugs.gentoo.org/show_bug.cgi?id=160847) works;
- while compiling the cluster-2.01.00, use 'make userland' instead of 'make all'; but there're still circular dependcies, cman depends on ccs, css depends on cman-lib, that's a part of cman;
|
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Fri Jan 11, 2008 2:44 pm Post subject: |
|
|
Do you also have bug reports (and ebuilds) for the other packages - cman, ccs, fence, etc.
I was hoping to work on these as well, but if you've already got some work on them done I'd rather start from there.
The devs seem to want to keep things into separate ebuilds, which does seem to be more in the gentoo spirit. For instance, I don't really care about rgmanager, and so far as I know, I don't need it - sys-cluster/heartbeat will do the trick. I could also do without conga and the other gui stuff. |
|
Back to top |
|
|
crquan n00b
Joined: 12 Oct 2007 Posts: 12 Location: Singapore
|
Posted: Mon Jan 14, 2008 9:34 am Post subject: |
|
|
please pay attention on #184850, the resolution is neither simple nor deterministic, you could start your own and communicate. |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Mon Jan 14, 2008 10:15 pm Post subject: |
|
|
So far today I got ccs, cman, cman-lib, dlm, fence (with group), gnbd, and rgmanager ebuilds all done.
The cman init script needs some checking, so when I get that done I'll add a bug report for all of them.
Also, I need to do the gfs2 one. Probably by the end of tomorrow I'll have something to share with everyone. |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
|
Back to top |
|
|
crquan n00b
Joined: 12 Oct 2007 Posts: 12 Location: Singapore
|
Posted: Fri Jan 18, 2008 2:03 am Post subject: |
|
|
refer to:
https://bugs.gentoo.org/show_bug.cgi?id=203916
But now I still have question on why not using a single ebuild for redhat cluster project?
Let's use the single gcc ebuild for example, all other distros provide gcc with multiple packages such as in RHEL:
Quote: | compat-libgcc-296-2.96-138.i386.rpm
gcc-objc-4.1.2-14.el5.i386.rpm
gcc-java-4.1.2-14.el5.i386.rpm
compat-gcc-34-3.4.6-4.i386.rpm
gcc-gfortran-4.1.2-14.el5.i386.rpm
gcc-objc++-4.1.2-14.el5.i386.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm
gcc-4.1.2-14.el5.i386.rpm
libgcc-4.1.2-14.el5.i386.rpm
gcc-gnat-4.1.2-14.el5.i386.rpm
compat-gcc-34-g77-3.4.6-4.i386.rpm
gcc-c++-4.1.2-14.el5.i386.rpm |
it splits gcc (GNU Compiler Collection) into multiple packages: gcc, gcc-objc, gcc-java, gcc-gfortran, ...,
but Gentoo's advantage is using "USE":
Gentoo solves the gcc (the Collection) package with only one single ebuild which provides multiple "USE",
people who like fortran could compile gcc with fortran USE, people who like gcc-java could compile gcc with gcj USE, and so on,
But with this cluster suite package, why we give up this advantage?
Since all these cluster components provided within one tarball, compile them in one ebuild would compile faster, and save space (fewer /var/tmp/portage/... stress),
so the design of single cluster ebuild is to provide one single redhat cluster ebuild with multiple USE (cman, ccs, rgmanager, ...), why not? |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Fri Jan 18, 2008 7:35 pm Post subject: |
|
|
Yeah, I won't argue with that. But one of the devs on one of the bugs related to this basically said, no to the single ebuild idea and I kinda would like this to be placed into portage (obviously not marked stable), just so others can start testing, so I thought I'd play along. I think part of the reason is to make upgrading from GFS(1) to GFS2 easier for those that are already using the spilt ebuild model. I know that the ondisk formats differ, but the userland tools are the same and compatible. In fact mount.gfs is just a symlink to mount.gfs2 by default.
BTW, I updated the init scripts in that tar of mine. It's not updated on the bug (#184850) yet. |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Wed Jan 23, 2008 2:39 pm Post subject: |
|
|
FYI, there are still bugs in GFS2. I found at least one deadlock situation and RedHat's bugzilla is crawling with more. However, with these ebuilds the gfs-kernel module now builds against recent kernels (with an export symbols caveat found in usage.txt) and the tool set is the same so I've been testing GFS1 for the past several days instead. It seems to be pretty solid. |
|
Back to top |
|
|
EnderWiggin n00b
Joined: 26 Oct 2007 Posts: 14 Location: NY, US
|
Posted: Fri Jan 25, 2008 9:49 pm Post subject: |
|
|
I'm a little confused by your ebuild tarball. You provide ebuilds for both sys-fs/gfs-2.01.00 and sys-fs/gfs2-2.01.00 which contain slightly different syntax, etc. Which ebuild are you using? |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Mon Jan 28, 2008 1:38 pm Post subject: |
|
|
I'm personally using gfs-2.01.00. Like reiserfs is different from reiser4 and is not compatible, gfs2 is different from gfs. The trouble is that the cluster-1.x suite of userland tools that are required to use gfs and to build its kernel module (which is not included) don't build against newer kernels anymore. The cluster-2.x suite of tools is a newer framework for those tools that are compatible with both gfs and gfs2 and provides a kernel module for gfs that compiles against newer kernels. The reason for this is that it uses the dlm locking module which is now included in the mainline kernel. The only catch is that in order to use it you need to export a few extra symbols (see usage.txt for details). So in short, you're wondering why there are two separate ebuilds for gfs and gfs2. The answer is that they are two separate pieces of software.
Note: Unlike reiserfs and reiser4 (afaik) there happens to be a gfs2_convert tool that will make a gfs fs into a gfs2 fs. It works, but I've found deadlock situations with the locking code for gfs2, so I wouldn't use it in a production system yet. However, this does mean that when gfs2 becomes stable, you'll have an easy upgrade path. |
|
Back to top |
|
|
alexxy Developer
Joined: 28 Jun 2005 Posts: 50 Location: Gatchina, St. Petersburg, Russia
|
Posted: Mon Jan 28, 2008 8:30 pm Post subject: |
|
|
Hi all =)
Ive try to use gfs2 + clvm on cluster of 8 servers
lvm contains 2 volume groups
system ( not clustered )
data ( clustered )
unfortunately after i reboot this cluster it can't boot again
it stops booting on starting clvm
i try both locking types clustered internal and external _________________ Gentoo Team Russia
Working on Gentoo for iPAQ hx4700 |
|
Back to top |
|
|
thepustule Apprentice
Joined: 22 Feb 2004 Posts: 212 Location: Toronto, Canada
|
Posted: Mon Jan 28, 2008 10:24 pm Post subject: |
|
|
I have a CoRAID device in my rack, and 3 Gentoo systems with aoe support ready to go, to test gfs2 the day it shows up in portage unstable.
.... waiting.... |
|
Back to top |
|
|
zoltak n00b
Joined: 01 Mar 2005 Posts: 40
|
Posted: Mon Feb 04, 2008 5:03 am Post subject: GFS1 Kernel Version |
|
|
What is the latest kernel GFS will compile against?
I really want to run GFS1 with Xen but the latest kernel won't compile against GFS1 and you need a fairly recent kernel for the most recent version of Xen! |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Mon Feb 04, 2008 5:31 am Post subject: |
|
|
With the ebuild tarball I posted earlier, I'm running GFS1 on hardened-sources-2.6.23-r4. |
|
Back to top |
|
|
zoltak n00b
Joined: 01 Mar 2005 Posts: 40
|
Posted: Mon Feb 11, 2008 9:48 pm Post subject: |
|
|
XioXouS wrote: | With the ebuild tarball I posted earlier, I'm running GFS1 on hardened-sources-2.6.23-r4. |
Are you able to get a Xen enabled kernel to compile as well? |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Mon Feb 11, 2008 10:39 pm Post subject: |
|
|
I haven't tried. And given the recent kernel exploits, I'm quite happy to be running hardened. Report back your results though. |
|
Back to top |
|
|
zoltak n00b
Joined: 01 Mar 2005 Posts: 40
|
Posted: Wed Feb 13, 2008 11:22 am Post subject: |
|
|
XioXouS wrote: | I haven't tried. And given the recent kernel exploits, I'm quite happy to be running hardened. Report back your results though. |
I've just looked at the latest xen-sources available and they are for kernel 2.6.20-r5.
Do you think the ebuild will work with this kernel version? Are there any specific requirements? |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Wed Feb 13, 2008 2:16 pm Post subject: |
|
|
usage.txt says it requires a kernel >= 2.6.19, so they should, but I really don't know. Give it a shot and let us know how it went. Don't forget to add the exported symbols.
BTW, on the linux-cluster mailing list the main GFS/GFS2 developer said they would be reworking the code in the future to remove that requirement. It sounded like it basically amounted to a copy and paste of the locking code that would have been provided by the exported symbols. I don't know when that will be released though. |
|
Back to top |
|
|
zoltak n00b
Joined: 01 Mar 2005 Posts: 40
|
Posted: Wed Feb 13, 2008 8:41 pm Post subject: |
|
|
XioXouS wrote: | https://mywebspace.wisc.edu/bpkroth/web/gentoo/fs-cluster-ebuilds/fs-cluster_ebuilds.tar.bz2 |
So I should use the link above?
I had a look inside the archive and couldn't find the usage text.
Could you point me in the right direction.
Thanks |
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
|
Back to top |
|
|
zoltak n00b
Joined: 01 Mar 2005 Posts: 40
|
|
Back to top |
|
|
XioXouS n00b
Joined: 01 Apr 2005 Posts: 59
|
Posted: Wed Feb 13, 2008 9:05 pm Post subject: |
|
|
cman depends on openais now, so yes.
gnbd* and rgmanager are optional depending upon your setup.
You should really only need to do the following:
Code: | emerge -a gfs gfs-kernel |
That should pull in all the necessary deps like openais, cman-lib, ccs, cman, dlm, and fence. |
|
Back to top |
|
|
|