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. On the Mount Targets list page, find the mount target that you want to work with. If you need help finding the list page or the mount target, see Listing Mount Targets.
    2. From the Actions menu (Actions Menu) for the mount target, select Move resource.
    3. Choose the destination compartment from the list.
    4. Select 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 parameters and values for CLI commands, see the CLI Command 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.