On Sun, May 25, 2008 at 7:40 PM, Mikko Partio <mpartio@xxxxxxxxx> wrote:
The fixes are available in the recently released RHEL5.2, although
I don't know when they'll hit Centos. The fixes are also available
in the latest cluster git tree if you want to compile/install them
from source code yourself. Documentation for doing this can
be found at: http://sources.redhat.com/cluster/wiki/ClusterGit
Hi Bob and thanks for you reply.
So, what I should do is to upgrade to 5.2 and then run gfs_fsck on the filesystem?
Seeing that CentOS 5.2 is not released yet, I decided to take the git way. I have never used it before so I'm not sure if I'm doing everything correctly, but it seems that a compiled version from RHEL52 branch does not fix the issue (details below). Would the HEAD version of gfs_fsck do any better?
Regards
Mikko
sh-3.1$ ../git checkout my52
Already on "my52"
sh-3.1$ cd gfs
sh-3.1$ ./configure
Configuring Makefiles for your system...
Completed Makefile configuration
sh-3.1$ cd gfs_fsck
sh-3.1$ make
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 main.c -o main.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 initialize.c -o initialize.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 pass1.c -o pass1.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 pass1b.c -o pass1b.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 pass1c.c -o pass1c.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 pass2.c -o pass2.o
pass2.c: In function 'build_rooti':
pass2.c:533: warning: pointer targets in initialization differ in signedness
pass2.c:540: warning: pointer targets in initialization differ in signedness
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 pass3.c -o pass3.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 pass4.c -o pass4.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 pass5.c -o pass5.o
pass5.c: In function 'check_block_status':
pass5.c:188: warning: pointer targets in assignment differ in signedness
pass5.c:190: warning: pointer targets in assignment differ in signedness
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 block_list.c -o block_list.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 super.c -o super.o
super.c: In function 'gfs_rgindex_calculate':
super.c:1023: warning: pointer targets in passing argument 2 of 'hexdump' differ in signedness
super.c: In function 'ri_update':
super.c:1098: warning: pointer targets in passing argument 3 of 'gfs_rgindex_calculate' differ in signedness
super.c:1107: warning: pointer targets in passing argument 3 of 'gfs_rgindex_rebuild' differ in signedness
super.c: In function 'gfs_rgindex_calculate':
super.c:899: warning: 'length' may be used uninitialized in this function
super.c:899: warning: 'addr' may be used uninitialized in this function
super.c: In function 'gfs_rgindex_rebuild':
super.c:683: warning: 'end_block' may be used uninitialized in this function
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 bio.c -o bio.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 ondisk.c -o ondisk.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 file.c -o file.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 rgrp.c -o rgrp.o
rgrp.c: In function 'fs_rgrp_recount':
rgrp.c:329: warning: pointer targets in passing argument 1 of 'fs_bitcount' differ in signedness
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 fs_bits.c -o fs_bits.o
fs_bits.c: In function 'fs_get_bitmap':
fs_bits.c:297: warning: pointer targets in assignment differ in signedness
fs_bits.c: In function 'fs_set_bitmap':
fs_bits.c:354: warning: pointer targets in passing argument 1 of 'fs_setbit' differ in signedness
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 util.c -o util.o
util.c: In function 'next_rg_meta':
util.c:173: warning: pointer targets in passing argument 1 of 'fs_bitfit' differ in signedness
util.c: In function 'next_rg_meta_free':
util.c:226: warning: pointer targets in passing argument 1 of 'fs_bitfit' differ in signedness
util.c:229: warning: pointer targets in passing argument 1 of 'fs_bitfit' differ in signedness
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 fs_bmap.c -o fs_bmap.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 fs_inode.c -o fs_inode.o
fs_inode.c: In function 'fs_mkdir':
fs_inode.c:519: warning: pointer targets in assignment differ in signedness
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 fs_dir.c -o fs_dir.o
fs_dir.c: In function 'leaf_search':
fs_dir.c:298: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness
fs_dir.c: In function 'linked_leaf_search':
fs_dir.c:385: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness
fs_dir.c: In function 'dir_e_add':
fs_dir.c:1259: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness
fs_dir.c: In function 'dir_l_add':
fs_dir.c:1456: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness
fs_dir.c: In function 'fs_dir_search':
fs_dir.c:467: warning: 'bh' may be used uninitialized in this function
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 fs_recovery.c -o fs_recovery.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 log.c -o log.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 hash.c -o hash.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 inode_hash.c -o inode_hash.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 bitmap.c -o bitmap.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 lost_n_found.c -o lost_n_found.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 inode.c -o inode.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 link.c -o link.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 metawalk.c -o metawalk.o
gcc -MMD -c -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 eattr.c -o eattr.o
gcc -Wall -I../include -I../config -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"DEVEL.1211779210\" -Wall -O2 main.o initialize.o pass1.o pass1b.o pass1c.o pass2.o pass3.o pass4.o pass5.o block_list.o super.o bio.o ondisk.o file.o rgrp.o fs_bits.o util.o fs_bmap.o fs_inode.o fs_dir.o fs_recovery.o log.o hash.o inode_hash.o bitmap.o lost_n_found.o inode.o link.o metawalk.o eattr.o -o gfs_fsck
sh-3.1$ ./gfs_fsck -V
GFS fsck DEVEL.1211779210 (built May 26 2008 08:20:46)
Copyright (C) Red Hat, Inc. 2004-2005 All rights reserved.
sh-3.1$ sudo ./gfs_fsck -v /dev/xxx-vg/xxx-lv
Password:
Initializing fsck
Initializing lists...
Initializing special inodes...
Validating Resource Group index.
Level 1 check.
5167 resource groups found.
(passed)
Setting block ranges...
Can't seek to last block in file system: 4738147774
Unable to determine the boundaries of the file system.
Freeing buffers.
-- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster