<br><br><div class="gmail_quote">On Sun, May 25, 2008 at 7:40 PM, Mikko Partio <<a href="mailto:mpartio@gmail.com">mpartio@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The fixes are available in the recently released RHEL5.2, although<br>
I don't know when they'll hit Centos.  The fixes are also available<br>
in the latest cluster git tree if you want to compile/install them<br>
from source code yourself.  Documentation for doing this can<br>
be found at: <a href="http://sources.redhat.com/cluster/wiki/ClusterGit" target="_blank">http://sources.redhat.com/cluster/wiki/ClusterGit</a><br>
</blockquote></div></div><div><br>Hi Bob and thanks for you reply.<br><br>So, what I should do is to upgrade to 5.2 and then run gfs_fsck on the filesystem?</div></div><br>
</blockquote></div><br>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?<br>
<br>Regards<br><br>Mikko<br><br>sh-3.1$ ../git checkout my52<br>Already on "my52"<br>sh-3.1$ cd gfs<br>sh-3.1$ ./configure<br><br>Configuring Makefiles for your system...<br>Completed Makefile configuration<br>sh-3.1$ cd gfs_fsck<br>
sh-3.1$ make<br>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<br>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<br>
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<br>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<br>
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<br>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<br>
pass2.c: In function 'build_rooti':<br>pass2.c:533: warning: pointer targets in initialization differ in signedness<br>pass2.c:540: warning: pointer targets in initialization differ in signedness<br>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<br>
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<br>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<br>
pass5.c: In function 'check_block_status':<br>pass5.c:188: warning: pointer targets in assignment differ in signedness<br>pass5.c:190: warning: pointer targets in assignment differ in signedness<br>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<br>
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<br>super.c: In function 'gfs_rgindex_calculate':<br>super.c:1023: warning: pointer targets in passing argument 2 of 'hexdump' differ in signedness<br>
super.c: In function 'ri_update':<br>super.c:1098: warning: pointer targets in passing argument 3 of 'gfs_rgindex_calculate' differ in signedness<br>super.c:1107: warning: pointer targets in passing argument 3 of 'gfs_rgindex_rebuild' differ in signedness<br>
super.c: In function 'gfs_rgindex_calculate':<br>super.c:899: warning: 'length' may be used uninitialized in this function<br>super.c:899: warning: 'addr' may be used uninitialized in this function<br>super.c: In function 'gfs_rgindex_rebuild':<br>
super.c:683: warning: 'end_block' may be used uninitialized in this function<br>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<br>
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<br>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<br>
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<br>rgrp.c: In function 'fs_rgrp_recount':<br>rgrp.c:329: warning: pointer targets in passing argument 1 of 'fs_bitcount' differ in signedness<br>
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<br>fs_bits.c: In function 'fs_get_bitmap':<br>fs_bits.c:297: warning: pointer targets in assignment differ in signedness<br>
fs_bits.c: In function 'fs_set_bitmap':<br>fs_bits.c:354: warning: pointer targets in passing argument 1 of 'fs_setbit' differ in signedness<br>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<br>
util.c: In function 'next_rg_meta':<br>util.c:173: warning: pointer targets in passing argument 1 of 'fs_bitfit' differ in signedness<br>util.c: In function 'next_rg_meta_free':<br>util.c:226: warning: pointer targets in passing argument 1 of 'fs_bitfit' differ in signedness<br>
util.c:229: warning: pointer targets in passing argument 1 of 'fs_bitfit' differ in signedness<br>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<br>
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<br>fs_inode.c: In function 'fs_mkdir':<br>fs_inode.c:519: warning: pointer targets in assignment differ in signedness<br>
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<br>fs_dir.c: In function 'leaf_search':<br>fs_dir.c:298: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness<br>
fs_dir.c: In function 'linked_leaf_search':<br>fs_dir.c:385: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness<br>fs_dir.c: In function 'dir_e_add':<br>fs_dir.c:1259: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness<br>
fs_dir.c: In function 'dir_l_add':<br>fs_dir.c:1456: warning: pointer targets in passing argument 1 of 'gfs_dir_hash' differ in signedness<br>fs_dir.c: In function 'fs_dir_search':<br>fs_dir.c:467: warning: 'bh' may be used uninitialized in this function<br>
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<br>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<br>
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<br>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<br>
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<br>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<br>
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<br>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<br>
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<br>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<br>
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<br>
<br>sh-3.1$ ./gfs_fsck -V<br>GFS fsck DEVEL.1211779210 (built May 26 2008 08:20:46)<br>Copyright (C) Red Hat, Inc.  2004-2005  All rights reserved.<br><br>sh-3.1$ sudo ./gfs_fsck -v /dev/xxx-vg/xxx-lv<br>Password:<br>Initializing fsck<br>
Initializing lists...<br>Initializing special inodes...<br>Validating Resource Group index.<br>Level 1 check.<br>5167 resource groups found.<br>(passed)<br>Setting block ranges...<br>Can't seek to last block in file system: 4738147774<br>
Unable to determine the boundaries of the file system.<br>Freeing buffers.<br><br>