Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Issue with adding iSCSI disk to new VMware host

Our VMware vSphere environment is getting ready to add new host boxes and I need to be able to present the same iscsi disks we have shared from Petasan to these new hosts.

The web interface requires shutting down the iscsi disk in order to edit the list of available IQN's. This would force me to take about 50 vm's offline to add a new host box.

Is there a way to add IQN's to currently configured iSCSI disks without taking them offline first.

 

In version 2.7 we support editing disk data for running iSCSI disks, in 2.6 you need to stop it first in the ui.

in 2.6 you can change the data manually on running iSCSI disks via the utility: /opt/petasan/scripts/util/disk_meta.py

disk_meta.py read --image image-##### --pool rbd > diskdata.json
disk_meta.py write --image image-##### --pool rbd --file diskdata.json

you need to edit the json config file and add the client acl under the "acl" field, it is comma separated string.

 

So I read the config using the disk_meta.py read… and this will write data out to a file called diskdata.json

I then edit that file with the new iqn, etc, and load it using the second version of the command..
But I am not sure what you mean with the image-####

How do I find this info?

 

Thanks,
Neil

 

this is the rbd image name, for disk 00001 the image name is image-00001

Thanks! That makes sense.

Neil

Edited - It finished….but i think i had a mistake in my command..

it lost information about the disk and it says it is detached.

Going to try with another test disk..

yeah… so it is important to not put a typo in the file you are reading in.. it just overwrote the disk info with nothing…

And then i accidentally overwrote the file with blank data by running the first command again.

Luckily I had made a copy of the original export and was able to re-write the disk meta info by running the command again with the correct file.

The test disk seems to be working just fine, so I appreciate your assistance in outlining the steps.

For anyone else trying to do this from the command line before the GUI is released, make sure you are very careful with the commands. Double check them before you run them!