Hi Zhu,
Could you please try the attached patch against CVS and recompile the
kernel module, and remount the pvfs2 file-system before accessing files thru 
apache?
It seems to work for me..
Do let us know,
Thanks for the reports
Murali

> thank you,
>
>   i'm install pvfs21.3.1 after,i copy my host files init,but it can't show
> pictures in my web server with apache2,if use ftp login,can see all
> pictures.
>
>
> >From: Murali Vilayannur <[EMAIL PROTECTED]>
> >To: zhu min <[EMAIL PROTECTED]>
> >CC: [email protected]
> >Subject: Re: pvfs2-1.3.0
> >Date: Wed, 30 Nov 2005 23:05:22 -0600 (CST)
> >
> >Hi Zhu
> >Could you please try out version 1.3.1 and let us know if it works or not?
> >ftp://ftp.parl.clemson.edu/pub/pvfs2/pvfs2-1.3.1.tar.gz
> >Thanks,
> >Murali
> >
> >On Thu, 1 Dec 2005, zhu min wrote:
> >
> > > hello
> > >
> > >   i'm already install the pvfs2-1.3.0 and it's run.but not over 10
> > > minutes,they all down.
> > >
> > >   PS:
> > >
> > > cd /home/tools
> > >
> > > wget ftp://ftp.parl.clemson.edu/pub/pvfs2/pvfs2-1.3.0.tar.gz
> > >
> > > tar zxvf pvfs2-1.3.0.tar.gz
> > >
> > > cd pvfs2-1.3.0
> > >
> > > ./configure --prefix=/home/pvfs2 --with-kernel24=/usr/src/linux-2.4
> > > --enable-redhat24 --enable-nptl-workaround
> > >
> > > make
> > >
> > > make install
> > >
> > > make kmod24_install
> > >
> > > cd /home/pvfs2/bin
> > >
> > > ./pvfs2-genconfig /etc/pvfs2-fs.conf /etc/pvfs2-server.conf
> > >
> > > **********************************************************************
> > >         Welcome to the PVFS2 Configuration Generator:
> > >
> > > This interactive script will generate configuration files suitable
> > > for use with a new PVFS2 file system.  Please see the PVFS2 quickstart
> > > guide for details.
> > >
> > > **********************************************************************
> > >
> > > You must first select the network protocol that your file system will
> use.
> > > The only currently supported options are "tcp" and "gm".
> > >
> > > * Enter protocol type [Default is tcp]:
> > >
> > > Choose a TCP/IP port for the servers to listen on.  Note that this
> > > script assumes that all servers will use the same port number.
> > >
> > > * Enter port number [Default is 3334]:
> > >
> > > Next you must list the hostnames of the machines that will act as
> > > I/O servers.  Acceptable syntax is "node1, node2, ..." or
> "node{#-#,#,#}".
> > >
> > > * Enter hostnames [Default is localhost]: cluster{1-5}
> > >
> > > Now list the hostnames of the machines that will act as Metadata
> > > servers.  This list may or may not overlap with the I/O server list.
> > >
> > > * Enter hostnames [Default is localhost]: cluster1
> > >
> > > Configured a total of 8 servers:
> > > 5 of them are I/O servers.
> > > 1 of them are Metadata servers.
> > >
> > > * Would you like to verify server list (y/n) [Default is n]? y
> > >
> > > ****** I/O servers:
> > > tcp://cluster1:3334
> > > tcp://cluster2:3334
> > > tcp://cluster3:3334
> > > tcp://cluster4:3334
> > > tcp://cluster5:3334
> > >
> > > ****** Metadata servers:
> > > tcp://cluster1:3334
> > >
> > > * Does this look ok (y/n) [Default is y]? y
> > >
> > > Choose a file for each server to write log messages to.
> > >
> > > * Enter log file location [Default is /tmp/pvfs2-server.log]:
> > >
> > > Choose a directory for each server to store data in.
> > >
> > > * Enter directory name: [Default is /pvfs2-storage-space]:
> > >
> > > Writing fs config file... Done.
> > > Writing 5 server config file(s)... Done.
> > >
> > > ls /etc
> > >
> > > pvfs2-fs.conf
> > > pvfs2-server.conf-cluster1
> > > pvfs2-server.conf-cluster2
> > > pvfs2-server.conf-cluster3
> > > pvfs2-server.conf-cluster4
> > > pvfs2-server.conf-cluster5
> > >
> > > cp /home/tools/pvfs2-1.3.0/examples/pvfs2-server.rc
> > > /etc/rc.d/init.d/pvfs2-server
> > >
> > > chmod a+x /etc/rc.d/init.d/pvfs2-server
> > >
> > > chkconfig pvfs2-server on
> > >
> > > ls -al /etc/rc.d/rc3.d/S35pvfs2-server
> > >
> > > /home/pvfs2/sbin/pvfs2-server /etc/pvfs2-fs.conf
> > > /etc/pvfs2-server.conf-cluster1 -f
> > >
> > > /etc/rc.d/init.d/pvfs2-server start
> > >
> > > mkdir /mnt/pvfs2
> > > touch /etc/pvfs2tab
> > > chmod a+r /etc/pvfs2tab
> > > vi /etc/pvfs2tab
> > >    tcp://cluster1:3334/pvfs2-fs /mnt/pvfs2 pvfs2 default,noauto 0 0
> > >
> > > #other 4 server's /etc/pvfs2tab is tcp://cluster2:3334/pvfs2-fs
> /mnt/pvfs2
> > > pvfs2 default,noauto 0 0;tcp://cluster3:3334/pvfs2-fs /mnt/pvfs2 pvfs2
> > > default,noauto 0 0;
> > > #tcp://cluster4:3334/pvfs2-fs /mnt/pvfs2 pvfs2 default,noauto 0
> > > 0;tcp://cluster5:3334/pvfs2-fs /mnt/pvfs2 pvfs2 default,noauto 0 0
> > >
> > > /home/pvfs2/bin/pvfs2-ping -m /mnt/pvfs2
> > >
> > >
> > > (1) Parsing tab file...
> > >
> > > (2) Initializing system interface...
> > >
> > > (3) Initializing each file system found in tab file: /etc/pvfs2tab...
> > >
> > >    /mnt/pvfs2: Ok
> > >
> > > (4) Searching for /mnt/pvfs2 in pvfstab...
> > >
> > >    PVFS2 servers: tcp://cluster1:3334
> > >    Storage name: pvfs2-fs
> > >    Local mount point: /mnt/pvfs2
> > >
> > >    meta servers:
> > >    tcp://cluster1:3334
> > >
> > >    data servers:
> > >    tcp://cluster1:3334
> > >    tcp://cluster2:3334
> > >    tcp://cluster3:3334
> > >    tcp://cluster4:3334
> > >    tcp://cluster5:3334
> > >
> > > (5) Verifying that all servers are responding...
> > >
> > >    meta servers:
> > >    tcp://cluster1:3334 Ok
> > >
> > >    data servers:
> > >    tcp://cluster1:3334 Ok
> > >    tcp://cluster2:3334 Ok
> > >    tcp://cluster3:3334 Ok
> > >    tcp://cluster4:3334 Ok
> > >    tcp://cluster5:3334 Ok
> > >
> > > (6) Verifying that fsid 151391925 is acceptable to all servers...
> > >
> > >    Ok; all servers understand fs_id 151391925
> > >
> > > (7) Verifying that root handle is owned by one server...
> > >
> > >    Root handle: 1048576
> > >    Ok; root handle is owned by exactly one server.
> > >
> > > =============================================================
> > >
> > > The PVFS filesystem at /mnt/pvfs2 appears to be correctly configured.
> > >
> > > cd /home/pvfs2/sbin
> > >
> > > ./pvfs2-client -p ./pvfs2-client-core
> > >
> > > insmod /home/tools/pvfs2-1.3.0/src/kernel/linux-2.4/pvfs2.o
> > >
> > > mount -t pvfs2 pvfs2 /mnt/pvfs2 -o tcp://cluster1:3334/pvfs2-fs
> > >
> > >
> ############################################################################
>
> > >
> > > other 4 server's
> > > {
> > > cluster2:
> > >
> > > cd /home/pvfs2/sbin
> > >
> > > ./pvfs2-client -p ./pvfs2-client-core
> > >
> > > insmod /home/tools/pvfs2-1.3.0/src/kernel/linux-2.4/pvfs2.o
> > >
> > > mount -t pvfs2 pvfs2 /mnt/pvfs2 -o tcp://cluster2:3334/pvfs2-fs
> > >
> > > cluster3:
> > >
> > > cd /home/pvfs2/sbin
> > >
> > > ./pvfs2-client -p ./pvfs2-client-core
> > >
> > > insmod /home/tools/pvfs2-1.3.0/src/kernel/linux-2.4/pvfs2.o
> > >
> > > mount -t pvfs2 pvfs2 /mnt/pvfs2 -o tcp://cluster3:3334/pvfs2-fs
> > >
> > > cluster4:
> > >
> > > cd /home/pvfs2/sbin
> > >
> > > ./pvfs2-client -p ./pvfs2-client-core
> > >
> > > insmod /home/tools/pvfs2-1.3.0/src/kernel/linux-2.4/pvfs2.o
> > >
> > > mount -t pvfs2 pvfs2 /mnt/pvfs2 -o tcp://cluster4:3334/pvfs2-fs
> > >
> > > cluster5:
> > >
> > > cd /home/pvfs2/sbin
> > >
> > > ./pvfs2-client -p ./pvfs2-client-core
> > >
> > > insmod /home/tools/pvfs2-1.3.0/src/kernel/linux-2.4/pvfs2.o
> > >
> > > mount -t pvfs2 pvfs2 /mnt/pvfs2 -o tcp://cluster5:3334/pvfs2-fs
> > > }
> > >
> ###############################################################################
>
> > >
> > >
> > > cp test.tar.gz /mnt/pvfs2
> > >
> > > ls /mnt/pvfs2
> > >
> > > can see the file test.tar.gz,in other 4 host run ls /mnt/pvfs2  also
> can
> > > see the file.
> > >
> > > next,i run
> > >
> > > tar zxvf test.tar.gz
> > >
> > > it's ok,but A little minutes after,they all down,tar stop,nothing error
> > > messages!
> > >
> > > _________________________________________________________________
> > > ???????????????????????????? MSN Messenger:
> http://messenger.msn.com/cn
> > >
> > > _______________________________________________
> > > PVFS2-developers mailing list
> > > [email protected]
> > > http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
> > >
> > >
>
> _________________________________________________________________
> ???????????????????????????? MSN Messenger:  http://messenger.msn.com/cn
>
>
Index: src/kernel/linux-2.6/file.c
===================================================================
RCS file: /anoncvs/pvfs2/src/kernel/linux-2.6/file.c,v
retrieving revision 1.102
diff -u -r1.102 file.c
--- src/kernel/linux-2.6/file.c 21 Nov 2005 19:47:50 -0000      1.102
+++ src/kernel/linux-2.6/file.c 1 Dec 2005 07:38:35 -0000
@@ -14,6 +14,7 @@
 #include "pvfs2-bufmap.h"
 #include "pvfs2-types.h"
 #include "pvfs2-internal.h"
+#include <linux/fs.h>
 
 extern struct list_head pvfs2_request_list;
 extern spinlock_t pvfs2_request_list_lock;
@@ -2078,7 +2079,8 @@
     .mmap = pvfs2_file_mmap,
     .open = pvfs2_file_open,
     .release = pvfs2_file_release,
-    .fsync = pvfs2_fsync
+    .fsync = pvfs2_fsync,
+    .sendfile = generic_file_sendfile
 #endif
 };
 
_______________________________________________
PVFS2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to