[WBEL-users] Red Hat GFS

Johnny Hughes mailing-lists@hughesjr.com
Wed, 07 Jul 2004 06:21:03 -0500


--=-IVx8pi5ZvsaR+Ihg1Quv
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

In order to compile the SRPM as written by RedHat, you have to install
all the kernels.  Specifically for for --target athlon you need to have:

kernel, kernel-source, kernel-unsupported, kernel-smp installed ...

There is also a problem inside the SOURCES/gfs-build.tar.gz file  with a
hard coded directory named 2.4.21-15.EL inside the directories:

GFS/kernel_patches
gnbd/kernel_patches

So, it would only build (as written) on the 2.4.21-15.EL kernel (with
that exact name), and it would only build for --target athlon if all the
athlon kernels are installed on the machine (kernel, kernel-source,
kernel-smp).

----------------
What I did to get this to build is:

1.  Create a build environment like the one outlined on my WEBSITE (with
a user named buildsys).

2.  As buildsys, install the SRPM via the command:

rpm -Uvh GFS-6.0.0-1.2.src.rpm

3.  Goto /usr/src/buildsys/SPECS and edit the gfs-build.spec file to
change %define KERNEL_EXTRAVERSION 15.0.3.EL

4.  Goto /usr/src/buildsys/SOURCES and copy the file gfs-build.tar.gz to
/tmp

5.  Goto /tmp ... create a directory called test, extract
gfs-build.tar.gz into /tmp/test.

6. Go into /tmp/test/GFS/kernel_patches and create the following links:

ln -s 2.4.21-15.EL/ 2.4.21-15.0.2.EL
ln -s 2.4.21-15.EL/ 2.4.21-15.0.3.EL

goto /tmp/test/gnbd/kernel_patches and create the same links

7.  tar the source file back up with the links in it:

cd /tmp/test
tar -cvzf ../gfs-build.tar.gz *

8. Copy the new source (/tmp/gfs-build.tar.gz) file back up to
/usr/src/buildsys/SOURCES.

9. Goto /usr/src/buildsys/SPECS and create a new SRPM file with the
changes:

cd /usr/src/buildsys/SPECS
rpmbuild -bs gfs-build.spec

10.  I always change the permissions on my kernel source
(/usr/src/linux-2.4.21-15.0.3.EL) so it is owned by my build user ...
like this:

chown -R buildsys:buildsys /usr/src/linux-2.4.21-15.0.3.EL

Then I do this to make sure the kernel is read to build:

cd /usr/src/linux-2.4.21-15.0.3.EL
make mrproper
cp /boot/config-2.4.21-15.0.3.EL .config
make oldconfig
make dep

11.  Goto /usr/src/buildsys/SRPMS and build the SRPM:

rpmbuild --rebuild --target athlon GFS-6.0.0-1.2.src.rpm

12.  In step 3, while editing the spec file, you can define the %define
KERNEL_EXTRAVERSION as either 15.EL, 15.0.2.EL, or 15.0.3.EL (if you
added the ln -s above and re-tarred the source file)... also, you can
set the parameters like:

%define buildup 1
%define buildsmp 1
%define buildhugemem 1

(if you don't want an smp kernel or a hugemem kernel built, set those to
0) ... the buildup parameter actually builds the kernel and installs the
kernel patches for GFS, then builds the GFS files ... most of the time
you will leave this as 1 .. unless to patch the kernel yourself.

Hope this helps...

Johnny Hughes
HughesJR.com

On Wed, 2004-07-07 at 00:06, Hansjoerg Maurer wrote:

