Moving a Mount Target Between Compartments

Move File Storage mount targets from one compartment to another.

When you move a mount target to a new compartment, its associated export set and exports move with it. After you move the mount target to the new compartment, inherent policies apply immediately and affect access to the mount target, export set, and exports through the Console. Moving these resources doesn't affect access to file systems and snapshots from mounted instances. For more information, see Managing Compartments.

    1. Open the navigation menu and click Storage. Under File Storage, click Mount Targets.
    2. In the List scope section, under Compartment, select a compartment.
    3. Find the mount target in the list, click the the Actions menu (Actions Menu), and then click Move resource.
    4. Choose the destination compartment from the list.
    5. Click Move resource.
  • Use the fs mount-target change-compartment command and required parameters to move a mount target to another compartment:

    
    oci fs mount-target change-compartment --mount-target-id <mount_target_OCID> --compartment-id <destination_compartment_OCID>

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the ChangeMountTargetCompartment operation to move a mount target to another compartment.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.