Avatar of sunhux
sunhux
 asked on

Command / ways to check LUN is presented to ESXi host

We just set up a couple of ESXi 5.0 hosts & have the fibre channel
connections set up to the FC  switches.  EMC has zoned/presented
a LUN to the servers.

It's going to take quite a while before we have access to vCenter
as the network connectivity is pending approval which will take
quite a while.

Q1:
In the meantime, how can we verify the LUN is now visible /
accessible to the ESXi hosts?

Q2:
I've tried out the commands below & then issue UNIX command
"df" or "df -k" but don't see a new partition being mounted.  So
what did I miss? :

To rescan all HBAs:
esxcli storage core adapter rescan --all

To rescan a specific HBA:
esxcli storage core adapter rescan --adapter <vmkernel SCSI adapter name>
(in my hosts, it's vmhba1 & vmhba2 )

Where <vmkernel SCSI adapter name> is the vmhba# to be rescanned. To get a
list of all adapters, run the esxcli storage core adapter list command.


To search for new VMFS datastores, run this command:
vmkfstools -V
VMwareVirtualizationStorage

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
SOLUTION
bluedan

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
sunhux

ASKER
I've not really used/heard about VMware vSphere Client,
actually a newbie to VMware.  Besides, I'll need to figure
out how to configure the Blade HX5's BNT switch so that
I can connect up my laptop.  I'll try out Vmware vSphere
Client.

Btw, without vCenter, does VMware vSphere Client allows
us to create VMs in ESXi host?

Thanks guys, I'll try out & revert on Monday as no access
to client's site currently.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sunhux

ASKER
Thanks a lot Hanccocka.  2 more questions:

Q1:
is it possible to use  VMware vSphere Client to clone
VMs and after VMs have been created, assuming I don't
have approval to connect to Production network yet, can
I just plug in laptops to the built-in BNT Nortel switches
(that comes built-in with the IBM Bladecenter) for our
applications/programming chaps to Rdp to those VMs?
We're behind time, so need the apps guys to start work
soon as the approval to connect to production network
will take a while.

Q2:
from "esxcfg-mpath -l" outputs below, I suppose VMHBA2
& VMHBA1 can now detect the LUN?  Anyway to tell the
size of the LUN?  

I'll go with bluedan's suggestion to use VMware vSphere Client
later

=============================

/vmfs/volumes/51504c2e-5e2e1734-ff49-000af70d4520 # esxcfg-mpath -l
fc.20000090fa0b7d5f:10000090fa0b7d5f-fc.50000974c00c1000:50000974c00c111c-naa.60000970000294900772533030303243
   Runtime Name: vmhba2:C0:T0:L0
   Device: naa.60000970000294900772533030303243
   Device Display Name: EMC Fibre Channel Disk (naa.60000970000294900772533030303243)
   Adapter: vmhba2 Channel: 0 Target: 0 LUN: 0
   Adapter Identifier: fc.20000090fa0b7d5f:10000090fa0b7d5f
   Target Identifier: fc.50000974c00c1000:50000974c00c111c
   Plugin: NMP
   State: active
   Transport: fc
   Adapter Transport Details: WWNN: 20:00:00:90:fa:0b:7d:5f WWPN: 10:00:00:90:fa:0b:7d:5f
   Target Transport Details: WWNN: 50:00:09:74:c0:0c:10:00 WWPN: 50:00:09:74:c0:0c:11:1c
 
fc.20000090fa0b7d5f:10000090fa0b7d5f-fc.50000974c00c1000:50000974c00c111c-naa.60000970000294900772533030353232
   Runtime Name: vmhba2:C0:T0:L1
   Device: naa.60000970000294900772533030353232
   Device Display Name: EMC Fibre Channel Disk (naa.60000970000294900772533030353232)
   Adapter: vmhba2 Channel: 0 Target: 0 LUN: 1
   Adapter Identifier: fc.20000090fa0b7d5f:10000090fa0b7d5f
   Target Identifier: fc.50000974c00c1000:50000974c00c111c
   Plugin: NMP
   State: active
   Transport: fc
   Adapter Transport Details: WWNN: 20:00:00:90:fa:0b:7d:5f WWPN: 10:00:00:90:fa:0b:7d:5f
   Target Transport Details: WWNN: 50:00:09:74:c0:0c:10:00 WWPN: 50:00:09:74:c0:0c:11:1c
 
sas.5005076023c15998-sas.119bfbf763031d-naa.600508e0000000001d0363f7fb9b1100
   Runtime Name: vmhba0:C1:T2:L0
   Device: naa.600508e0000000001d0363f7fb9b1100
   Device Display Name: LSILOGIC Serial Attached SCSI Disk (naa.600508e0000000001d0363f7fb9b1100)
   Adapter: vmhba0 Channel: 1 Target: 2 LUN: 0
   Adapter Identifier: sas.5005076023c15998
   Target Identifier: sas.119bfbf763031d
   Plugin: NMP
   State: active
   Transport: sas
   Adapter Transport Details: 5005076023c15998
   Target Transport Details: 119bfbf763031d
 
fc.20000090fa0b7d5e:10000090fa0b7d5e-fc.50000974c00c1000:50000974c00c1118-naa.60000970000294900772533030303243
   Runtime Name: vmhba1:C0:T0:L0
   Device: naa.60000970000294900772533030303243
   Device Display Name: EMC Fibre Channel Disk (naa.60000970000294900772533030303243)
   Adapter: vmhba1 Channel: 0 Target: 0 LUN: 0
   Adapter Identifier: fc.20000090fa0b7d5e:10000090fa0b7d5e
   Target Identifier: fc.50000974c00c1000:50000974c00c1118
   Plugin: NMP
   State: active
   Transport: fc
   Adapter Transport Details: WWNN: 20:00:00:90:fa:0b:7d:5e WWPN: 10:00:00:90:fa:0b:7d:5e
   Target Transport Details: WWNN: 50:00:09:74:c0:0c:10:00 WWPN: 50:00:09:74:c0:0c:11:18
 
fc.20000090fa0b7d5e:10000090fa0b7d5e-fc.50000974c00c1000:50000974c00c1118-naa.60000970000294900772533030353232
   Runtime Name: vmhba1:C0:T0:L1
   Device: naa.60000970000294900772533030353232
   Device Display Name: EMC Fibre Channel Disk (naa.60000970000294900772533030353232)
   Adapter: vmhba1 Channel: 0 Target: 0 LUN: 1
   Adapter Identifier: fc.20000090fa0b7d5e:10000090fa0b7d5e
   Target Identifier: fc.50000974c00c1000:50000974c00c1118
   Plugin: NMP
   State: active
   Transport: fc
   Adapter Transport Details: WWNN: 20:00:00:90:fa:0b:7d:5e WWPN: 10:00:00:90:fa:0b:7d:5e
   Target Transport Details: WWNN: 50:00:09:74:c0:0c:10:00 WWPN: 50:00:09:74:c0:0c:11:18
 
/vmfs/volumes/51504c2e-5e2e1734-ff49-000af70d4520 #
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sunhux

ASKER
Just one last question & I'll close this thread:

So the datastore name I need to input is:

vmkfstools -P /vmfs/volumes/fc.20000090fa0b7d5f:10000090fa0b7d5f-fc.50000974c00c1000:50000974c00c111c-naa.60000970000294900772533030353232
   OR
vmkfstools -P /vmfs/volumes/sas.5005076023c15998-sas.119bfbf763031d-naa.600508e0000000001d0363f7fb9b1100

Does "vmkfstools -P" alter anything or it's just a read-only command?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

yes, you could use the friendly name for the vmfs volume

e.g  datastore1 etc

just shows the data of the vmfs volume
sunhux

ASKER
I meant to ask in the outputs provided in the thread id
39053748 above, which of the information is the
datastore name?
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.