Please pardon the simplicity or if this is a repost as i have searched around and could not find the solution. Maybe this is due to lack of caffeine.
Basically i'm trying to partition a new fresh drive on an ESX4.1 server with VMFS and im getting the permission denied error
The server is running within workstation 7.1and is only a test box. The HDD in question is just locally added
I have copied out the ssh session and have omitted out all the other irrelevant drives. Also a screen shot of the add storage via gui.Also adding via the gui works fine so it's obviously something im doing wrong with the commands.
Anny help on this annoyance would be highly appreciated
Thank you.
# esxcfg-scsidevs -l
mpx.vmhba0:C0:T0:L0
Device Type: Direct-Access
Size: 12288 MB
Display Name: Local VMware, Disk (mpx.vmhba0:C0:T0:L0)
Multipath Plugin: NMP
Console Device: /dev/sdc
Devfs Path: /vmfs/devices/disks/mpx.vmhba0:C0:T0:L0
Vendor: VMware, Model: VMware Virtual S Revis: 1.0
SCSI Level: 2 Is Pseudo: false Status: on
Is RDM Capable: false Is Removable: false
Is Local: true
Other Names:
vml.0000000000766d686261303a303a30
VAAI Status: unknown
mpx.vmhba0:C0:T1:L0
Device Type: Direct-Access
Size: 20480 MB
Display Name: Local VMware, Disk (mpx.vmhba0:C0:T1:L0)
Multipath Plugin: NMP
Console Device: /dev/sdd
Devfs Path: /vmfs/devices/disks/mpx.vmhba0:C0:T1:L0
Vendor: VMware, Model: VMware Virtual S Revis: 1.0
SCSI Level: 2 Is Pseudo: false Status: on
Is RDM Capable: false Is Removable: false
Is Local: true
Other Names:
vml.0000000000766d686261303a313a30
VAAI Status: unknown
# fdisk -l
Disk /dev/sdc: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 140 1124518+ 83 Linux
/dev/sdc2 141 154 112455 fc VMware VMKCORE
/dev/sdc3 155 1566 11341890 5 Extended
/dev/sdc5 155 1566 11341858+ fb VMware VMFS
Disk /dev/sdd: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Disk /dev/sde: 7973 MB, 7973371904 bytes
255 heads, 63 sectors/track, 969 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 76 610438+ 82 Linux swap / Solaris
/dev/sde2 77 331 2048287+ 83 Linux
/dev/sde3 332 969 5124735 5 Extended
/dev/sde5 332 969 5124703+ 83 Linux
# fdisk /dev/sdd
The number of cylinders for this disk is set to 20480.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdd: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-20480, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-20480, default 20480):
Using default value 20480
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): fb
Changed system type of partition 1 to fb (VMware VMFS)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
# fdisk -l
Disk /dev/sdc: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 140 1124518+ 83 Linux
/dev/sdc2 141 154 112455 fc VMware VMKCORE
/dev/sdc3 155 1566 11341890 5 Extended
/dev/sdc5 155 1566 11341858+ fb VMware VMFS
Disk /dev/sdd: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 20480 20971504 fb VMware VMFS
Disk /dev/sde: 7973 MB, 7973371904 bytes
255 heads, 63 sectors/track, 969 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 76 610438+ 82 Linux swap / Solaris
/dev/sde2 77 331 2048287+ 83 Linux
/dev/sde3 332 969 5124735 5 Extended
/dev/sde5 332 969 5124703+ 83 Linux
# vmkfstools -C TESTVMS1 /vmfs/devices/disks/mpx.vmhba0:C0:T1:L0
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...
Creating TESTVMS1 file system on "mpx.vmhba0:C0:T1:L0" with blockSize 1048576 and volume label "none".
/vmfs/devices/disks/mpx.vmhba0:C0:T1:L0: Permission denied. (Have you set the partition type to 0xfb?)
Error: Permission denied
#