-
Notifications
You must be signed in to change notification settings - Fork 9
targetclilib
PhilippeLeroux edited this page Oct 9, 2018
·
5 revisions
-
targetclilib.sh last modified : 30/09/2018
-
Public functions
- Public function set_targetcli_default_settings
- Public function reset
- Public function set_working_vg
- Public function check_params
- Public function create_iscsi_initiator
- Public function delete_iscsi_initiator
- Public function get_lv_name
- Public function get_disk_name
- Public function create_backstore
- Public function delete_backstore
- Public function create_lun
- Public function delete_backstore_range
- Public function create_backstore_range
- Public function create_lun_range
-
Public functions
- Publics functions : 14
- Undocumented functions : 0
- Privates functions : 0
set default setting of targetclif
Reset all config and call set_targetcli_default_settings
$1 name of VG to used.
$1 function name
$2 number parameters required for function
$3 number of parameters for function
exit 1 if $2 -ne $3
Create iSCSI initiator.
$1 initiator name
$2 portal
$3 userid
$4 password
delete initiator $1.
Print to stdout LV name
$1 LUN number
$2 LV prefix
$1 LUN number
$2 LV prefix
Print to stdout disk name.
Now just call get_lv_name else name is too long.
Create a LUN to the backstore.
$1 LUN number
$2 LV prefix
Delete a LUN from the backstore.
$1 #LUN
$2 LV prefix
Create a LUN
$1 LUN number
$2 initiator name
$3 LV prefix
Delete from the backstore all LUN in range [$1,$2]
$1 First LUN number.
$2 Last LUN number.
Create LUN in the backstore
$1 First LUN number.
$2 Last LUN number.
$3 LV prefix
Create LUNs
$1 First LUN number.
$2 Last LUN number.
$3 l_initiator_name
$4 LV prefix