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 for a reliable, high-performance, and cost-effective shared storage solution for your production cluster?
Dmytro Malynka
Dmytro MalynkaStarWind Virtual SAN Product Manager
We’ve got you covered! StarWind Virtual SAN (VSAN) is specifically designed to provide highly-available shared storage for Hyper-V, vSphere, and KVM clusters. With StarWind VSAN, simplicity is key: utilize the local disks of your hypervisor hosts and create shared HA storage for your VMs. Interested in learning more? Book a short StarWind VSAN demo now and see it in action!