[Bugs] [Bug 1283509] [WORM] Rename operation succeeds on a WORM enabled volume after one brick is added
bugzilla at redhat.com
bugzilla at redhat.com
Sun Nov 29 05:24:03 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1283509
Fang Huang <fanghuang.data at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(fanghuang.data at ya |
|hoo.com) |
--- Comment #2 from Fang Huang <fanghuang.data at yahoo.com> ---
This is what I did:
-----------
$ command line;
# comments I added
bdfs-node1 is the hostname
Two bricks were used. One used the system storage mounted on "/". The other
used /dev/sdc1 mounted on "/data/br1".
-----------
$ gluster v create worm-test bdfs-node1:/data/br0 force
$ gluster v set worm-test worm on
$ gluster v start worm-test
$ mkdir client
$ mount -t glusterfs bdfs-node1:worm-test ./client/
$ export LANG=en_US
$ cd client/
$ for i in `seq 0 9`; do dd if=/dev/zero of=./dummy_$i bs=1M count=1; done
$ gluster v add-brick worm-test bdfs-node1:/data/br1/br1 force
$ gluster v rebalance worm-test fix-layout start
$ gluster v rebalance worm-test start force
$ gluster v rebalance worm-test status
# To make sure the progress completed.
$ for i in `seq 10 99`; do dd if=/dev/zero of=./dummy_$i bs=1M count=1; done
$ ls /data/br1/br1/
root at bdfs-node1:~# ls /data/br1/br1/ -l
total 5124
---------T 2 root root 0 Nov 29 12:09 dummy_5
-rw-r--r-- 3 root root 1048576 Nov 29 12:15 dummy_61
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_64
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_65
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_68
$ mv dummy_5 dummy_bk
mv: cannot move 'dummy_5' to 'dummy_bk': Read-only file system
# This is OK.
$ mv dummy_61 dummy_bk
# Operation succeeded without any ERROR reported. This should not be permitted.
$ ls -l dummy_61 dummy_bk
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_61
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_bk
# ls /data/br1/br1/ -l
total 5124
---------T 2 root root 0 Nov 29 12:09 dummy_5
-rw-r--r-- 3 root root 1048576 Nov 29 12:15 dummy_61
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_64
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_65
-rw-r--r-- 2 root root 1048576 Nov 29 12:15 dummy_68
-rw-r--r-- 3 root root 1048576 Nov 29 12:15 dummy_bk
# Both files exist.
--
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=LDXjWgH218&a=cc_unsubscribe
More information about the Bugs
mailing list