To enable writing files between the servers within your APM Connect architecture, file shares need to be mounted. This topic details the basic process for setting up a file share based on your operating systems. Generally, this process involves, creating a file share to be mounted, then mounting the file share, and then making the file share permanent.
IMPORTANT: The process can vary greatly between organizations based on network configurations. Additionally, this procedure should be completed by an administrator with the expertise to manage network configurations.
Be sure that you understand the recommended configurations to enable file shares within the APM Connect architecture.
You will need access to the Linux console and root privileges on your Linux server.
Create the File Share
Note: This share can be anywhere on your APM Connect server and can have any name.
The <Folder Name> Properties window appears.
The Advanced Sharing window appears.
The other fields on the window are enabled.
The Permissions for <Folder Name> window appears.
The Select, Users, Computers, Service Accounts, or Groups window appears.
Note: The user must have permission to read and write to the shared folder.
The Select, Users, Computers, Service Accounts, or Groups window closes.
The Permissions for <Folder Name> window closes.
The Advanced Sharing window closes. Then, on the <Folder Name> Properties window, in the Network File and Folder Sharing section, the Network Path: subsection is populated.
Mount the File Share
Tip: The exact mount command will vary based on the system that you are using. An example of a mount command is mount -t smbfs -o username=Administrator //recurring/c$ /mnt/recurring
The mount appears in the list of mounted shares.
Tip: At this point, you should be able to write files from one share to another. To test, place a file in the source folder on the Windows machine, and then the file should appear in the target directory on the Linux machine.
Make the Share Permanent
Tip: Mounting the share into the /etc/fstab file makes the file share permanent meaning that upon reboot the file share is still be mounted. If you do not execute the mount in this location, once the machine is rebooted the mount will be disconnected.
Add a new line to the file defining the share, mount point, file system driver, and options.
Tip: The following is an example of the file syntax: //<Source Folder Name> /<Target Folder Name <Systems Type or Driver> username=username password=<password> 02
.Additionally, the following is the same entry with sample values: //APMConnectServer1/WindowsSharedFolder /opt/LinuxSharedFolder cifs –o username=APMConnectSeriveAccount1 password=APMConnect 0 2
To unmount the share created, execute the command umount (i.e., if the original mount directory was /opt/LinuxFileShare, then execute the command unmount /opt/LinuxFileShare).
Tip: You must unmount the share from the original location for it to be mounted from the /etc/fstab file.
The original mount directory does not appear in the list of mounted shares, and the new share in the /etc/fstab folder can be mounted.
Tip: Executing the command will read the configuration from the /etc/fstab file, and then preform the mount operation based on the parameters in the file.
The new mount point added to the /etc/fstab file appears in the list.
At this point, you can place a file on the APM Connect server in the shared folder, and it will be transferred to the shared Linux folder.
Create the File Share
IMPORTANT: The name of this service can vary based on the Linux system.
For example, if you wanted to create the directory /opt/PI_FileShare and grant all users permissions to mount that directory, then you would enter the following: /opt/PI_FileShare *(rw, sync, no_root_squash, not_subtree_check).
Tip: You can find all of the export options and access control lists in the manual file accessed by executing the command man exports.
Mount the File Share
Tip: The exact mount command will vary based on the system that you are using. An example of a mount command is mount example.hostname.com:/ubuntu/local/ubuntu
.For example, if your SAP server hostname is SAPServer1, your source directory is /opt/PI_FileShare, and your target directory is /opt/SAP_FileShare, you would enter the following: mount SAPServer1: /opt/PI_File_Share /opt/SAP_FileShare
Tip: At this point, you should be able to write files from one share to another. To test, place a file in the source folder on the Windows machine, and then the file should appear in the target directory on the Linux machine
Make the File Share Permanent
Tip: Mounting the share into the /etc/fstab file makes the file share permanent, meaning that upon reboot the file share will still be mounted. If you do not execute the mount in this location, once the machine is rebooted the mount will be disconnected.
Tip: The following is an example of the file syntax: <exporting server hostname>:<exported Folder Name> <Target Folder Name> <Systems Type or Driver> 0 2
.Additionally, the following is the same entry with sample values: APMConnectServer1.company.com:/exportedFolder /opt/mountpointFolder nfs 0 2
To unmount the share in the directory created in step 8, execute the command umount.
For example if the original mount directory was /opt/LinuxFileShare, then execute the command unmount /opt/LinuxFileShare.
Tip: You must unmount the share from the original location for it to be mounted from the /etc/fstab file.
Tip: Executing the command will read the configuration from the /etc/fstab file, and then preform the mount operation based on the parameters in the file.
The new mount point added to the /etc/fstab file appears in the list.
At this point, you can place a file on the APM Connect server in the shared folder, and it will be transferred to the shared Linux folder.
What's Next?
Copyright © 2018 General Electric Company. All rights reserved.