[Bugs] [Bug 1431955] [Disperse] Implement open fd heal for disperse volume
bugzilla at redhat.com
bugzilla at redhat.com
Mon Mar 27 11:56:27 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1431955
--- Comment #2 from Sunil Kumar Acharya <sheggodu at redhat.com> ---
Steps to re-create/test:
1. Created and mounted an EC (2+1) volume. Heal disabled.
[root at server3 ~]# gluster volume info
Volume Name: ec-vol
Type: Disperse
Volume ID: b676891f-392d-49a6-891c-8e7e3790658d
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x (2 + 1) = 3
Transport-type: tcp
Bricks:
Brick1: server1:/LAB/store/ec-vol
Brick2: server2:/LAB/store/ec-vol
Brick3: server3:/LAB/store/ec-vol
Options Reconfigured:
cluster.disperse-self-heal-daemon: disable <<<<<
transport.address-family: inet
nfs.disable: on
disperse.background-heals: 0 <<<<<
[root at server3 ~]#
2. Touched a file on the mountpoint.
# touch file
3. Brought down one of the brick process.
4. Opened a file descriptor for the file.
# exec 30<> file
5. Brought up the brick process which was down.
6. Wrote to the FD.
# echo "abc" >&30
7. File status on clinet and bricks after write completes.
Client:
[root at varada mount]# ls -lh file
-rw-r--r--. 1 root root 4 Mar 27 17:11 file
[root at varada mount]# du -kh file
1.0K file
[root at varada mount]#
Bricks:
[root at server1 ~]# du -kh /LAB/store/ec-vol/file
4.0K /LAB/store/ec-vol/file
[root at server1 ~]# ls -lh /LAB/store/ec-vol/file
-rw-r--r-- 2 root root 0 Mar 27 17:08 /LAB/store/ec-vol/file
[root at server1 ~]# cat /LAB/store/ec-vol/file
[root at server1 ~]#
[root at server2 ~]# du -kh /LAB/store/ec-vol/file
8.0K /LAB/store/ec-vol/file
[root at server2 ~]# ls -lh /LAB/store/ec-vol/file
-rw-r--r-- 2 root root 512 Mar 27 17:11 /LAB/store/ec-vol/file
[root at server2 ~]# cat /LAB/store/ec-vol/file
abc
[root at server2 ~]#
[root at server3 ~]# du -kh /LAB/store/ec-vol/file
8.0K /LAB/store/ec-vol/file
[root at server3 ~]# ls -lh /LAB/store/ec-vol/file
-rw-r--r-- 2 root root 512 Mar 27 17:11 /LAB/store/ec-vol/file
[root at server3 ~]# cat /LAB/store/ec-vol/file
abc
abc
[root at server3 ~]#
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=0C3CqEyrjP&a=cc_unsubscribe
More information about the Bugs
mailing list