How to apply this config in command line ?

unixpert

Member
Nov 4, 2011
22
0
21
Hello,

I am using proxmox 1.9. I have a config iscsi. In graphics mode, i can choice enable or disable iSCSI easily. Now, i want to enable or disable in command line. How to apply this config:

iscsi: Backupserver01
disable
portal 192.168.2.2
target iqn.2011-03.example.org.istgt:server01
content none


I wrote a bash shell script to enable or disable that configuration, but i can't apply this config.

Can you show me in this problem ? How to apply in command line.

Thank you so much. Thank Proxmox.
 
Hello,

My problem:

I write a bash shell script, run in the cronjob.
From 00h-04h, My script will auto mount iSCSI to backup. From 7h, My script will auto umount iSCSI.

I want to ask:
- After I removed the 'disable' line. How to refresh to apply that config ? Because after i remove that line, i use command: " fdisk -l", i don't see iscsi disk.

My english is very bad. Please help me.

Thanks & Best regards.
 
Hello,

I see this command: pvesm enable <STORAGE_ID>

Can you tell me about <STORAGE_ID> ?

Thank you.
@