Table Of Contents

Previous topic

iscsi.extent

Next topic

iscsi.extent.delete

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.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: iscsi_extent_create

iscsi_extent_create

Type: object
No Additional Properties

Name

Type: string

Must be at least 1 characters long

Must be at most 64 characters long

Type

Type: enum (of string) Default: "DISK"
Must be one of:
  • "DISK"
  • "FILE"

Disk

Default: null

Type: string
Type: null

Serial

Default: null

Type: string
Type: null

Path

Default: null

Type: string
Type: null

Filesize

Default: "0"

Type: string
Type: integer

Blocksize

Type: enum (of integer) Default: 512
Must be one of:
  • 512
  • 1024
  • 2048
  • 4096

Pblocksize

Type: boolean Default: false

Avail Threshold

Default: null

Type: integer

Value must be greater or equal to 1 and lesser or equal to 99

Type: null

Comment

Type: string Default: ""

Insecure Tpc

Type: boolean Default: true

Xen

Type: boolean Default: false

Rpm

Type: enum (of string) Default: "SSD"
Must be one of:
  • "UNKNOWN"
  • "SSD"
  • "5400"
  • "7200"
  • "10000"
  • "15000"

Ro

Type: boolean Default: false

Enabled

Type: boolean Default: true

IscsiExtentEntry

Type: object
No Additional Properties

Id

Type: integer

Name

Type: string

Must be at least 1 characters long

Must be at most 64 characters long

Type

Type: enum (of string) Default: "DISK"
Must be one of:
  • "DISK"
  • "FILE"

Disk

Default: null

Type: string
Type: null

Serial

Default: null

Type: string
Type: null

Path

Default: null

Type: string
Type: null

Filesize

Default: "0"

Type: string
Type: integer

Blocksize

Type: enum (of integer) Default: 512
Must be one of:
  • 512
  • 1024
  • 2048
  • 4096

Pblocksize

Type: boolean Default: false

Avail Threshold

Default: null

Type: integer

Value must be greater or equal to 1 and lesser or equal to 99

Type: null

Comment

Type: string Default: ""

Naa

Type: string

Must be at most 34 characters long

Insecure Tpc

Type: boolean Default: true

Xen

Type: boolean Default: false

Rpm

Type: enum (of string) Default: "SSD"
Must be one of:
  • "UNKNOWN"
  • "SSD"
  • "5400"
  • "7200"
  • "10000"
  • "15000"

Ro

Type: boolean Default: false

Enabled

Type: boolean Default: true

Vendor

Type: string

Locked


Type: boolean
Type: null


Required roles: