Moving a File System Between Compartments

Move File Storage file systems from one compartment to another.

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

The file system is moved immediately. Moving a file system doesn't affect mounted instances.

    1. Open the navigation menu and click Storage. Under File Storage, click File Systems.
    2. In the List scope section, under Compartment, select a compartment.
    3. Find the file system 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 file-system change-compartment command and required parameters to move a file system to another compartment:

    
    oci fs file-system change-compartment --file-system-id <file_system_OCID> --compartment-id <destination_compartment_OCID>

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangeFileSystemCompartment operation to move a file system 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.