Identifying an ISCSI drive by target ID (and showing it's drive size)

6 views
Skip to first unread message

Mike Leone

unread,
Apr 7, 2026, 4:45:43 PMApr 7
to NTPowershell Mailing List
So I have a cluster that uses iSCSI for its shared volume. Now, I don't need one of those disks. So I removed it from a clustered role, that sent it back to Available Storage, and from there I just removed it from the cluster. All good so far.

The drive is showing as OFFLINE in Disk Management on the active node, which is what I expected.

Now, thos, I want to disconnect that specific drive in the iSCSI Initiator panel. Once I do that (for all nodes in the cluster, I can then go an delete it from the Nutanix Volume Group that is presenting it, and it'll just be history at that point ...

But how do I determine which iSCSI target ID it is?

Lemme re-phrase .. on the active node, I can make an *educated* guess that it is the one that doesn't show any drive letters in "Volume Path Names", when I click on "Devices" in the Initiator.
(tg2, in my case)

That should hold for all the nodes, I'm guessing.

But I don't wanna GUESS! LOL

So how can I tell for sure? I tried to use Powershell and do an Get-IscsiVirtualDisk, but that showed nothing, possibly because it's a cluster and not a stand alone host.

So does anyone know what I would need to do, to get a list of the iSCSI drives in my cluster (with their drive sizes)? If I see the size, I will know it's the right device. Then if it also shows the target ID, I can be certain which one to disconnect, and not break anything on the cluster ...

I've tried searching, but all the examples are standalone hosts, and don't return anything on my cluster (altho I may not be querying correctly).

Anybody?

PS C:\PHA Scripts> get-disk

Number Friendly Name Serial Number                    HealthStatus         OperationalStatus      Total Size Partition
                                                                                                             Style
------ ------------- -------------                    ------------         -----------------      ---------- ----------

3      NUTANIX VDISK NFS_8_0_7502834_26177177_54d1... Healthy              Offline                   1.95 TB GPT

PS C:\PHA Scripts> get-iscsisession

AuthenticationType      : NONE
InitiatorInstanceName   : ROOT\ISCSIPRT\0000_0
InitiatorNodeAddress    : iqn.1991-05.com.microsoft:dctrfil004.wrk.ads.pha.phila.gov
InitiatorPortalAddress  : 0.0.0.0
InitiatorSideIdentifier : 400001370001
IsConnected             : True
IsDataDigest            : False
IsDiscovered            : True
IsHeaderDigest          : False
IsPersistent            : True
NumberOfConnections     : 1
SessionIdentifier       : ffffe50303c8f010-4000013700000003
TargetNodeAddress       : iqn.2010-06.com.nutanix:ntsan1andsan2-b10d9f3d-7e90-4032-b1f3-a20019467526-tgt2
TargetSideIdentifier    : 0700
PSComputerName          :

I want to disconnect disk #3, the offline one. But I can't figure out how to get the target of THAT disk out of iSCSI using PS. I'm assuming that it's that particular iSCSISessoin, since that SessionIdentifier matches the properties of the entry in the Initiator that has no drive letter.

(mind you, on the passive nodes, there will be NO drive letters of any kind - obviously; the disks aren't mounted there - so I can't go by drive letters in those initiators, hence trying to ID the other ways).

Hints, anyone?

--

Mike. Leone, <mailto:tur...@mike-leone.com>

PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Photo Gallery: <http://www.flickr.com/photos/mikeleonephotos>

Reply all
Reply to author
Forward
0 new messages