Global File System GFS on Debian

September 2nd, 2007

[ UPDATE: In the future, I will instead go with OCFS2, it worked well and was much easier to setup and get operational. ]

Build drbd module one two machines, setup storage on each machine... setup drbd.conf (in my process, I had already formatted as ext3, but I'm planning to switch to gfs somehow).


drbdadm -- --overwrite-data-of-peer primary all


# ccs_tool lsnode
Cluster name: alpha, config_version: 1
Nodename                        Votes Nodeid Iface Fencetype
Segmentation fault

need kernel modules? Nope, gfs2 there.

gfs_mkfs -p lock_dlm -t alpha:blah -j 2 /dev/drbd0
This will destroy any data on /dev/drbd0.  It appears to contain a EXT2/3 filesystem.
Are you sure you want to proceed? [y/n] y
Device:                    /dev/drbd0
Blocksize:                 4096
Filesystem Size:           151288
Journals:                  2
Resource Groups:           8
Locking Protocol:          lock_dlm
Lock Table:                alpha:blah
All Done# mount /dev/drbd0 /mnt/
mount: unknown filesystem type 'gfs'


make -C /lib/modules/`uname -r`/build
M=/usr/src/cluster-2.01.00/gfs-kernel/src/gfs symverfile=/lib/modules/`uname -r`/build/Module.symvers modules USING_KBUILD=yes
make[2]: Entering directory `/usr/src/linux-headers-2.6.22-1-686'  CC [M]  /usr/src/cluster-2.01.00/gfs-kernel/src/gfs/main.o/usr/src/cluster-2.01.00/gfs-kernel/src/gfs/main.c: In function 'init_gfs_fs':/usr/src/cluster-2.01.00/gfs-kernel/src/gfs/main.c:53: error: too few arguments to function 'kmem_cache_create'

Not too promising:

This page suggests that libxml2-dev is required: I'm still getting an error, which I believe is due to my kernel version:

Can't open /usr/src/linux-2.6/include/linux/utsrelease.h,-gfs-,-drbd-8.0.3-t3954180.html


Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022