VMware Cloud Community
iinasprabhu
Contributor
Contributor

vmkfstools

Dear all,

I am new to vmware field. I have installed ESX Server3.

My hba card is recognised and it is vmhba1. Zoning on SAN side is also configured. Now if i run a rescan from the VI client to get ESX to scan for new storage it will show status as completed. But i am not able to see that SAN space locally. Please help in this regard.

i am using "vmfstools -C vmfs3 -S sandisk vmhba1:10:1:0" this command to format a vmfs partition whixh gives error as "operation not permitted"

Can any one guide me. Waiting for your expertise help.

regards,

Nagesh Prabhu.

0 Kudos
16 Replies
ponpalani2001
Hot Shot
Hot Shot

Hi,

Can you run this command and check to see if all the LUNs are visible from COS

  1. vmkpcidivy -q vmhba_devs

Thanks

Santhosh_vmware

Hello Nagesh,

get the /dev/sdx from command #esxcfg-vmhbadevs -q

then check partition 0 on /dev/sdxname is type 'fb' using fdisk

then try again

regards

santhosh

0 Kudos
iinasprabhu
Contributor
Contributor

Hi Santhosh,

Thank you very much for the quick response.

The out put of vmkpcidivy -q vmhba_devs is

# vmkpcidivy -q vmhba_devs

vmhba0:0:0 /dev/cciss/c0d0

vmhba0:1:0 /dev/cciss/c0d1

can you please suggest what will be the next step. I very sorry for toubling you.

From SAN side we have allocated 400GB.

regards,

Nagesh Prabhu.

0 Kudos
iinasprabhu
Contributor
Contributor

Palani and Santhosh,

Thank you very much for expertise guidence.

Please find the outputs of suggested commands.

# vmkpcidivy -q vmhba_devs

vmhba0:0:0 /dev/cciss/c0d0

vmhba0:1:0 /dev/cciss/c0d1

# esxcfg-vmhbadevs -q

vmhba0:0:0 /dev/cciss/c0d0

vmhba0:1:0 /dev/cciss/c0d1

# fdisk -l

Disk /dev/cciss/c0d0: 293.6 GB, 293621915648 bytes

255 heads, 32 sectors/track, 70279 cylinders

Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System

/dev/cciss/c0d0p1 * 1 25 101984 83 Linux

/dev/cciss/c0d0p2 26 1279 5116320 83 Linux

/dev/cciss/c0d0p3 1280 69617 278819040 fb Unknown

/dev/cciss/c0d0p4 69618 70279 2700960 f Win95 Ext'd (LBA)

/dev/cciss/c0d0p5 69618 69753 554864 82 Linux swap

/dev/cciss/c0d0p6 69754 70254 2044064 83 Linux

/dev/cciss/c0d0p7 70255 70279 101984 fc Unknown

Disk /dev/cciss/c0d1: 72.8 GB, 72833679360 bytes

255 heads, 63 sectors/track, 8854 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/cciss/c0d1p1 1 8854 71119691 fb Unknown

#

Please let me know what could be next step.

SAN side 400GB is allocated and given host type as Linux. We are using IBM FASt Storage.

regards,

Nagesh Prabhu.

0 Kudos
Santhosh_vmware

Try

Please run esxcfg-rescan for LUN rescan,from the previous command it only showed local volumes

thats all ,

regards

santhosh

Message was edited by: Santhosh_vmware

0 Kudos
Santhosh_vmware

Hi,

also try this

vmkfstools -C vmfs3 -S storage1 vmhba0:1:0:3

regards

santhosh

0 Kudos
Dave_Mishchenko
Immortal
Immortal

When you run this command you should see something like vmhba1:0:0 /dev/sdax. Currently your host does not see the lun so you'll want to rescan your storage and check your zoning.

root@terhitdr02 root# esxcfg-vmhbadevs -q

vmhba0:0:0 /dev/cciss/c0d0

vmhba0:1:0 /dev/cciss/c0d1

0 Kudos
Dave_Mishchenko
Immortal
Immortal

And from the console that will be esxcfg-rescan vmhba1

0 Kudos
iinasprabhu
Contributor
Contributor

Hi Dave,

Thanks for the suggestion, it would be great if you have some steps to create zoning so that i can create it from scratch.

regards,

Nagesh

0 Kudos
iinasprabhu
Contributor
Contributor

Santhosh,

I have tried with both commands and output is here.

# esxcfg-rescan vmhba1

Rescanning vmhba1...done.

On scsi0, removing:.

On scsi0, adding:.

# vmkfstools -C vmfs3 -S storage1 vmhba0:1:0:3

Creating file system on "vmhba0:1:0:3" with blockSize 1048576 and volume label "storage1".

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

Error: File exists

# vmkfstools -C vmfs3 -S test vmhba0:1:0:3 (Just tried)

Creating file system on "vmhba0:1:0:3" with blockSize 1048576 and volume label "test".

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

Error: Bad file descriptor

#

What i need to do now.

regards,

Nagesh

0 Kudos
ponpalani2001
Hot Shot
Hot Shot

Hi,

Can you check the DiskMaxLun settings, since ESX3.0 cannot scan LUN id more than 255.

Thanks

0 Kudos
Santhosh_vmware

Hi Nagesh,

vmhba1 does not see disks,a possible San/zoning issue.

regards

santhosh

0 Kudos
iinasprabhu
Contributor
Contributor

Santhosh,

Thank you very much i will work on this and let you know.

regards,

Nagesh Prabhu.

0 Kudos
Dave_Mishchenko
Immortal
Immortal

From your reply to Santhosh it does appear that the hba is seeing anything. We'll have to resolve that before you can run vmkfstools. What sort of server / hba do you have? Are you connected to SAN switch or directly to the SAN? This won't be an issue for this problem, but are the HBAs set to a type of LINCL on the SAN?

0 Kudos
iinasprabhu
Contributor
Contributor

Hi Dave,

My Server is HPProliant -GL380 G4 and HBA card is: qla2300.

I have connected to the SAN switch through fibre. IBM FASt Storage is also connected to the SAN switch.

regards,

Nagesh Prabhu

0 Kudos
iinasprabhu
Contributor
Contributor

Santhosh, Dave and Palani

I have recreated the zoning and configured again. Now it is detecting and working fine.

Thanks a lot for all of you to the expertise guidence and help.

regards,

Nagesh Prabhu.

0 Kudos