|Issue||APP 3.0: how to setup an nfs export and nfs mount between appliances (for the purpose of transferring a replica package or for exporting logs)|
There is no documented way to transfer a replica package between a primary and a replica server via nfs.
|Resolution||For the purposes of this example, assume:|
"primary.mydomain.com" is the hostname of the Primary server (and the nfs server), the directory to export is called /share
"replica.mydomain.com" is the hostname of the Replica server (and the nfs client), the directory to mount against is called /primary
On the Primary (nfs server)
1) Log into the server via ssh as emcsrv, then sudo to the root user using sudo su -
2) cd /etc and vi (or create if one does not exist) a file called "exports"
3) add the following entry to the exports directory:
where: /share is the directory where you have saved the replica package
replica.mydomain.com is the only site that is allowed to access the mount (alternately, you can use an ip address or * for global access)
(rw,root_squash) is read/write and "squashing" root rights to the mount point (for security purposes).
this mount can be scaled down or up, depending on how much or little security you want associated. The mount should only be used temporarily.
4) stop ip tables (temporarily): service iptables stop
5) start the nfs server: service nfs start
On the Replica:
1) mkdir /primary
2) chmod 777 /primary
3) mkdir /package
4) chmod 777 /package
5) mount the nfs export on from the primary to the replica:
mount -t nfs primary.mydomain.com:/share /primary
6) cd /primary (the replica package should be viewable with ls)
7) cp /primary/(replica package name) /package
When the copy is finished, you can umount the drive on the client
1) cd /
2) umount primary.mydomain.com:/share
1) turn iptables back on: service iptables start
2) turn nfs off: service nfs stop
|Legacy Article ID||a48752|