JM2K69
Dabbler
- Joined
- Feb 17, 2019
- Messages
- 22
Hi I create a Powershell module to configure Freenas with API I have one problem to create an extent with a ZVOL This picture show to Extent the first Extent with the ID 1 is create with the Web GUI and the second with the API and my module.
View attachment 28502
When I look the documentation for the API freenas Documentation create a extent using zvol. There is an example :
{
"iscsi_target_extent_type": "Disk",
"iscsi_target_extent_name": "zvolextent",
"iscsi_target_extent_disk": "zvol/tank/zvolextent"
}
My extent is successfully created but when I open the Web GUI My Extent don't have a device configured for my Extent name demo2, and in the documentation All setting are define :
JSON Parameters:
View attachment 28502
When I look the documentation for the API freenas Documentation create a extent using zvol. There is an example :
{
"iscsi_target_extent_type": "Disk",
"iscsi_target_extent_name": "zvolextent",
"iscsi_target_extent_disk": "zvol/tank/zvolextent"
}
My extent is successfully created but when I open the Web GUI My Extent don't have a device configured for my Extent name demo2, and in the documentation All setting are define :
JSON Parameters:
- iscsi_target_extent_name (string) – identifier of the extent
- iscsi_target_extent_type (string) – File, Disk
- iscsi_target_extent_path (string) – path to the extent (for File type)
- iscsi_target_extent_disk (string) – path to the disk or zvol (for Disk type) e.g. “zvol/tank/zvol1”, “ada1”
- iscsi_target_extent_filesize (string) – size of extent, 0 means auto, a raw number is bytes, or suffix with KB, MB, TB for convenience
- iscsi_target_extent_insecure_tpc (boolean) – allow initiators to xcopy without authenticating to foreign targets
- iscsi_target_extent_xen (boolean) – Xen initiator compat mode
- iscsi_target_extent_comment (string) – user description
- iscsi_target_extent_avail_threshold (integer) – Remaining dataset/zvol capacity warning threshold
- iscsi_target_extent_blocksize (integer) – Logical Block Size
- iscsi_target_extent_pblocksize (boolean) – Disable Physical Block Size Reporting
- iscsi_target_extent_rpm (string) – Unknown, SSD, 5400, 7200, 10000, 15000
- iscsi_target_extent_serial (string) – Serial number for the logical unit
- iscsi_target_extent_ro (boolean) – Read-only extent