OpenVZ Forum


Home » General » Support » *SOLVED* GFS support in OpenVZ VPS
*SOLVED* GFS support in OpenVZ VPS [message #11004] Sun, 11 March 2007 14:05 Go to next message
mallah_rajesh is currently offline  mallah_rajesh
Messages: 8
Registered: March 2007
Junior Member
Hi ,

Is there *any* way to get GFS working with OpenVZ kernel.

the stable 2.6.9 kernel seems to have clustering support
and support for GFS filesystem and some locking facilities.

But when we attempt to compile Redhat Cluster Suite CVS
version for RHEL4 kernel it does not compile.

There is already a thread about it.

But is there any solution to share a filesystem
across multiple VPS.

what is the scope of the GFS support in the stable openvz
2.6.9 kernel , what use is it of ?

Regds
mallah.

[Updated on: Tue, 20 March 2007 06:50] by Moderator

Report message to a moderator

Re: GFS support in OpenVZ VPS [message #11071 is a reply to message #11004] Tue, 13 March 2007 08:11 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Quote:

But is there any solution to share a filesystem
across multiple VPS.


If you want to have a common directory for VEs, you can use bind mounts after VEs start:
mount --bind /mnt /vz/root/<veid>/mnt
/mnt directory on HN can be any available filesystem, for example, it can be NFS, mounted from external server.

As concerns GFS. In 2.6.9 OpenVZ kernels series GFS is available as a module. You can create a VE on GFS, but you can't use vzquota for such VEs. In 2.6.18-test kernels GFS support is not available. In new stable 2.6.18-rhel5 OpenVZ kernels (it will be available soon after RHEL5 release) GFS will be also supported.

Vasily.

[Updated on: Tue, 13 March 2007 08:19]

Report message to a moderator

Re: GFS support in OpenVZ VPS [message #11294 is a reply to message #11071] Fri, 16 March 2007 23:17 Go to previous messageGo to next message
mallah_rajesh is currently offline  mallah_rajesh
Messages: 8
Registered: March 2007
Junior Member

mount --bind

does not work. i have done exactly as you
say. where do you think is the problem ?




[root@IPDDFG0595ATL2 root]# mount --bind /opt/website_data /mnt/disk2/private/1002/opt/x
[root@IPDDFG0595ATL2 root]# ls  /mnt/disk2/private/1002/opt/x

catalog_data     catalog_xsl.tar     datafiles  images  tlrating   webmail_data
catalog_xsl      catalog_xsl.tar.gz  fm         logos   tlrfidata  websites
catalog_xsl.bak  credit_reports      fonts      out     vmonitor

[root@IPDDFG0595ATL2 root]# vzctl exec 1002 ls /opt/x

[root@IPDDFG0595ATL2 root]# mount
/dev/sda2 on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sdb1 on /mnt/disk2 type xfs (rw)
/opt/website_data on /mnt/disk2/private/1002/opt/x type none (rw,bind)

Re: GFS support in OpenVZ VPS [message #11295 is a reply to message #11294] Sat, 17 March 2007 08:33 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member


use "root" directory not "private" :

[root@IPDDFG0595ATL2 root]# mount --bind /opt/website_data /mnt/disk2/private/1002/opt/x

to

[root@IPDDFG0595ATL2 root]# mount --bind /opt/website_data /mnt/disk2/root/1002/opt/x

Note: VE minimal state must be mount.
Re: GFS support in OpenVZ VPS [message #11296 is a reply to message #11295] Sat, 17 March 2007 09:40 Go to previous messageGo to next message
mallah_rajesh is currently offline  mallah_rajesh
Messages: 8
Registered: March 2007
Junior Member
Thats wondeful, thanks a ton. It worked and part of my
problem is solved.

The main problem is however to get GFS/GFS2 working either on
the HN or in VE.

I have installed the recently released OpenVZ kernel
based on RHEL5 kernel.
http://openvz.org/download/kernel/rhel5/
the install was successful and there is GFS
support in the OpenVZ kernel.

I am however facing problem in getting the Redhat cluster
suite compiled . note that cluster source below is from
CVS. from URL
http://sources.redhat.com/cluster/

# cvs -d :pserver:cvs@sources.redhat.com:/cvs/cluster checkout cluster

the problem below is encountered.

Can anyone please tell which cluster source can get compiled
with the recently released rhel5 based kernel with gfs
support ?

regds
mallah.

[root@IPDDFG0595ATL2 cluster]# ./configure  --kernel_src=/usr/src/linux-2.6.18
configure gnbd-kernel

Configuring Makefiles for your system...
Completed Makefile configuration

configure ccs

Configuring Makefiles for your system...
Completed Makefile configuration

configure cman

Configuring Makefiles for your system...
Completed Makefile configuration

configure group

Configuring Makefiles for your system...
Completed Makefile configuration

configure dlm

Configuring Makefiles for your system...
Completed Makefile configuration

configure fence

Configuring Makefiles for your system...
Completed Makefile configuration

configure gfs-kernel

Configuring Makefiles for your system...
Completed Makefile configuration

configure gfs

Configuring Makefiles for your system...
Completed Makefile configuration

configure gfs2

Configuring Makefiles for your system...
Completed Makefile configuration

configure gnbd

Configuring Makefiles for your system...
Completed Makefile configuration

configure rgmanager

Configuring Makefiles for your system...
Completed Makefile configuration

[root@IPDDFG0595ATL2 cluster]# make
make -C gnbd-kernel all
make[1]: Entering directory `/opt/sources/gfs/cluster/gnbd-kernel'
make -C src all
make[2]: Entering directory `/opt/sources/gfs/cluster/gnbd-kernel/src'
make -C /usr/src/linux-2.6.18 M=/opt/sources/gfs/cluster/gnbd-kernel/src modules USING_KBUILD=yes
make[3]: Entering directory `/usr/src/linux-2.6.18'
  CC [M]  /opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.o
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c: In function `do_gnbd_request':
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c:578: structure has no member named `cmd_type'
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c: In function `gnbd_init':
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c:888: structure has no member named `cmd_type'
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c:888: `REQ_TYPE_SPECIAL' undeclared (first use in this function)
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c:888: (Each undeclared identifier is reported only once
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c:888: for each function it appears in.)
/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.c:893: structure has no member named `cmd_type'
make[4]: *** [/opt/sources/gfs/cluster/gnbd-kernel/src/gnbd.o] Error 1
make[3]: *** [_module_/opt/sources/gfs/cluster/gnbd-kernel/src] Error 2
make[3]: Leaving directory `/usr/src/linux-2.6.18'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/sources/gfs/cluster/gnbd-kernel/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/sources/gfs/cluster/gnbd-kernel'
make: *** [all] Error 2
[root@IPDDFG0595ATL2 cluster]#
Re: GFS support in OpenVZ VPS [message #11298 is a reply to message #11296] Sat, 17 March 2007 14:12 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
Why do you need to compile Redhat cluster suite from sources?
Isn't it would be easier to install rpm packages from RHEL5 distribution?
BTW, can you compile cluster suite with RHEL5 (non-ovz) kernel?
If not, then I thisnk it would be better to ask Redhat about broken compilation Smile


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: GFS support in OpenVZ VPS [message #11299 is a reply to message #11298] Sat, 17 March 2007 17:57 Go to previous messageGo to next message
mallah_rajesh is currently offline  mallah_rajesh
Messages: 8
Registered: March 2007
Junior Member
Quote:


Why do you need to compile Redhat cluster suite from sources?
Isn't it would be easier to install rpm packages from RHEL5 distribution?
BTW, can you compile cluster suite with RHEL5 (non-ovz) kernel?
If not, then I thisnk it would be better to ask Redhat about broken compilation



I am running RHEL3 on HN , i am apprehensive about the
dependencies of RH cluster suite.

Lemme try to see if the culster sources compile with RHEL5
(non ovz) kernel.

BTW how is the GFS support in RHEL5 based ovz kernel
intended to be used if userland tools do not compile?

regds
mallah.


Re: GFS support in OpenVZ VPS [message #11321 is a reply to message #11299] Mon, 19 March 2007 11:05 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
Quote:

I am running RHEL3 on HN , i am apprehensive about the
dependencies of RH cluster suite.

Try to install src rpms and build suite using rpmbuild utility. I think it is easiest way to resolve dependencies.

Quote:

BTW how is the GFS support in RHEL5 based ovz kernel
intended to be used if userland tools do not compile?

Well, I don't see any difficulties. All gfs2 and dlm kernel modules are present in RHEL5 based ovz kernel. So, you just need to install userspace tools to use GFSv2.
I didn't try to build cluster userspace utilities from sources. I just installed cluster packages from RHEL5 distro and it works.


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
*SOLVED* Re: GFS support in OpenVZ VPS [message #11337 is a reply to message #11321] Tue, 20 March 2007 00:49 Go to previous message
mallah_rajesh is currently offline  mallah_rajesh
Messages: 8
Registered: March 2007
Junior Member
Quote:


I just installed cluster packages from RHEL5 distro and it works.



thanks for the confirmation , i shall check that.
Previous Topic: *SOLVED* Need kernel 2.6.9-023stab039.1-smp
Next Topic: *SOLVED* OpenVZ kernel showing less memory than is installed
Goto Forum:
  


Current Time: Mon Sep 09 22:19:36 GMT 2024

Total time taken to generate the page: 0.04620 seconds