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.

  1. Run the following Powershell command with Run As Administrator:
    Add-LocalGroupMember -Group "Administrators" -Member "NT SERVICE\OCARUN" | Restart-Service -Name OCARUN -Force
    Note

    Restart the instance to enable administrator permission on the OCARUN user. The OCARUN user should have Administrator rights.
  2. Verify that the OCARUN user has all administrator permission by running the script below on the instance Run Command Plugin which should return True rights.

    #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.
  3. 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 System to keep the script file mount_nfs.cmd which contains the mount command with option and mount target details as follows:
    mount -o sec=sys 10.x.x.x:/fs-export-path X: