Looks like the hardlink hidden file are inconsistent, how could I fix this and why it happens?
On machine 1:
u1@u1-virtual-machine:~$ sudo stat /data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f
File: ‘/data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f’
Size: 79691776 Blocks: 155656 IO Block: 4096 regular file
Device: 811h/2065d Inode: 393231 Links: 2
Access: (0660/-rw-rw----) Uid: ( 999/ mysql) Gid: ( 1001/ mysql)
Access: 2014-01-18 23:09:47.567335000 +0800
Modify: 2014-01-18 23:11:48.690740114 +0800
Change: 2014-01-19 12:12:35.360826648 +0800
Birth: -
u1@u1-virtual-machine:~$
u1@u1-virtual-machine:~$
u1@u1-virtual-machine:~$
u1@u1-virtual-machine:~$ sudo getfattr -e hex -m . -d /data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f
getfattr: Removing leading '/' from absolute path names
# file: data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f
trusted.afr.mysqldata-client-0=0x000000010000000000000000
trusted.afr.mysqldata-client-1=0x000000010000000000000000
trusted.gfid=0x0ff1a4e1b14c41d6826be749a4e6ec7f
On machine 2:
u1@u2-virtual-machine:/var/lib/glusterd/glustershd$ sudo stat /data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f
File: ‘/data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f’
Size: 79691776 Blocks: 155656 IO Block: 4096 regular file
Device: 811h/2065d Inode: 131087 Links: 2
Access: (0660/-rw-rw----) Uid: ( 999/ mysql) Gid: ( 1001/ mysql)
Access: 2014-01-19 11:38:49.305700766 +0800
Modify: 2014-01-18 23:11:48.356419703 +0800
Change: 2014-01-19 12:12:35.237641763 +0800
Birth: -
u1@u2-virtual-machine:/var/lib/glusterd/glustershd$ sudo getfattr -e hex -m . -d /data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f
getfattr: Removing leading '/' from absolute path names
# file: data/gv0/brick1/mysqldata/.glusterfs/0f/f1/0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f
trusted.afr.mysqldata-client-0=0x000000010000000000000000
trusted.afr.mysqldata-client-1=0x000000010000000000000000
trusted.gfid=0x0ff1a4e1b14c41d6826be749a4e6ec7f
2014/1/18 Yandong Yao <yydzero@xxxxxxxxx>
BTW: This is the output of volume info and status.u1@u1-virtual-machine:~$ sudo gluster volume infoVolume Name: mysqldataType: ReplicateVolume ID: 27e6161b-d2d0-4369-8ef0-acf18532af73Status: StartedNumber of Bricks: 1 x 2 = 2Transport-type: tcpBricks:Brick1: 192.168.53.218:/data/gv0/brick1/mysqldataBrick2: 192.168.53.221:/data/gv0/brick1/mysqldatau1@u1-virtual-machine:~$ sudo gluster volume statusStatus of volume: mysqldataGluster process Port Online Pid------------------------------------------------------------------------------Brick 192.168.53.218:/data/gv0/brick1/mysqldata 49154 Y 2071Brick 192.168.53.221:/data/gv0/brick1/mysqldata 49153 Y 2170NFS Server on localhost 2049 Y 2066Self-heal Daemon on localhost N/A Y 2076NFS Server on 192.168.53.221 2049 Y 2175Self-heal Daemon on 192.168.53.221 N/A Y 2180There are no active volume tasks2014/1/18 Yandong Yao <yydzero@xxxxxxxxx>
Hi Guys,I am testing glusterfs and have configured replicated volume (replica=2 on two virtual machines), after play with the volume a while, there are un-consistent data reported by 'heal volname info':u1@u1-virtual-machine:~$ sudo gluster volume heal mysqldata infoGathering Heal info on volume mysqldata has been successfulBrick 192.168.53.218:/data/gv0/brick1/mysqldataNumber of entries: 1<gfid:0ff1a4e1-b14c-41d6-826b-e749a4e6ec7f>Brick 192.168.53.221:/data/gv0/brick1/mysqldataNumber of entries: 1/ibdata1
1) What does this means? Why one entry is file itself on one host, while another entry is gfid on another host?
2) After a while (maybe 2 minutes), re-run heal info, and get following output. What happened behind the scene? Why the entry changes to file from gfid?
u1@u1-virtual-machine:~$ sudo gluster volume heal mysqldata infoGathering Heal info on volume mysqldata has been successfulBrick 192.168.53.218:/data/gv0/brick1/mysqldataNumber of entries: 1/ibdata1Brick 192.168.53.221:/data/gv0/brick1/mysqldataNumber of entries: 1/ibdata1u1@u1-virtual-machine:~$ sudo gluster volume heal mysqldata info split-brainGathering Heal info on volume mysqldata has been successfulBrick 192.168.53.218:/data/gv0/brick1/mysqldataNumber of entries: 0Brick 192.168.53.221:/data/gv0/brick1/mysqldataNumber of entries: 03) I tried with both heal and heal full, while heal seems not work, I still get above output. How could I heal this case manually? Following is getfattr output.
u1@u1-virtual-machine:~$ sudo getfattr -e hex -m . -d /data/gv0/brick1/mysqldata/ibdata1getfattr: Removing leading '/' from absolute path names# file: data/gv0/brick1/mysqldata/ibdata1trusted.afr.mysqldata-client-0=0x000000010000000000000000trusted.afr.mysqldata-client-1=0x000000010000000000000000trusted.gfid=0x0ff1a4e1b14c41d6826be749a4e6ec7f
Any comments are welcome, and thanks very much in advance!Regards,Yandong
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-users