[Bugs] [Bug 1531457] hard Link file A to B error if A is just created

bugzilla at redhat.com bugzilla at redhat.com
Thu Jan 18 01:19:36 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1531457



--- Comment #3 from George <george.lian at nokia.com> ---
I suppose your has create 6 bricks, but only let three of 6 shutting down.
the following is my test process output FYI.

root at ubuntu:~# gluster peer probe ubuntu
peer probe: success. Probe on localhost not needed
root at ubuntu:~# gluster v create test replica 2 ubuntu:/home/gfs/b1
ubuntu:/home/gfs/b2 force
volume create: test: success: please start the volume to access data
root at ubuntu:~# gluster v start test
volume start: test: success
root at ubuntu:~# gluster v info test

Volume Name: test
Type: Replicate
Volume ID: fef5fca3-81d9-46d3-8847-74cde6f701a5
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: ubuntu:/home/gfs/b1
Brick2: ubuntu:/home/gfs/b2
Options Reconfigured:
transport.address-family: inet
nfs.disable: on
performance.client-io-threads: off
root at ubuntu:~# gluster v status
Status of volume: test
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick ubuntu:/home/gfs/b1                   49152     0          Y       7798
Brick ubuntu:/home/gfs/b2                   49153     0          Y       7818
Self-heal Daemon on localhost               N/A       N/A        Y       7839

Task Status of Volume test
------------------------------------------------------------------------------
There are no active volume tasks


root at ubuntu:~# gluster v set test cluster.consistent-metadata on
volume set: success

root at ubuntu:~# ls /mnt/test
ls: cannot access '/mnt/test': No such file or directory
root at ubuntu:~# mkdir -p /mnt/test
root at ubuntu:~# mount -t glusterfs ubuntu:/test /mnt/test

root at ubuntu:~# cd /mnt/test
root at ubuntu:/mnt/test# echo "abc">aaa
root at ubuntu:/mnt/test# cp aaa bbb;link bbb ccc

root at ubuntu:/mnt/test# kill -9 7818
root at ubuntu:/mnt/test# cp aaa ddd;link ddd eee
link: cannot create link 'eee' to 'ddd': No such file or directory

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list