[Bugs] [Bug 1379663] Volume gets mounted with ganesha v4 mount even when it is unexported.

bugzilla at redhat.com bugzilla at redhat.com
Wed Oct 19 10:02:56 UTC 2016


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

Shashank Raj <sraj at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|needinfo?(sraj at redhat.com)  |



--- Comment #3 from Shashank Raj <sraj at redhat.com> ---
Steps to reproduce:

1. Mount the volume on client with v4 and do some IO's:

root at Client2 ~]# mount -t nfs -o vers=4 10.70.40.209:/testvolume/ /mnt/nfs1
[root at Client2 ~]# df
Filesystem                              1K-blocks      Used  Available Use% 
10.70.40.209:/testvolume                125107200    236544  124870656   1%
/mnt/nfs1

[root at Client2 nfs1]# ls
[root at Client2 nfs1]# for i in {1..10}; do mkdir /mnt/nfs1/d$i;  for j in
{1..10}; do mkdir /mnt/nfs1/d$i/e$j; for k in {1..10}; do touch
/mnt/nfs1/d$i/e$j/f$k; done done done
[root at Client2 nfs1]# ls
d1  d10  d2  d3  d4  d5  d6  d7  d8  d9

2. unmount the volume and unexport it.

[root at Client2 ~]# umount /mnt/nfs1

[root at dhcp43-110 ~]# gluster vol set testvolume ganesha.enable off
volume set: success

[root at dhcp43-110 exports]# pwd
/var/run/gluster/shared_storage/nfs-ganesha/exports
[root at dhcp43-110 exports]# ls
[root at dhcp43-110 exports]# showmount -e localhost
Export list for localhost:


3. Mount the same volume again even when it is unexported and observe that it
is successful:

[root at Client2 ~]# mount -t nfs -o vers=4 10.70.40.209:/testvolume/ /mnt/nfs1
[root at Client2 ~]# 

10.70.40.209://testvolume on /mnt/nfs1 type nfs4
(rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.70.42.94,local_lock=none,addr=10.70.40.209)

4. Try listing the contents on the mount point and observe that it doesn't list
the contents but doesn't give any error as well:

[root at Client2 ~]# cd /mnt/nfs1
[root at Client2 nfs1]# ls
[root at Client2 nfs1]# ls -a
.
[root at Client2 nfs1]# ls -ltr
total 0

5. Creating a file/dir on mount point fails with read-only file system:

[root at Client2 nfs1]# mkdir new
mkdir: cannot create directory ‘new’: Read-only file system
[root at Client2 nfs1]# touch file
touch: cannot touch ‘file’: Read-only file system

-- 
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=pD5sb8aR8l&a=cc_unsubscribe


More information about the Bugs mailing list