> Hi
>=20
> I have tried to compile gfs some days ago for my athlon up.
> Plaese can you provide your command, how you build the architecture=20
> dependend gfs-module
> rpms.
> rpm -ba --target athlon ... GFS...spec
>=20
> leads to compile errors in my case.
>=20
> Thank you very much
>=20
> greatings
>=20
> Hansj=F6rg
>=20
>=20
>=20
> Johnny Hughes schrieb:
>=20
> >I have completed building this for WBEL.  You can download files here:
> >
> >GFS Downloads <http://www.hughesjr.com/component/option,com_docman/task,=
view_category/Itemid,34/subcat,1/catid,15/limitstart,0/limit,50/>=20
> >
> >See the RedHat Documentation <http://www.redhat.com/docs/manuals/csgfs/a=
dmin-guide/>  on GFS for how to install.
> >
> >The RPM files I have provided will only install on the 2.4.21-15.0.3.EL =
kernel.
> >
> >The src.rpm file will build on either the WBEL (or RHEL) 2.4.21-15.EL, 2=
.4.21-15.0.2.EL, or 2.4.21-15.0.3.EL (or any other clone where the kernel n=
ame is exactly the same).  It will _not_ build on TaoLinux or CentOS becaus=
e the Kernel names have been modified.  I will make TaoLinux and CentOS sou=
rce RPMs later today.
> >
> >If you are downloading rpms for install ... you need a GFS and GFS-modul=
es for your kernel type (normal, smp, hugemem) and your arch (i386, i686, a=
thlon).
> >
> >
> >Johnny Hughes
> > <http://www.hughesjr.com> HughesJR.com =09
> >
> >
> >On Mon, 2004-07-05 at 19:10, Johnny Hughes wrote:=20
> >
> >On Mon, 2004-07-05 at 17:51, Raimo Koski wrote:=20
> >
> >Ed wrote:
> >
> > =20
> >
> >>Erik Williamson wrote:
> >>   =20
> >>
> >
> > =20
> >
> >
> > =20
> >
> >>>Hi,
> >>>     =20
> >>>
> >
> > =20
> >
> >
> > =20
> >
> >>>I saw in slashdot yesterday that Red Hat is releasing GFS=20
> >>>     =20
> >>>
> >
> > =20
> >
> >>>( <http://www.redhat.com/software/rha/gfs/> http://www.redhat.com/soft=
ware/rha/gfs/) to the masses.  I was about=20
> >>>     =20
> >>>
> >
> > =20
> >
> >>>to roll out 3 WBEL File servers here, but in light of this, I'm=20
> >>>     =20
> >>>
> >
> > =20
> >
> >>>wondering of the chances that this would work with Whitebox - has=20
> >>>     =20
> >>>
> >
> > =20
> >
> >>>anyone tried, or is anyone planning on trying?
> >>>     =20
> >>>
> >
> > =20
> >
> >
> > =20
> >
> >
> > =20
> >
> >>White box uses the RHEL kernel.  It is unlikely that RH will backport=20
> >>   =20
> >>
> >
> > =20
> >
> >>GFS to their stable 3.0.  If you want to compile your own kernel, it=20
> >>   =20
> >>
> >
> > =20
> >
> >>might work but the WBEL kernel is heavily patched and some of the=20
> >>   =20
> >>
> >
> > =20
> >
> >>patches are needed by userland (there would be more work involved than=20
> >>   =20
> >>
> >
> > =20
> >
> >>just patching a "vanilla" 2.4 or 2.6 kernel).  So maybe FC2 would be a=20
> >>   =20
> >>
> >
> > =20
> >
> >>better option if you want to play with GFS.
> >>   =20
> >>
> >
> >
> >
> >RHGFS binaries ($2200) require RHEL 3.0 and 2.4.21-15.EL kernel. Red Hat=
=20
> >
> >doesn't support GFS on Fedora. Lineox has built GFS binaries for=20
> >
> >2.4.21-15.0.2.EL and 2.4.21-15.0.3.EL kernels.
> >
> >
> >For anyone interested in building / trying GFS, you can get the SRPMS fr=
om here:
> >
> > <ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHGFS/i386/SRPMS=
/> ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHGFS/i386/SRPMS/
> >
> >I am looking at it right now, and trying to build the SRPMS ... I'll pos=
t how it goes later. (I'm sure it's also on the redhat mirrors)=20
> >
> > =20
> >



