iscsi.extent.create¶
Create an iSCSI Extent.
When type is set to FILE, attribute filesize is used and it represents number of bytes. filesize if not zero should be a multiple of blocksize. path is a required attribute with type set as FILE.
With type being set to DISK, a valid ZFS volume is required.
insecure_tpc when enabled allows an initiator to bypass normal access control and access any scannable target. This allows xcopy operations otherwise blocked by access control.
xen is a boolean value which is set to true if Xen is being used as the iSCSI initiator.
ro when set to true prevents the initiator from writing to this LUN.
No Additional Items
Tuple Validation
Parameter 1: iscsi_extent_create
iscsi_extent_create
Type: objectiSCSI extent configuration data for creation.
No Additional PropertiesName
Type: stringName of the iSCSI extent.
Must be at least 1
characters long
Must be at most 64
characters long
Type
Type: enum (of string) Default: "DISK"Type of the extent storage backend.
Must be one of:
- "DISK"
- "FILE"
Disk
Default: nullDisk device to use for the extent or null
if using a file.
Serial
Default: nullSerial number for the extent or null
to auto-generate.
Path
Default: nullFile path for file-based extents or null
if using a disk.
Filesize
Default: "0"Size of the file-based extent in bytes.
Blocksize
Type: enum (of integer) Default: 512Block size for the extent in bytes.
Must be one of:
- 512
- 1024
- 2048
- 4096
Pblocksize
Type: boolean Default: falseWhether to use physical block size reporting.
Avail Threshold
Default: nullAvailable space threshold percentage or null
to disable.
Value must be greater or equal to 1
and lesser or equal to 99
Comment
Type: string Default: ""Optional comment describing the extent.
Insecure Tpc
Type: boolean Default: trueWhether to enable insecure Third Party Copy (TPC) operations.
Xen
Type: boolean Default: falseWhether to enable Xen compatibility mode.
Rpm
Type: enum (of string) Default: "SSD"Reported RPM type for the extent.
Must be one of:
- "UNKNOWN"
- "SSD"
- "5400"
- "7200"
- "10000"
- "15000"
Ro
Type: boolean Default: falseWhether the extent is read-only.
Enabled
Type: boolean Default: trueWhether the extent is enabled and available for use.
Product Id
Default: nullProduct ID string for the extent or null
for default.
Must be at least 1
characters long
Must be at most 16
characters long
IscsiExtentEntry
Type: objectThe created iSCSI extent configuration.
No Additional PropertiesId
Type: integerUnique identifier for the iSCSI extent.
Name
Type: stringName of the iSCSI extent.
Must be at least 1
characters long
Must be at most 64
characters long
Type
Type: enum (of string) Default: "DISK"Type of the extent storage backend.
Must be one of:
- "DISK"
- "FILE"
Disk
Default: nullDisk device to use for the extent or null
if using a file.
Serial
Default: nullSerial number for the extent or null
to auto-generate.
Path
Default: nullFile path for file-based extents or null
if using a disk.
Filesize
Default: "0"Size of the file-based extent in bytes.
Blocksize
Type: enum (of integer) Default: 512Block size for the extent in bytes.
Must be one of:
- 512
- 1024
- 2048
- 4096
Pblocksize
Type: boolean Default: falseWhether to use physical block size reporting.
Avail Threshold
Default: nullAvailable space threshold percentage or null
to disable.
Value must be greater or equal to 1
and lesser or equal to 99
Comment
Type: string Default: ""Optional comment describing the extent.
Naa
Type: stringNetwork Address Authority (NAA) identifier for the extent.
Must be at most 34
characters long
Insecure Tpc
Type: boolean Default: trueWhether to enable insecure Third Party Copy (TPC) operations.
Xen
Type: boolean Default: falseWhether to enable Xen compatibility mode.
Rpm
Type: enum (of string) Default: "SSD"Reported RPM type for the extent.
Must be one of:
- "UNKNOWN"
- "SSD"
- "5400"
- "7200"
- "10000"
- "15000"
Ro
Type: boolean Default: falseWhether the extent is read-only.
Enabled
Type: boolean Default: trueWhether the extent is enabled and available for use.
Vendor
Type: stringVendor string reported by the extent.
Product Id
Default: nullProduct ID string for the extent or null
for default.
Must be at least 1
characters long
Must be at most 16
characters long
Locked
Read-only value indicating whether the iscsi extent is located on a locked dataset.
true
: The extent is in a locked dataset.false
: The extent is not in a locked dataset.null
: Lock status is not available because path locking information was not requested.
Required roles: SHARING_ISCSI_EXTENT_WRITE