Perform the following steps on both CABI server machines to setup the NFS client. This is required to access the shared location available in the file repository server.
- Login as a root.
- Create a directory which will be used to mount the shared directory:
- Make the user ‘bobje’, the owner for this directory
- chown –R bobje:bobje /home/nfs/cabi
- Open /etc/fstab.
- Mount the directory /home/nfs/cabi from the File repository server, to the directory /home/nfs/cabi in the current machine
- FileRepositoryServer:/home/nfs/cabi /home/nfs/cabi nfs defaults 0 0
- Mount all the shares:
- Verify the share has been mounted and its location by executing mount.
- Login as bobje su –bobje.
- Ensure that you have write permissions for the share by creating a file with the following commands:
cd /home/nfs/cabi
touch a
If you do not have permissions, this command will throw an error.
rm a
Note: Delete the file if it was created
- Copy the file repositories from this machine to the share.
cd /opt/CA/SharedComponents/CommonReporting3/bobje
- Stop the servers by runing:
./stopservers”
- Navigate to the location of the Input File repository:
cd data/frsinput”
- Copy all the files from this directory to the share:
cp -r * /home/nfs/cabi/frsinput
- Navigate to the Location of the Output File Repository:
cd ../frsoutput
- Copy all the files from Output file repository to the share:
cp -r * /home/nfs/cabi/frsoutput
- Remove the frsinput and frsoutput folders from /opt/CA/SharedComponents/CommonReporting3/bobje/data”
- Add softlinks pointing to the NFS shared folders:
ln -s /home/nfs/cabi/frsinput
ln -s /home/nfs/cabi/frsoutput
- Start the servers:
“cd /opt/CA/SharedComponents/CommonReporting3/bobje”
./startservers