Link to home
Start Free TrialLog in
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
SOLUTION
Avatar of bluedan
bluedan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunhux
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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?
yes, you could use the friendly name for the vmfs volume

e.g  datastore1 etc

just shows the data of the vmfs volume
Avatar of 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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial