create_file_system
¶
create_file_system(
*,
config_overrides: Optional[FSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
file_system_type: Optional[FileSystemType] = None,
storage_capacity: Optional[StorageCapacity] = None,
storage_type: Optional[StorageType] = None,
subnet_ids: Optional[SubnetIds] = None,
security_group_ids: Optional[SecurityGroupIds] = None,
tags: Optional[Tags] = None,
kms_key_id: Optional[KmsKeyId] = None,
windows_configuration: Optional[CreateFileSystemWindowsConfiguration] = None,
lustre_configuration: Optional[CreateFileSystemLustreConfiguration] = None,
ontap_configuration: Optional[CreateFileSystemOntapConfiguration] = None,
file_system_type_version: Optional[FileSystemTypeVersion] = None,
open_zfs_configuration: Optional[CreateFileSystemOpenZFSConfiguration] = None,
network_type: Optional[NetworkType] = None,
) -> CreateFileSystemResponse
Creates a new, empty Amazon FSx file system. You can create the following supported Amazon FSx file systems using the CreateFileSystem API operation:
-
Amazon FSx for Lustre
-
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
This operation requires a client request token in the request that Amazon FSx uses to ensure idempotent creation. This means that calling the operation multiple times with the same client request token has no effect. By using the idempotent operation, you can retry a CreateFileSystem operation without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives success as long as the parameters are the same.
If a file system with the specified client request token exists and the parameters match, CreateFileSystem returns the description of the existing file system. If a file system with the specified client request token exists and the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, CreateFileSystem does the following:
-
Creates a new, empty Amazon FSx file system with an assigned ID, and an initial lifecycle state of
CREATING. -
Returns the description of the file system in JSON format.
The CreateFileSystem call returns while the file system's lifecycle state is still CREATING. You can check the file-system creation status by calling the DescribeFileSystems operation, which returns the file system state along with other information.
Parameters:
-
client_request_token(Optional[ClientRequestToken], default:None) –A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
-
file_system_type(Optional[FileSystemType], default:None) –The type of Amazon FSx file system to create. Valid values are
WINDOWS,LUSTRE,ONTAP, andOPENZFS. -
storage_capacity(Optional[StorageCapacity], default:None) –Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).
FSx for Lustre file systems - The amount of storage capacity that you can configure depends on the value that you set for
StorageTypeand the LustreDeploymentType, as follows:-
For
SCRATCH_2,PERSISTENT_2, andPERSISTENT_1deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. -
For
PERSISTENT_1HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems. -
For
SCRATCH_1deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
FSx for ONTAP file systems - The amount of storage capacity that you can configure depends on the value of the
HAPairsproperty. The minimum value is calculated as 1,024 *HAPairsand the maximum is calculated as 524,288 *HAPairs.FSx for OpenZFS file systems - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).
FSx for Windows File Server file systems - The amount of storage capacity that you can configure depends on the value that you set for
StorageTypeas follows:-
For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).
-
For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).
-
-
storage_type(Optional[StorageType], default:None) –Sets the storage class for the file system that you're creating. Valid values are
SSD,HDD, andINTELLIGENT_TIERING.-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types. -
Set to
HDDto use hard disk drive storage, which is supported onSINGLE_AZ_2andMULTI_AZ_1Windows file system deployment types, and onPERSISTENT_1Lustre file system deployment types. -
Set to
INTELLIGENT_TIERINGto use fully elastic, intelligently-tiered storage. Intelligent-Tiering is only available for OpenZFS file systems with the Multi-AZ deployment type and for Lustre file systems with the Persistent_2 deployment type.
Default value is
SSD. For more information, see Storage type options in the FSx for Windows File Server User Guide, FSx for Lustre storage classes in the FSx for Lustre User Guide, and Working with Intelligent-Tiering in the Amazon FSx for OpenZFS User Guide. -
-
subnet_ids(Optional[SubnetIds], default:None) –Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP
MULTI_AZ_1deployment types,provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using theWindowsConfiguration > PreferredSubnetIDorOntapConfiguration > PreferredSubnetIDproperties. For more information about Multi-AZ file system configuration, see Availability and durability: Single-AZ and Multi-AZ file systems in the Amazon FSx for Windows User Guide and Availability and durability in the Amazon FSx for ONTAP User Guide.For Windows
SINGLE_AZ_1andSINGLE_AZ_2and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone. -
security_group_ids(Optional[SecurityGroupIds], default:None) –A list of IDs specifying the security groups to apply to all network interfaces created for file system access. This list isn't returned in later requests to describe the file system.
You must specify a security group if you are creating a Multi-AZ FSx for ONTAP file system in a VPC subnet that has been shared with you.
-
tags(Optional[Tags], default:None) –The tags to apply to the file system that's being created. The key value of the
Nametag appears in the console as the file system name. -
windows_configuration(Optional[CreateFileSystemWindowsConfiguration], default:None) –The Microsoft Windows configuration for the file system that's being created.
-
file_system_type_version(Optional[FileSystemTypeVersion], default:None) –For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are
2.10,2.12, and2.15:-
2.10is supported by the Scratch and Persistent_1 Lustre deployment types. -
2.12is supported by all Lustre deployment types, except forPERSISTENT_2with a metadata configuration mode. -
2.15is supported by all Lustre deployment types and is recommended for all new file systems.
Default value is
2.10, except for the following deployments:-
Default value is
2.12whenDeploymentTypeis set toPERSISTENT_2without a metadata configuration mode. -
Default value is
2.15whenDeploymentTypeis set toPERSISTENT_2with a metadata configuration mode.
-
-
open_zfs_configuration(Optional[CreateFileSystemOpenZFSConfiguration], default:None) –The OpenZFS configuration for the file system that's being created.
-
network_type(Optional[NetworkType], default:None) –The network type of the Amazon FSx file system that you are creating. Valid values are
IPV4(which supports IPv4 only) andDUAL(for dual-stack mode, which supports both IPv4 and IPv6). The default isIPV4. Supported for FSx for OpenZFS, FSx for ONTAP, and FSx for Windows File Server file systems.
Raises:
-
ActiveDirectoryError–An Active Directory error.
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
InvalidExportPath–The path provided for data repository export isn't valid.
-
InvalidImportPath–The path provided for data repository import isn't valid.
-
InvalidNetworkSettings–One or more network settings specified in the request are invalid.
-
InvalidPerUnitStorageThroughput–An invalid value for
PerUnitStorageThroughputwas provided. Please create your file system again, using a valid value. -
MissingFileSystemConfiguration–A file system configuration is required for this operation.
-
ServiceLimitExceeded–An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/f_sx.py
1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 | |