[PVFS-developers] Re: pvfs 1.6.2 on old 2.4 kernel?
Jörg Meltzer
meltzer at zib.de
Wed Feb 4 18:59:42 EST 2004
Robert Latham wrote:
> On Wed, Feb 04, 2004 at 12:38:09PM +0100, Jörg Meltzer wrote:
>
>>First of all deamons are running fine, pvfs-ping reports an
>>operational filesystem, but when I mount a filesystem it crashes the
>>pvfsd and causes the mount command to hang. I guess it tries to
>>read some info we filtered out in pvfs_show_options.
>
>
>>cat pvfslog shows up
>>(pvfsd.c, 433): $Header: /projects/cvsroot/pvfs-kernel/pvfsd.c,v 1.41
>>2003/10/22 15:46:20 rbross Exp $(pvfsd.c, 434):
>>(pvfsd.c, 599): fatal error occurred reading from device, errno = 22
>>(pvfsd.c, 470): pvfsd: read failed
>
>
> I don't know what's going on here, and i don't have ready access to a
> 2.4.9 kernel... just to be sure, did you restart pvfsd and reload the
> kernel module after patching and rebuilding pvfs-kernel?
>
> I'm attaching the patch to pvfs-kernel which introduced these changes:
> it's designed to let pvfsd better handle SIGINT, but it's entirely
> possible the signal handling has changed from your version of 2.4.9 to
> what we use now.
>
> Maybe if you reverse-apply the attached patch (patch -R), it will
> make pvfs-kernel work with 2.4.9 . Start from a plain 1.6.2 tree:
> this patch supercedes my earlier patch.
>
> Good luck
> ==rob
>
It still is not working, this is what I did
killall iod pvfsd mgr
rmmod pvfs
tar xvfz ~bzcmeltz/pvfs1.6.2/pvfs-kernel-1.6.2-linux-2.4.tgz
patch -R <~bzcmeltz/pvfs1.6.2/intr_patch.diff
patching file inode.c
patching file kpvfsd.c
patching file kpvfsd.h
patching file kpvfsdev.c
patching file ll_pvfs.c
patching file ll_pvfs.h
patching file mount.pvfs.c
patching file pvfs_mount.h
patching file pvfsdev.c
Hunk #3 succeeded at 976 (offset 3 lines).
Hunk #5 succeeded at 1001 (offset 3 lines).
Hunk #7 succeeded at 1071 (offset 3 lines).
Hunk #9 succeeded at 1116 (offset 3 lines).
Hunk #11 succeeded at 1174 (offset 3 lines).
Hunk #13 succeeded at 1274 (offset 3 lines).
Hunk #15 succeeded at 1322 (offset 3 lines).
Hunk #17 succeeded at 1368 (offset 3 lines).
patch unexpectedly ends in middle of line
Hunk #18 succeeded at 1465 with fuzz 1.
... # configure & make succeed
# copy pvfs.o & mkmgrconf & iod stuff
ps -ef | egrep "iod|mgr|pvfsd"
root 6457 1 0 2003 ? 00:00:29 [rpciod]
root 6462 1 0 18:42 ? 00:00:00 /usr/local/sbin/mgr
nobody 6464 1 0 18:42 ? 00:00:00 /usr/local/sbin/iod
root 6466 1 0 18:42 ? 00:00:00 /usr/local/sbin/pvfsd
pvfs-ping -h 10.10.255.239 -f /pvfs-meta
mgr (10.10.255.239:3000) is responding.
iod 0 (10.10.255.239:7000) is responding.
pvfs file system /pvfs-meta is fully operational.
# Its still hanging when I mount the fs.
[root at compute-0-14 pvfs-kernel-1.6.2-linux-2.4]# ./mount.pvfs 10.10.255.239:/pvfs-meta /mnt/pvfs
(pvfsd.c, 433): $Header: /projects/cvsroot/pvfs-kernel/pvfsd.c,v 1.41 2003/10/22 15:46:20 rbross Exp $(pvfsd.c, 434):
(pvfsd.c, 641): fatal error occurred writing to device, errno = 22
(pvfsd.c, 470): pvfsd: write failed
# where the fatal error is
write_pvfsdev_restart:
if ((ret = write(fd, down, sizeof(*down))) < 0) {
if (errno == EINTR) goto write_pvfsdev_restart;
Ciao,
Jörg
More information about the PVFS-developers
mailing list