Changing the LUN number
- Troubleshooting
- April 30, 2015
- Download as PDF
Description
This article explains how to change the LUN number for a stand-alone, non-HA image file device in StarWind Virtual SAN by editing the StarWind configuration file.
Resolution
Device name cannot be changed since it goes directly from StarWind source code and exist there as a constant value. Editing of the LUN number is available for stand-alone, non-HA basic image file device only.
Below is an instruction to change LUN number for non-HA device:
Open StarWind.cfg file that you can find in the StarWind installation folder.
Find the string of target you are interested in. For example:
<target name="iqn.2008-08.com.starwindsoftware:sw-dev-pc5.starwind.local-storage3" devices="imagefile2,RamDrive1" alias="Storage3" clustered="Yes"/>
Add LUN numbers after devices names:
<target name="iqn.2008-08.com.starwindsoftware:sw-dev-pc5.starwind.local-storage3" devices="imagefile2:5,RamDrive1:15" alias="Storage3" clustered="Yes"/>
Restart StarWind service.
Conclusion
LUN numbers can be modified only for non-HA devices by updating the StarWind.cfg file and restarting the StarWind service; device names themselves cannot be changed.