Adding a LUN
Posted: Mon Jan 08, 2018 10:30 pm
I'm using the free version of Starwind virtual SAN. I wanted to add a second LUN to my 2 node ESXi since I have plenty of storage on my system. I want in and added a second drive to each VM. Then I went to add in the new storage and I made a mistake. I tried to use CreateImageFile.ps1 and I accidentally used the alias for node 2's iSCSI target. How do I remove the new LUN I tried to create and put the target back on node 2 and then how do I add a second LUN properly?
I have 2 VMs set up with the same drive letters. I:\LUN1\LUN1img.img is the original LUN with currently running workloads. J:\LUN2\img2.img is the new LUN I was trying to create.
Here is the output of enumDeviceTargets:
PS C:\scripts> .\enumDevicesTargets.ps1
Targets:
Name : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha2
Id : 0x000000DE980DFB80
Alias : hmoha2
IsClustered : True
Devices : System.__ComObject
Permissions : System.__ComObject
Type :
Name : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha1
Id : 0x000000DEEE69BE80
Alias : hmoha1
IsClustered : True
Devices : System.__ComObject
Permissions : System.__ComObject
Type :
Devices:
Name : HAImage1
DeviceType : HA Image
DeviceId : 0x000000DEEE662C00
File : I:\LUN1\LUN1Img_HA.swdsk
TargetName : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha1
TargetId : 0x000000DEEE69BE80
Size : 2002779111424
CacheMode : wb
CacheSize : 64
CacheBlockExpiryPeriod : 5000
Exists : True
DeviceLUN : 0
IsSnapshotsSupported : False
Snapshots :
SectorSize : 512
Partners : System.__ComObject
SynchronizationChannels : System.__ComObject
HeartbeatChannels : System.__ComObject
SyncStatus : 1
SyncTrafficShare : 50
Name : ImageFile2
DeviceType : Image file
DeviceId : 0x000000DEFA7D2C40
File : My Computer\j\LUN2\img2.img
TargetName : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha2
TargetId : 0x000000DE980DFB80
Size : 2002779111424
CacheMode : none
CacheSize : empty
CacheBlockExpiryPeriod : empty
Exists : True
DeviceLUN : 0
IsSnapshotsSupported : False
Snapshots :
SectorSize : 512
Name : imagefile1
DeviceType : Image file
DeviceId : 0x000000DEEE639400
File : I:\LUN1\LUN1Img.img
TargetName : empty
TargetId : empty
Size : 2002779111424
CacheMode : wb
CacheSize : 64
CacheBlockExpiryPeriod : 5000
Exists : True
DeviceLUN :
IsSnapshotsSupported : False
Snapshots :
SectorSize : 512
Thank you!
I have 2 VMs set up with the same drive letters. I:\LUN1\LUN1img.img is the original LUN with currently running workloads. J:\LUN2\img2.img is the new LUN I was trying to create.
Here is the output of enumDeviceTargets:
PS C:\scripts> .\enumDevicesTargets.ps1
Targets:
Name : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha2
Id : 0x000000DE980DFB80
Alias : hmoha2
IsClustered : True
Devices : System.__ComObject
Permissions : System.__ComObject
Type :
Name : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha1
Id : 0x000000DEEE69BE80
Alias : hmoha1
IsClustered : True
Devices : System.__ComObject
Permissions : System.__ComObject
Type :
Devices:
Name : HAImage1
DeviceType : HA Image
DeviceId : 0x000000DEEE662C00
File : I:\LUN1\LUN1Img_HA.swdsk
TargetName : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha1
TargetId : 0x000000DEEE69BE80
Size : 2002779111424
CacheMode : wb
CacheSize : 64
CacheBlockExpiryPeriod : 5000
Exists : True
DeviceLUN : 0
IsSnapshotsSupported : False
Snapshots :
SectorSize : 512
Partners : System.__ComObject
SynchronizationChannels : System.__ComObject
HeartbeatChannels : System.__ComObject
SyncStatus : 1
SyncTrafficShare : 50
Name : ImageFile2
DeviceType : Image file
DeviceId : 0x000000DEFA7D2C40
File : My Computer\j\LUN2\img2.img
TargetName : iqn.2008-08.com.starwindsoftware:127.0.0.1-hmoha2
TargetId : 0x000000DE980DFB80
Size : 2002779111424
CacheMode : none
CacheSize : empty
CacheBlockExpiryPeriod : empty
Exists : True
DeviceLUN : 0
IsSnapshotsSupported : False
Snapshots :
SectorSize : 512
Name : imagefile1
DeviceType : Image file
DeviceId : 0x000000DEEE639400
File : I:\LUN1\LUN1Img.img
TargetName : empty
TargetId : empty
Size : 2002779111424
CacheMode : wb
CacheSize : 64
CacheBlockExpiryPeriod : 5000
Exists : True
DeviceLUN :
IsSnapshotsSupported : False
Snapshots :
SectorSize : 512
Thank you!