hi siga hiro,
   I see the following warning:
[2011-08-24 11:36:04.695145] W [afr-common.c:656:afr_lookup_self_heal_check] 0-syncdata-replicate-0: /testdata: gfid different on subvolume

I also see that you have more than one mount on the volume. Most probably you are running into one of the following bugs:
1) http://bugs.gluster.com/show_bug.cgi?id=2921 (most likely this)
2) http://bugs.gluster.com/show_bug.cgi?id=2745

If it is not the bug 2745, you can confirm it is the bug 2921 if the md5sums on the files match on both the machines 172.23.0.1, 172.23.0.2

pranith.

On 08/24/2011 11:48 AM, siga hiro wrote:

Hi, everyone.
Its nice meeting you.
I am poor at English....

I am writing this because I'd like to update GlusterFS to 3.2.2-1,and I want to change from gluster mount to nfs mount.

I have installed GlusterFS 3.2.1 one week ago,and replication 2 server.

OS:CentOS5.5 64bit
RPM:glusterfs-core-3.2.1-1
    glusterfs-fuse-3.2.1-1

command
gluster volume create syncdata replica 2 transport tcp 172.23.0.1:/home/syncdata 172.23.0.2:/home/syncdata

mount command
172.23.0.1 -> mount -t glusterfs -o tcp,soft,timeo=3 172.23.0.1:/syncdata /syncdata 172.23.0.2 -> mount -t glusterfs -o tcp,soft,timeo=3 172.23.0.2:/syncdata /syncdata

So,Yesterday I update GlusterFS to 3.2.2-1 and use nfs mount.
172.23.0.2 -> mount -t nfs -o nolock,nfsvers=3,tcp,hard,intr 172.23.0.2:/syncdata /syncdata

[[email protected] <mailto:[email protected]> /]# ls -al /syncdata/testdata/
ls: reading directory /syncdata/testdata/: Input/output error

/var/log/glusterfs/nfs.log
[2011-08-24 11:35:16.319379] I [client-handshake.c:1082:select_server_supported_programs] 0-syncdata-client-1: Using Program GlusterFS-3.1.0, Num (1298437), Version (310) [2011-08-24 11:35:16.322126] I [client-handshake.c:913:client_setvolume_cbk] 0-syncdata-client-1: Connected to 172.23.0.2:24009 <http://172.23.0.2:24009>, attached to remote volume '/home/syncdata'. [2011-08-24 11:35:16.322191] I [afr-common.c:2611:afr_notify] 0-syncdata-replicate-0: Subvolume 'syncdata-client-1' came back up; going online. [2011-08-24 11:35:16.323281] I [client-handshake.c:1082:select_server_supported_programs] 0-syncdata-client-0: Using Program GlusterFS-3.1.0, Num (1298437), Version (310) [2011-08-24 11:35:16.324274] I [client-handshake.c:913:client_setvolume_cbk] 0-syncdata-client-0: Connected to 172.23.0.1:24009 <http://172.23.0.1:24009>, attached to remote volume '/home/syncdata'. [2011-08-24 11:35:16.324801] I [afr-common.c:912:afr_fresh_lookup_cbk] 0-syncdata-replicate-0: added root inode [2011-08-24 11:36:04.695145] W [afr-common.c:656:afr_lookup_self_heal_check] 0-syncdata-replicate-0: /testdata: gfid different on subvolume [2011-08-24 11:36:04.696121] I [client3_1-fops.c:411:client3_1_stat_cbk] 0-syncdata-client-0: remote operation failed: No such file or directory [2011-08-24 11:36:04.697121] I [client3_1-fops.c:1099:client3_1_access_cbk] 0-syncdata-client-0: remote operation failed: No such file or directory [2011-08-24 11:36:04.698118] I [client3_1-fops.c:2132:client3_1_opendir_cbk] 0-syncdata-client-0: remote operation failed: No such file or directory [2011-08-24 11:36:04.698140] W [client3_1-fops.c:5136:client3_1_readdir] 0-syncdata-client-0: (689897478): failed to get fd ctx. EBADFD [2011-08-24 11:36:04.698155] W [client3_1-fops.c:5201:client3_1_readdir] 0-syncdata-client-0: failed to send the fop: File descriptor in bad state [2011-08-24 11:36:04.698168] I [afr-dir-read.c:120:afr_examine_dir_readdir_cbk] 0-syncdata-replicate-0: /fastask: failed to do opendir on syncdata-client-0


# gluster volume info all

Volume Name: syncdata
Type: Replicate
Status: Started
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: 172.23.0.1:/home/syncdata
Brick2: 172.23.0.2:/home/syncdata
After an 172.23.0.2 server is made to work as usual, I want to do the work of the 172.23.0.1 server.

Any ideas?


_______________________________________________
Gluster-users mailing list
[email protected]
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users

_______________________________________________
Gluster-users mailing list
[email protected]
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users

Reply via email to