--=-IVx8pi5ZvsaR+Ihg1Quv
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
In order to compile the SRPM as written by RedHat, you have to install all the kernels.&nbsp; Specifically for for <B>--target athlon</B> you need to have:<BR>
<BR>
kernel, kernel-source, kernel-unsupported, kernel-smp installed ...<BR>
<BR>
There is also a problem inside the <B>SOURCES/gfs-build.tar.gz</B> file&nbsp; with a hard coded directory named <B>2.4.21-15.EL</B> inside the directories:<BR>
<BR>
GFS/kernel_patches<BR>
gnbd/kernel_patches<BR>
<BR>
So, it would only build (as written) on the 2.4.21-15.EL kernel (with that exact name), and it would only build for --target athlon if all the athlon kernels are installed on the machine (kernel, kernel-source, kernel-smp).<BR>
<BR>
----------------<BR>
What I did to get this to build is:<BR>
<BR>
1.&nbsp; Create a build environment like the one outlined on my <A HREF="http://www.hughesjr.com/content/view/16/30/Guides">WEBSITE</A> (with a user named buildsys).<BR>
<BR>
2.&nbsp; As <B>buildsys</B>, install the SRPM via the command:<BR>
<BR>
rpm -Uvh GFS-6.0.0-1.2.src.rpm<BR>
<BR>
3.&nbsp; Goto <B>/usr/src/buildsys/SPECS</B> and edit the <B>gfs-build.spec</B> file to change <B>%define KERNEL_EXTRAVERSION 15.0.3.EL</B><BR>
<BR>
4.&nbsp; Goto <B>/usr/src/buildsys/SOURCES</B> and copy the file <B>gfs-build.tar.gz</B> to <B>/tmp</B><BR>
<BR>
5.&nbsp; Goto /tmp ... create a directory called test, extract <B>gfs-build.tar.gz</B> into <B>/tmp/test</B>.<BR>
<BR>
6. Go into <B>/tmp/test/GFS/kernel_patches</B> and create the following links:<BR>
<BR>
<B>ln -s 2.4.21-15.EL/ 2.4.21-15.0.2.EL<BR>
ln -s 2.4.21-15.EL/ 2.4.21-15.0.3.EL</B><BR>
<BR>
goto <B>/tmp/test/gnbd/kernel_patches</B> and create the same links<BR>
<BR>
7.&nbsp; tar the source file back up with the links in it:<BR>
<BR>
<B>cd /tmp/test<BR>
tar -cvzf ../gfs-build.tar.gz *</B><BR>
<BR>
8. Copy the new source (<B>/tmp/gfs-build.tar.gz</B>) file back up to <B>/usr/src/buildsys/SOURCES</B>.<BR>
<BR>
9. Goto <B>/usr/src/buildsys/SPECS </B>and create a new SRPM file with the changes:<BR>
<BR>
<B>cd /usr/src/buildsys/SPECS<BR>
rpmbuild -bs gfs-build.spec</B><BR>
<BR>
10.&nbsp; I always change the permissions on my kernel source (<B>/usr/src/linux-2.4.21-15.0.3.EL</B>) so it is owned by my build user ... like this:<BR>
<BR>
<B>chown -R buildsys:buildsys /usr/src/linux-2.4.21-15.0.3.EL</B><BR>
<BR>
Then I do this to make sure the kernel is read to build:<BR>
<BR>
<B>cd /usr/src/linux-2.4.21-15.0.3.EL<BR>
make mrproper<BR>
cp /boot/config-2.4.21-15.0.3.EL .config<BR>
make oldconfig<BR>
make dep</B><BR>
<BR>
11.&nbsp; Goto <B>/usr/src/buildsys/SRPMS</B> and build the SRPM:<BR>
<BR>
<B>rpmbuild --rebuild --target athlon GFS-6.0.0-1.2.src.rpm</B><BR>
<BR>
12.&nbsp; In step 3, while editing the spec file, you can define the <B>%define KERNEL_EXTRAVERSION</B> as either <B>15.EL</B>, <B>15.0.2.EL</B>, or <B>15.0.3.EL</B> (if you added the ln -s above and re-tarred the source file)... also, you can set the parameters like:<BR>
<BR>
%define buildup 1<BR>
%define buildsmp 1<BR>
%define buildhugemem 1<BR>
<BR>
(if you don't want an smp kernel or a hugemem kernel built, set those to 0) ... the buildup parameter actually builds the kernel and installs the kernel patches for GFS, then builds the GFS files ... most of the time you will leave this as 1 .. unless to patch the kernel yourself.<BR>
<BR>
Hope this helps...<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Johnny Hughes<BR>
<A HREF="http://www.hughesjr.com"><U>HughesJR.com</U></A>
</TD>
</TR>
</TABLE>
<BR>
<BR>
On Wed, 2004-07-07 at 00:06, Hansjoerg Maurer wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Hi

I have tried to compile gfs some days ago for my athlon up.
Plaese can you provide your command, how you build the architecture 
dependend gfs-module
rpms.
rpm -ba --target athlon ... GFS...spec

leads to compile errors in my case.

Thank you very much

greatings

Hansj&#246;rg



Johnny Hughes schrieb:

&gt;I have completed building this for WBEL.  You can download files here:
&gt;
&gt;GFS Downloads &lt;</FONT><A HREF="http://www.hughesjr.com/component/option,com_docman/task,view_category/Itemid,34/subcat,1/catid,15/limitstart,0/limit,50/"><U>http://www.hughesjr.com/component/option,com_docman/task,view_category/Itemid,34/subcat,1/catid,15/limitstart,0/limit,50/</U></A><FONT COLOR="#737373">&gt; 
&gt;
&gt;See the RedHat Documentation &lt;</FONT><A HREF="http://www.redhat.com/docs/manuals/csgfs/admin-guide/"><U>http://www.redhat.com/docs/manuals/csgfs/admin-guide/</U></A><FONT COLOR="#737373">&gt;  on GFS for how to install.
&gt;
&gt;The RPM files I have provided will only install on the 2.4.21-15.0.3.EL kernel.
&gt;
&gt;The src.rpm file will build on either the WBEL (or RHEL) 2.4.21-15.EL, 2.4.21-15.0.2.EL, or 2.4.21-15.0.3.EL (or any other clone where the kernel name is exactly the same).  It will _not_ build on TaoLinux or CentOS because the Kernel names have been modified.  I will make TaoLinux and CentOS source RPMs later today.
&gt;
&gt;If you are downloading rpms for install ... you need a GFS and GFS-modules for your kernel type (normal, smp, hugemem) and your arch (i386, i686, athlon).
&gt;
&gt;
&gt;Johnny Hughes
&gt; &lt;</FONT><A HREF="http://www.hughesjr.com"><U>http://www.hughesjr.com</U></A><FONT COLOR="#737373">&gt; HughesJR.com 	
&gt;
&gt;
&gt;On Mon, 2004-07-05 at 19:10, Johnny Hughes wrote: 
&gt;
&gt;On Mon, 2004-07-05 at 17:51, Raimo Koski wrote: 
&gt;
&gt;Ed wrote:
&gt;
&gt;  
&gt;
&gt;&gt;Erik Williamson wrote:
&gt;&gt;    
&gt;&gt;
&gt;
&gt;  
&gt;
&gt;
&gt;  
&gt;
&gt;&gt;&gt;Hi,
&gt;&gt;&gt;      
&gt;&gt;&gt;
&gt;
&gt;  
&gt;
&gt;
&gt;  
&gt;
&gt;&gt;&gt;I saw in slashdot yesterday that Red Hat is releasing GFS 
&gt;&gt;&gt;      
&gt;&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;&gt;( &lt;</FONT><A HREF="http://www.redhat.com/software/rha/gfs/"><U>http://www.redhat.com/software/rha/gfs/</U></A><FONT COLOR="#737373">&gt; </FONT><A HREF="http://www.redhat.com/software/rha/gfs/"><U>http://www.redhat.com/software/rha/gfs/</U></A><FONT COLOR="#737373">) to the masses.  I was about 
&gt;&gt;&gt;      
&gt;&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;&gt;to roll out 3 WBEL File servers here, but in light of this, I'm 
&gt;&gt;&gt;      
&gt;&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;&gt;wondering of the chances that this would work with Whitebox - has 
&gt;&gt;&gt;      
&gt;&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;&gt;anyone tried, or is anyone planning on trying?
&gt;&gt;&gt;      
&gt;&gt;&gt;
&gt;
&gt;  
&gt;
&gt;
&gt;  
&gt;
&gt;
&gt;  
&gt;
&gt;&gt;White box uses the RHEL kernel.  It is unlikely that RH will backport 
&gt;&gt;    
&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;GFS to their stable 3.0.  If you want to compile your own kernel, it 
&gt;&gt;    
&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;might work but the WBEL kernel is heavily patched and some of the 
&gt;&gt;    
&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;patches are needed by userland (there would be more work involved than 
&gt;&gt;    
&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;just patching a &quot;vanilla&quot; 2.4 or 2.6 kernel).  So maybe FC2 would be a 
&gt;&gt;    
&gt;&gt;
&gt;
&gt;  
&gt;
&gt;&gt;better option if you want to play with GFS.
&gt;&gt;    
&gt;&gt;
&gt;
&gt;
&gt;
&gt;RHGFS binaries ($2200) require RHEL 3.0 and 2.4.21-15.EL kernel. Red Hat 
&gt;
&gt;doesn't support GFS on Fedora. Lineox has built GFS binaries for 
&gt;
&gt;2.4.21-15.0.2.EL and 2.4.21-15.0.3.EL kernels.
&gt;
&gt;
&gt;For anyone interested in building / trying GFS, you can get the SRPMS from here:
&gt;
&gt; &lt;</FONT><A HREF="ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHGFS/i386/SRPMS/"><U>ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHGFS/i386/SRPMS/</U></A><FONT COLOR="#737373">&gt; </FONT><A HREF="ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHGFS/i386/SRPMS/"><U>ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHGFS/i386/SRPMS/</U></A>
<FONT COLOR="#737373">&gt;
&gt;I am looking at it right now, and trying to build the SRPMS ... I'll post how it goes later. (I'm sure it's also on the redhat mirrors) 
&gt;
&gt;  
&gt;</I></FONT></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<A HREF="http://www.hughesjr.com"><U></U></A><BR>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>

--=-IVx8pi5ZvsaR+Ihg1Quv--