Public bug reported:

When mounting from two nfsv4 exports from the same server,  the fsc-ness
of whichever happens to be mounted first indicates the behavior of both,
even if one has fsc and the other doesn't, or one as sync and the other
async.

I discovered this when trying to figure out why my /var/cache/fscache
wasn't filling up most of the time. All testing was done with a 12.04
server and clients running stock kernels.

root@kenya-i660:~# mount | grep nfs
root@kenya-i660:~# grep nfs /etc/fstab
192.168.0.52:/u         /u         nfs 
rw,noauto,noatime,async,hard,intr,nfsvers=4,timeo=14,bootwait,_netdev,fsc 0 0
192.168.0.52:/allafrica /allafrica nfs 
rw,noauto,noatime,sync,hard,intr,nfsvers=4,timeo=14,_netdev 0 0
root@kenya-i660:~# mount /u
root@kenya-i660:~# cat /proc/fs/nfsfs/volumes 
NV SERVER   PORT DEV     FSID              FSC
v4 c0a80034  801 0:21    9129e38f7c164f3d  yes
root@kenya-i660:~# umount /u
root@kenya-i660:~# mount /allafrica
root@kenya-i660:~# cat /proc/fs/nfsfs/volumes 
NV SERVER   PORT DEV     FSID              FSC
v4 c0a80034  801 0:21    9129e38f7c164f3d  no 
root@kenya-i660:~# umount /allafrica
root@kenya-i660:~# 
root@kenya-i660:~# mount /u
root@kenya-i660:~# mount /allafrica
root@kenya-i660:~# cat /proc/fs/nfsfs/volumes 
NV SERVER   PORT DEV     FSID              FSC
v4 c0a80034  801 0:21    9129e38f7c164f3d  yes
root@kenya-i660:~# umount /allafrica
root@kenya-i660:~# umount /u
root@kenya-i660:~# 
root@kenya-i660:~# mount /allafrica
root@kenya-i660:~# mount /u
root@kenya-i660:~# cat /proc/fs/nfsfs/volumes 
NV SERVER   PORT DEV     FSID              FSC
v4 c0a80034  801 0:21    9129e38f7c164f3d  no 
root@kenya-i660:~# umount /u
root@kenya-i660:~# umount /allafrica

root@kenya-i660:~# ssh [email protected] cat /etc/exports
/common/        
192.168.0.0/255.255.254.0(rw,no_root_squash,sync,no_subtree_check)

/export       192.168.0.0/16(ro,fsid=0,no_subtree_check)
/export/u     
192.168.0.0/16(rw,no_root_squash,nohide,insecure,no_subtree_check,async)
/export/allafrica 
192.168.0.0/16(rw,no_root_squash,nohide,insecure,no_subtree_check,sync)

** Affects: cachefilesd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1196674

Title:
  cachefilesd doesn't work with multiple mounts from the same nfsv4
  server

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cachefilesd/+bug/1196674/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to