AppSync: Mounted Red Hat Linux File Systems Are Found to Be Unmounted After AppSync Successfully Mounts Them
Summary: Mounted Red Hat Linux file system is found to be unmounted after AppSync successfully mounts them.
Symptoms
File Systems mounted by AppSync are found to be unmounted after AppSync successfully mounts them.
The OS is unmounting the file system per External link: https://bugzilla.redhat.com/show_bug.cgi?id=1494014
No errors are found in any AppSync logs.
AppSync successfully runs.
The Red Hat /var/log/messages file shows the following:
Apr 28 10:46:41 hostname systemd: Unit oradata1-XXX-YYYY.mount is bound to inactive unit dev-aps_oradata1vg_c6dae61a7413-YYYYY.device. Stopping, too. Apr 28 10:46:41 hostname systemd: Unmounting /oradata1/XXX/YYYY... Apr 28 10:46:41 hostname kernel: XFS (dm-9): Unmounting Filesystem Apr 28 10:46:41 hostname systemd: Unmounted /oradata1/ XXX/YYYY... Apr 28 10:58:04 hostname kernel: XFS (dm-9): Ending clean mount Apr 28 10:58:04 hostname systemd: Unit oradata1-XXX-YYYYY.mount is bound to inactive unit dev-aps_oradata1vg_c6dae61a7413-YYYYY.device. Stopping, too. Apr 28 10:58:04 hostname systemd: Unmounting /oradata1/ XXX/YYYY... Apr 28 10:58:04 hostname kernel: XFS (dm-9): Unmounting Filesystem Apr 28 10:58:04 hostname systemd: Unmounted /oradata1/ XXX/YYYY.
Cause
This is due to a Red Hat Enterprise Linux bug, more details can be found here:
https://bugzilla.redhat.com/show_bug.cgi?id=1494014
Resolution
To keep the copies mounted, run the following command in the mount host instantly after mount:
SystemCtl daemon reload
This is a manual process. Now AppSync code embedded this in AppSync 4.2 onwards to automate the run of the following by adjusting an AppSync setting on the mount host to true.
SystemCtl Dameon reload run
Upgrade to AppSync 4.2 if needed and follow the procedures noted in the AppSync 4.2 User Guide troubleshooting section, page 295.
This process is also documented in the 4.5 User Guide page 351.
This procedure should be done as the user that is used while adding the UNIX host to the AppSync.
The procedure in the above noted manual states:
You must set the ./acp -c systemctlDaemonReload="TRUE" variable through acp option in the Linux agent server from the AppSync install directory. To set the variable in the Linux agent server, use the settings file ./acp -c systemctlDaemonReload="TRUE".
To confirm the setting, run "./acp -v"
Per the same Documentation:
To confirm the setting, run "./acp -v" from the install directory or open the /root/.appsync/settings.xml file.
For sudo user, the location for the settings.xml file is /home/sudouser/.appsync/settings.xml.