I have searched the interwebs but couldn't get a working answer.
I want to create a nfs share to only 2 hosts, which i can easily do by:
Code:
cat /etc/exports
/data 1.1.1.1(rw,sync,no_root_squash) 1.1.1.2(rw,sync,no_root_squash)
in a cluster environment; the above file is not utilized anymore and instead it options should be set inside a cluster resource. But I don't know how i can add that as a resource without the need to create 2 individual resource for each IP address. The following will allow all IPs in the same subnet but I only want 2 specific IPs access.
Code:
pcs resource create nfs-root exportfs \
clientspec=1.1.1.1/255.255.255.0 \
options=rw,sync,no_root_squash \
directory=/data \
fsid=0 --group clustergrp
Appreciate if you can share any information that can help me solve this.