Re: distributed+replica problem ,thanks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
   Thanks for your reply.
   This is the output on the mount:
 [root@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@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@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@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@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@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@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@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@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@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@xxxxxxxxxx>;
Date:  Tue, Jul 22, 2014 02:36 PM
To:  "ABC-new"<360532762@xxxxxx>; "gluster-users"<gluster-users@xxxxxxxxxxx>;
Subject:  Re: [Gluster-users] distributed+replica problem ,thanks

hi,
     I performed the same test:
This is the output on the mount:
root@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@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@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users

_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux