<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.vmlogerror
{mso-style-name:vm_log_error;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I need to add a raw disk to be used with a windows VM – and this is the error message I get in the logs for the VM<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span class="vmlogerror"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#FF8D81">Mon Aug 12 07:09:53 2013 [VMM][E]: mkimage: Command "export PATH=/usr/sbin:/sbin:$PATH</span></span><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#F2F2F2"><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]:<span class="apple-converted-space"> </span></span><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]: if [ ! -d /vmfs/volumes/102/2/disk.2 ]; then</span><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]: mkdir -p /vmfs/volumes/102/2/disk.2</span><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]: fi</span><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]:<span class="apple-converted-space"> </span></span><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]: mkfs -t NTFS /vmfs/volumes/102/2/disk.2" failed: sh: mkfs: not found</span><br>
</span><span class="vmlogerror"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#FF8D81">Mon Aug 12 07:09:53 2013 [VMM][E]: Could not create image /vmfs/volumes/102/2/disk.2</span></span><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#F2F2F2"><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]: ExitCode: 127</span><br>
<span style="background:#6F6F6F">Mon Aug 12 07:09:53 2013 [VMM][I]: Failed to execute transfer manager driver operation: tm_attach.</span><br>
</span><span class="vmlogerror"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#FF8D81">Mon Aug 12 07:09:53 2013 [VMM][E]: Error attaching new VM Disk: Could not create image /vmfs/volumes/102/2/disk.2</span></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is trying to use mkfs to create a NTFS volume, when you cannot do anything with VMware except attach a raw disk, there are no mkfs tools that will build and attach it as a NTFS volume<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I look up how to add a disk via ESXi command-line this is what I find ---- which is a completely different command than shown<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It says add a disk to VM 16 that is 10g in size as SCSI device 0:2 using datastore1
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#222222;background:white">vim-cmd vmsvc/device.diskadd 16 10000 scsi0 2 datastore1</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The unique thing is though, that I cannot run that as oneadmin, because it fails – which means I cannot add a disk to the VM<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.5pt;font-family:"Arial","sans-serif""># vim-cmd vmsvc/device.diskadd 20 15000 scsi 0 1 102<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.5pt;font-family:"Arial","sans-serif"">Reconfigure failed<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And if I try to add the disk via vSphere , it cannot really add it because the disk currently in use is technically SCSI0:0 , but vSphere is still expecting SCSI0:0 as the next disk.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does this sound like a bug, if so I can create a bug report on this instead.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Michael Curran | connectsolutions | Lead Network Architect<o:p></o:p></p>
<p class="MsoNormal">Phone 614.568.2285 | Mobile 614.403.6320 | <a href="http://www.connectsolutions.com">
<span style="color:#0563C1">www.connectsolutions.com</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>