Updating a File System
On Compute Cloud@Customer, you can change some file system parameters.
You can change the file system name and quota. You can't change the database record size or the backing store pool type assignment (default or high performance).
To reduce the quota for the file system, first check the current file system usage. The quota can't be set smaller than the current usage. Current usage includes the data in the file system and all snapshots created under the file system. To check the current usage, check the value of Metered Bytes on the file system details page using the Compute
Cloud@Customer Console or metered-bytes
in the file system get
output using the CLI.
The Metered Bytes value can take up to 15 minutes to refresh on a system with active I/O.
Fifteen minutes after setting a lower quota, compare the quota and metered bytes values for the file system. Check the value of quota in the OraclePCA defined tag on the Tags tab on the file system details page in the Compute
Cloud@Customer Console or in defined-tags
in the file system get
output in the CLI. If the quota is less than metered bytes, then the quota isn't enforced and you should set a higher quota.
Avoid entering confidential information.
-
In the Compute Cloud@Customer Console navigation menu, click File Storage, then click File Systems.
-
At the top of the page, select the compartment that contains the file system.
-
For the file system you want to update, click the Actions menu (
), then click Edit.
-
Enter a new name in the name field, or enter a new quota in the OraclePCA:quota defined tag as described in Creating a File System.
-
Click Save Changes.
-
Use the oci fs file-system update command and required parameters to update the specified file system’s information. You can use this operation to rename a file system.
oci fs file-system update --file-system-id <file_system_OCID> --display-name <new_file-system_name> [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Procedure
-
Get the OCID of the file system that you want to update:
oci fs file-system list
-
Specify a new name for the file system, or set a new quota in the OraclePCA:quota defined tag as described in Creating a File System.
-
Run the update file system command.
Example:
oci fs file-system update --file-system-id ocid1.filesystem.unique_ID --defined-tags '{"OraclePCA":{"quota":500000}}'
-
Use the UpdateFileSystem operation to update the specified file system’s information. You can use this operation to rename a file system.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.