Search
The Best Hyperconverged Infrastructure (HCI) for Enterprise ROBO, SMB & Edge

Changing the LUN number

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.

Hey! Looking to deploy a new, easy-to-manage, and cost-effective hyperconverged infrastructure?
Alex Bykovskyi
Alex BykovskyiStarWind Virtual HCI Appliance Product Manager
Well, we can help you with this one! Building a new hyperconverged environment is a breeze with StarWind Virtual HCI Appliance (VHCA). It’s a complete hyperconverged infrastructure solution that combines hypervisor (vSphere, Hyper-V, Proxmox, or our custom version of KVM), software-defined storage (StarWind VSAN), and streamlined management tools. Interested in diving deeper into VHCA’s capabilities and features? Book your StarWind Virtual HCI Appliance demo today!