Preparing File System Mount or Unmount on Windows Instance
Perform the following prerequisites before configuring the DR Protection Group with Windows instance to mount or unmount the file system.
Run the following Powershell command with
Run As Administrator:Add-LocalGroupMember -Group "Administrators" -Member "NT SERVICE\OCARUN" | Restart-Service -Name OCARUN -ForceNote:
Restart the instance to enable administrator permission on the
OCARUNuser. TheOCARUNuser should have Administrator rights.Verify that the
OCARUNuser has all administrator permission by running the script below on the instanceRun Command Pluginwhich should returnTruerights.#ps1([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)Note:
To successfully unmount the file system through the OCI Full Stack DR service, mount the file system with the SYSTEM user, not with the logged-in/other users.
- To successfully mount the file system on a newly launched movable or existing non-movable compute instance, create a mount command script file at a specific location.
Create a placeholder folder
C:\ProgramData\Network File Systemto keep the script filemount_nfs.cmdwhich contains the mount command with option and mount target details as follows:mount -o sec=sys 10.x.x.x:/fs-export-path X: