So we have a single host instance on EC2 with two EBS volumes attached. When we mount the shares on the clients both shares are pointing to the same host directory even though they are defined and attached as separate volumes.
We are using NFSv4 and the settings as such:
Host settings:
/etc/fstab
/dev/xvdf /mona/images auto defaults,nobootwait,comment=cloudconfig 0 2
/dev/xvdg /mona/image-archive auto defaults,nobootwait,comment=cloudconfig 0 2
/etc/exports
/mona *(rw,sync,fsid=0,crossmnt,no_subtree_check)
/mona/images *(rw,no_root_squash,sync,no_subtree_check)
/mona/image-archive *(rw,no_root_squash,sync,no_subtree_check)
Client settings:
/etc/fstab
{host-ip}:/images /mona/images nfs4 defaults,_netdev 0 0
{host-ip}:/image-archive /mona/image-archive nfs4 defaults,_netdev 0 0
The when that is all done we run # df -h on the host and client we get this:
Host
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 8.0G 3.8G 3.9G 50% /
udev 826M 8.0K 826M 1% /dev
tmpfs 339M 196K 339M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 847M 0 847M 0% /run/shm
/dev/xvdb 335G 195M 318G 1% /mnt
/dev/xvdf 197G 187G 1.3M 100% /mona/images
/dev/xvdg 296G 187G 94G 67% /mona/image-archive
Client
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 8.0G 5.7G 1.9G 76% /
udev 275M 8.0K 275M 1% /dev
tmpfs 119M 180K 118M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 296M 0 296M 0% /run/shm
{host-ip}:/images 197G 187G 1.3M 100% /mona/images
{host-ip}:/image-archive 197G 187G 1.3M 100% /mona/image-archive
Both mounts on the client point to the same first shared export on the host.
Help?