[Gluster-users] distributed+replica problem ,thanks

ABC-new 360532762 at qq.com
Tue Jul 22 10:41:31 UTC 2014


hi,
   Thanks for your reply.
   This is the output on the mount:
 [root at busap-test201 dist_raplica]# ls -l
total 0
-rw-r--r-- 1 root root 0 Jul 22 11:00 test1
-rw-r--r-- 1 root root 0 Jul 22 11:00 test2
-rw-r--r-- 1 root root 0 Jul 22 11:00 test3
-rw-r--r-- 1 root root 0 Jul 22 11:00 test4
-rw-r--r-- 1 root root 0 Jul 22 11:00 test5
-rw-r--r-- 1 root root 0 Jul 22 11:00 test6
-rw-r--r-- 1 root root 0 Jul 22 11:00 test7
-rw-r--r-- 1 root root 0 Jul 22 11:00 test8
-rw-r--r-- 1 root root 0 Jul 22 11:00 test9‍
This is the output on the brick(raplica1_0):
[root at busap-test214 dist_raplica]# ls -l
total 0
-rw-r--r-- 2 root root 0 Jul 22 11:00 test1
-rw-r--r-- 2 root root 0 Jul 22 11:00 test2
-rw-r--r-- 2 root root 0 Jul 22 11:00 test3
-rw-r--r-- 2 root root 0 Jul 22 11:00 test4
-rw-r--r-- 2 root root 0 Jul 22 11:00 test5
-rw-r--r-- 2 root root 0 Jul 22 11:00 test6
-rw-r--r-- 2 root root 0 Jul 22 11:00 test7
-rw-r--r-- 2 root root 0 Jul 22 11:00 test8
-rw-r--r-- 2 root root 0 Jul 22 11:00 test9‍

This is the output on the brick(raplica1_1):‍
[root at busap-test214 dist_raplica]# ls -l
total 0
-rw-r--r-- 2 root root 0 Jul 22 11:00 test1
-rw-r--r-- 2 root root 0 Jul 22 11:00 test2
-rw-r--r-- 2 root root 0 Jul 22 11:00 test3
-rw-r--r-- 2 root root 0 Jul 22 11:00 test4
-rw-r--r-- 2 root root 0 Jul 22 11:00 test5
-rw-r--r-- 2 root root 0 Jul 22 11:00 test6
-rw-r--r-- 2 root root 0 Jul 22 11:00 test7
-rw-r--r-- 2 root root 0 Jul 22 11:00 test8
-rw-r--r-- 2 root root 0 Jul 22 11:00 test9‍

This is the output on the brick(raplica2_0):‍
[root at busap-test216 dist_raplica]# ls -l
total 0
---------T 2 root root 0 Jul 22 11:00 test3
---------T 2 root root 0 Jul 22 11:00 test6
---------T 2 root root 0 Jul 22 11:00 test7‍

This is the output on the brick(raplica2_1):‍‍
[root at busap-test217 dist_raplica]# ls -l
total 0
---------T 2 root root 0 Jul 22 11:00 test3
---------T 2 root root 0 Jul 22 11:00 test6
---------T 2 root root 0 Jul 22 11:00 test7‍



The servers test214,test215,test216,test217 is virtualmachine by xen,and while I make this test on the physical machine, the result is ok.‍
The below is the test result on the physical machine:
  This is the output on the mount:‍
[root at localhost dr]# ls -al
total 4
drwxr-xr-x  3 root root  154 Jul 22 16:42 .
drwxr-xr-x 16 root root 4096 Jul 22 16:40 ..
-rw-r--r--  1 root root    0 Jul 22 16:42 test1
-rw-r--r--  1 root root    0 Jul 22 16:42 test2
-rw-r--r--  1 root root    0 Jul 22 16:42 test3
-rw-r--r--  1 root root    0 Jul 22 16:42 test4
-rw-r--r--  1 root root    0 Jul 22 16:42 test5
-rw-r--r--  1 root root    0 Jul 22 16:42 test6
-rw-r--r--  1 root root    0 Jul 22 16:42 test7
-rw-r--r--  1 root root    0 Jul 22 16:42 test8
-rw-r--r--  1 root root    0 Jul 22 16:42 test9‍

This is the output on the brick(raplica1_0):‍
[root at busap-test2 dr]# ls -l
total 0
-rw-r--r-- 2 root root 0 Jul 22 16:42 test1
-rw-r--r-- 2 root root 0 Jul 22 16:42 test2
-rw-r--r-- 2 root root 0 Jul 22 16:42 test4
-rw-r--r-- 2 root root 0 Jul 22 16:42 test5
-rw-r--r-- 2 root root 0 Jul 22 16:42 test8
-rw-r--r-- 2 root root 0 Jul 22 16:42 test9‍

