VMware Cloud Community
Algernon
Enthusiast
Enthusiast
Jump to solution

Rescan SAN?

How do I do this:

/usr/sbin/cos-rescan.sh vmhba1

on an ESX 3.0.1 server?

I'll tell you what I am trying to do as well. Storage guys have presented 7 LUNs to me. 2 of my hosts are 3.0.1 and 4 of them are 2.5.3. I want to format the new LUNs as vmfs3. I used to just go into the MUI and refresh storage, see the new LUNs and format them through there...How is this done under 3.0.1 / VC 2.0.1?

0 Kudos
1 Solution

Accepted Solutions
christianZ
Champion
Champion
Jump to solution

then go to (with your VI Client)

VC / host / Configuration / Storage / Add Storage

View solution in original post

0 Kudos
7 Replies
christianZ
Champion
Champion
Jump to solution

Just

esxcfg-rescan vmhba1

Algernon
Enthusiast
Enthusiast
Jump to solution

So I can run esxcfg-rescan vmhba1 and see the new luns

I run:

vmkpcidivy -q vmhba_devs

and see the extra LUNs, but one number is missing for the vmkfstools syntax, I see:

vmhba1:0:24 /dev/sdad

But the syntax for vmkfstools needs and extra number. I assume that this is the number of the volume/partition, but I'm basing this on an antiquated knowledge of ARC paths. At any rate, my attempt to format and label this storage fails:

\[root@abvmw014 root]# vmkfstools -S farm02_temp05 -C vmfs3 vmhba1:0:24:1

Creating file system on "vmhba1:0:24:1" with blockSize 1048576 and volume label "farm02_temp05".

Usage: vmkfstools -C vmfs3 /vmfs/devices/disks/vmhbaW:X:Y:Z

Error: Bad file descriptor

0 Kudos
admin
Immortal
Immortal
Jump to solution

Or use the VI client, click a host that can see the LUN, click the configuration tab, click storage adapters and then click rescan in the top left. This will rescan all adapters.

christianZ
Champion
Champion
Jump to solution

then go to (with your VI Client)

VC / host / Configuration / Storage / Add Storage

0 Kudos
Algernon
Enthusiast
Enthusiast
Jump to solution

Thanks guys, that's got it.

0 Kudos
christianZ
Champion
Champion
Jump to solution

ok, to do this manually you must first create a partition

\- fdisk /dev/sd?

\- partition type change to "fb"

and now "vmkfstools ..."

0 Kudos
kenton_allred
Contributor
Contributor
Jump to solution

I'm trying to do this manually the way you outline but how do I know which /dev/sd? I should format using fdisk?

The LUN I want to format is /vmfs/devices/disks/vmhba0:0:6:0

Also, I'm not sure I understand the "...partition type change to "fb"..." comment.

Can you clarify this for me please?

0 Kudos