[PVFS2-users] how to debug pvsf2

Charles Shen cshen at cisco.com
Wed Jun 16 10:07:20 EDT 2004


After switching from 0.0.5 to 0.5.1, the single host configuration is happy
and pvfs2-ping works fine.

Now during the cluster installation, when loading pvfs2.ko, I got "Invalid 
module format"
error. Prior to loading this kernel module, what did is:

For FC2:
- copy .config to FC2 source top directory and make bzImage.

For PVFS2:
- run configure with "--with-kernel=<my FC2 source>".
- run make in pvfs2/src/kernel/linux2.6 direcotry.

When compiling pvfs2.ko, there were lots warnings but no errors. Since I'm 
running
FC2, the module-init-util should be up to date. After searching google for
"Invalid module format", I'm still not able to nail down the root cause.

Can anyone comment on it?

Thanks,

Charles Shen
Cisco System, Inc.

=========================================================
[root at server-2 linux-2.6]# make
make[1]: Entering directory `/usr/src/linux-2.6.5-1.358'
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.o
include/asm/semaphore.h: In function `pvfs2_inode_getattr':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:379: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_inode_setattr':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:444: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_create_entry':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:498: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:588: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:680: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_remove_entry':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:809: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_truncate_inode':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:859: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_flush_mmap_racache':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:896: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_unmount_sb':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:932: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_create_file':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:498: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_create_dir':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:588: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_create_symlink':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-utils.c:680: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/devpvfs2-req.o
include/asm/semaphore.h: In function `pvfs2_devreq_release':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/devpvfs2-req.c:360: warning:
ignoring return value of `down_interruptible', declared with attribute
warn_unused_result
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-cache.o
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/dcache.o
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/file.o
include/asm/semaphore.h: In function `pvfs2_inode_read':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/file.c:126: warning: ignoring return
value of `down_interruptible', declared with attribute warn_unused_result
include/asm/semaphore.h: In function `pvfs2_file_write':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/file.c:289: warning: ignoring return
value of `down_interruptible', declared with attribute warn_unused_result
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/inode.o
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/dir.o
include/asm/semaphore.h: In function `pvfs2_readdir':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/dir.c:135: warning: ignoring return
value of `down_interruptible', declared with attribute warn_unused_result
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/namei.o
include/asm/semaphore.h: In function `pvfs2_lookup':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/namei.c:153: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_rename':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/namei.c:399: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/super.o
include/asm/semaphore.h: In function `pvfs2_statfs':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/super.c:333: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
include/asm/semaphore.h: In function `pvfs2_get_sb':
/usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/super.c:734: warning: ignoring
return value of `down_interruptible', declared with attribute
warn_unused_result
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-mod.o
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2-bufmap.o
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/symlink.o
   CC [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/waitqueue.o
   LD [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2.o
   Building modules, stage 2.
   MODPOST
   CC      /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2.mod.o
   LD [M]  /usr/src/pvfs2-0.5.1/src/kernel/linux-2.6/pvfs2.ko
make[1]: Leaving directory `/usr/src/linux-2.6.5-1.358'

============================================================
[root at server-2 linux-2.6]# modinfo pvfs2.ko
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
license:        GPL
author:         PVFS2 Development Team
description:    The Linux Kernel VFS interface to PVFS2
vermagic:       2.6.5-1.358custom 686 REGPARM 4KSTACKS gcc-3.3
depends:

=========================================================
[root at server-2 linux-2.6]# uname -a
Linux server-2.cisco.com 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 i686
i386 GNU/Linux



=========================================================
[root at server-2 linux-2.6]# insmod pvfs2.ko
insmod: error inserting 'pvfs2.ko': -1 Invalid module format
[root at server-2 linux-2.6]#




At 02:11 PM 6/15/2004 -0500, Nathan Poznick wrote:
>Thus spake Charles Shen:
> > Hi,
> >
> > By following the QuickStart guide for single host, I installed
> > ipvfs2-0.0.5pre1
>
>Eep... did you actually grab
>ftp.parl.clemson.edu/pub/pvfs2/alpha/pvfs2-0.0.5pre1.tar.gz ?
>
>If so, you should really get the latest release,
>ftp://ftp.parl.clemson.edu/pub/pvfs2/pvfs2-0.5.1.tar.gz
>as 0.0.5pre1 is from back in November of 2003.
>
>There's been a lot of water under the bridge since 0.0.5pre1 :)
>
>
>--
>Nathan Poznick <poznick at conwaycorp.net>
>
>Once upon a time there was a Martian named Valentine Michael Smith. --
>Robert A. Heinlein, Stranger in a Strange Land
>
>
>_______________________________________________
>PVFS2-users mailing list
>PVFS2-users at beowulf-underground.org
>http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users



More information about the PVFS2-users mailing list