This is the output on the brick(raplica1_1):‍
[root at tsung150 dr]# ls -l
总用量 0
-rw-r--r--. 2 root root 0 7月  22 16:42 test1
-rw-r--r--. 2 root root 0 7月  22 16:42 test2
-rw-r--r--. 2 root root 0 7月  22 16:42 test4
-rw-r--r--. 2 root root 0 7月  22 16:42 test5
-rw-r--r--. 2 root root 0 7月  22 16:42 test8
-rw-r--r--. 2 root root 0 7月  22 16:42 test9‍

‍

This is the output on the brick(raplica2_0):‍
[root at 192 dr]# ls -l
total 0
-rw-r--r--. 2 root root 0 Jul 22 16:42 test3
-rw-r--r--. 2 root root 0 Jul 22 16:42 test6
-rw-r--r--. 2 root root 0 Jul 22 16:42 test7‍

This is the output on the brick(raplica2_1):‍
[root at redis dr]# ls -l
total 0
-rw-r--r-- 2 root root 0 Jul 22 16:42 test3
-rw-r--r-- 2 root root 0 Jul 22 16:42 test6
-rw-r--r-- 2 root root 0 Jul 22 16:42 test7‍



The test on the virtual machine by xen is fail.But the test on the physical machine is success.


Could you tell me that does  vm have any effects on the test result?


Thanks for your reply again:-).


Best Regards.




------------------ Original ------------------
From:  "Pranith Kumar Karampuri";<pkarampu at redhat.com>;
Date:  Tue, Jul 22, 2014 02:36 PM
To:  "ABC-new"<360532762 at qq.com>; "gluster-users"<gluster-users at gluster.org>; 

Subject:  Re: [Gluster-users] distributed+replica problem ,thanks



                   hi,
          I performed the same test:
     This is the output on the mount:
     root at pranithk-laptop - /mnt/r2 
     11:34:27 :) ⚡ ls -l
     total 0
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test1
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test2
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test3
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test4
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test5
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test6
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test7
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test8
     -rw-r--r--. 1 root root 0 Jul 22 11:34 test9
     
     This is the output on bricks:
     root at pranithk-laptop - /mnt/r2 
     11:34:29 :) ⚡ ls -l /home/gfs/r2_?
     /home/gfs/r2_0:
     total 0
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test1
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test2
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test4
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test5
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test8
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test9
     
     /home/gfs/r2_1:
     total 0
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test1
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test2
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test4
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test5
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test8
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test9
     
     /home/gfs/r2_2:
     total 0
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test3
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test6
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test7
     
     /home/gfs/r2_3:
     total 0
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test3
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test6
     -rw-r--r--. 2 root root 0 Jul 22 11:34 test7
     
     Could you also give the output on bricks and mount please.
     
     Pranith
     On 07/21/2014 06:23 PM, ABC-new wrote:
     
     dear all:       
       
                i used glusterfs version 3.5.1.
                the volume type is distributed+replica. while i         touch test{1,2,3,4,5,6,7,8,9},the first replica's filelist is         test1,test2,test3,test4,test5,test6,test7,test8,test9.
       ‍
       the second replica's file list is test3,test6,test7
       ‍
       my question is why test3,test6,test7 appeared in the first         replica's filelist and the second replica's filelist .it does         not match the feature of the distributed volume type.
       the volume info is ok:
                # gluster volume info
          
         Volume Name: dr
         Type: Distributed-Replicate
         Volume ID: 0ae73b53-28be-43d5-9b86-807f4b58373b
         Status: Started
         Number of Bricks: 2 x 2 = 4
         Transport-type: tcp
         Bricks:
         Brick1: 192.168.109.214:/home/dr
         Brick2: 192.168.109.215:/home/dr
         Brick3: 192.168.109.216:/home/dr
         Brick4: 192.168.109.217:/home/dr‍
       
       
       
       
                   while the volume type is only distributed, it         works fine.
       best&regards
       thanks!!!
       
       
       
              
       _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://supercolony.gluster.org/mailman/listinfo/gluster-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140722/2aebedbd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CC5BB68F at 3D683809.DB3FCE53
Type: application/octet-stream
Size: 52448 bytes
Desc: not available
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140722/2aebedbd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 262B5701 at 3D683809.DB3FCE53
Type: application/octet-stream
Size: 10278 bytes
Desc: not available
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140722/2aebedbd/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2F5F4E04 at 3D683809.DB3FCE53
Type: application/octet-stream
Size: 17883 bytes
Desc: not available
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140722/2aebedbd/attachment-0002.obj>


More information about the Gluster-users mailing list