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.
- On the File Systems list page, find the file system that you want to work with. If you need help finding the list page or the file system, see Listing File Systems.
- From the the for the file system, select Move resource.
- Choose the destination compartment from the list.
- Select 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.