<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simulate Hard Drive failure on ESXi VM in ESXi Discussions</title>
    <link>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986501#M290050</link>
    <description>&lt;P&gt;I was thinking to mark disk as offline or simply disable it&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 10:42:03 GMT</pubDate>
    <dc:creator>maksym007</dc:creator>
    <dc:date>2023-09-13T10:42:03Z</dc:date>
    <item>
      <title>Simulate Hard Drive failure on ESXi VM</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2985917#M289992</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know where I can find some documentation on how I would be able to simulate a hard drive failure on an ESXi VM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 21:29:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2985917#M289992</guid>
      <dc:creator>alfonsourdaneta</dc:creator>
      <dc:date>2023-09-08T21:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate Hard Drive failure on ESXi VM</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986007#M290001</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you please be more specific where you would like to simulate a disk failure? I doubt you can fake a disk failure on a virtual disk of a VM, as it's a virtual disk. The VM, or more precisely the Guest OS, should not care about any underlying disk failures.&lt;/P&gt;&lt;P&gt;If you're speaking about faking disk failures on ESXi, you can do that by using some internal commands to do so. But noteworthy, best not to run this on crucial production hosts obviously.&lt;/P&gt;&lt;P&gt;To inject PDL (Permanent Device Loss):&lt;/P&gt;&lt;P&gt;vsish -e set /reliability/vmkstress/ScsiPathInjectError 1&lt;BR /&gt;vsish -e set /storage/scsifw/paths/&amp;lt;path of the device/PE &amp;gt;/injectError 0x013E0400000002 update&lt;/P&gt;&lt;P&gt;To clear the PDL state:&lt;/P&gt;&lt;P&gt;vsish -e set /storage/scsifw/paths/&amp;lt;path of the device/PE &amp;gt;/injectError 0x000000&lt;BR /&gt;vsish -e set /reliability/vmkstress/ScsiPathInjectError 0&lt;/P&gt;&lt;P&gt;To check available disk paths:&lt;/P&gt;&lt;P&gt;vsish -e ls /storage/scsifw/paths/&lt;/P&gt;&lt;P&gt;Does this answer your question?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2023 12:19:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986007#M290001</guid>
      <dc:creator>pkvmw</dc:creator>
      <dc:date>2023-09-10T12:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate Hard Drive failure on ESXi VM</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986161#M290014</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; thanks for your reply.&lt;/P&gt;&lt;P&gt;I am definitely not trying to simulate drive failure on the ESXi.&amp;nbsp; &amp;nbsp;We make a software product that runs on real physical hardware, but we use VMs for software development.&lt;/P&gt;&lt;P&gt;The issue I'm currently working on is recovery after hard disk failure.&amp;nbsp; On production hardware I would recreate this by simply walking over to the box and pulling the drive from the chassis.&amp;nbsp; What I'm trying to figure out is how to do this (or if it's even possible) on an ESXi VM.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:52:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986161#M290014</guid>
      <dc:creator>alfonsourdaneta</dc:creator>
      <dc:date>2023-09-11T13:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate Hard Drive failure on ESXi VM</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986438#M290041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;pulling a disk out of a server doesn't simulate a hard drive failure.&lt;BR /&gt;Instead it does simulate a lack in your datacenter security concept.&lt;/P&gt;&lt;P&gt;Usually you could try to read SMART data or use the &lt;A href="https://www.t10.org/lists/2sensekey.htm" target="_self"&gt;SCSI Sense Codes&lt;/A&gt;&amp;nbsp;which a disk still capable to answer would send back to the requestor to inform him about the reason why a command didn't succeed.&lt;/P&gt;&lt;P&gt;But due to the nature of vSphere it usually hides the underlying HW from the VM and it's guest OS.&lt;/P&gt;&lt;P&gt;You could use a pRDM instead of a vmdk, in that case the VM and it's Guest OS would be able to use SMART..&lt;BR /&gt;&lt;SPAN&gt;But even this approach would have some limits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Even a pRDM would require a vmdk descriptor file, and if you would pull the physical disk and replace it with a different one the vmdk descriptor file wouldn't be updated.&lt;/P&gt;&lt;P&gt;And as it does contain the old Device Identifier it won't grant your test VM access to the new physical disk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To the best of my knowledge the only way to achieve what you're asking for might be PCI passthrough.&lt;BR /&gt;Add a PCI (RAID) Controller with some disk (or a NVMe SSD) to your ESXi and use PCI passthrough to grant your test VM exclusive access.&lt;/P&gt;&lt;P&gt;But I never run a similar use case like you're asking for, so no guarantee it would work as needed.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 22:25:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986438#M290041</guid>
      <dc:creator>kastlr</dc:creator>
      <dc:date>2023-09-12T22:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate Hard Drive failure on ESXi VM</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986501#M290050</link>
      <description>&lt;P&gt;I was thinking to mark disk as offline or simply disable it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 10:42:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986501#M290050</guid>
      <dc:creator>maksym007</dc:creator>
      <dc:date>2023-09-13T10:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate Hard Drive failure on ESXi VM</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986557#M290052</link>
      <description>&lt;P&gt;re: "&lt;SPAN&gt;I was thinking to mark disk as offline or simply disable it "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That's pretty much what I'm looking for, a way to make the hard drive simply vanish from the VM.&amp;nbsp; &amp;nbsp;I get the feeling from the replies that this is not possible, so I may have to do this on real hardware.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 13:39:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Simulate-Hard-Drive-failure-on-ESXi-VM/m-p/2986557#M290052</guid>
      <dc:creator>alfonsourdaneta</dc:creator>
      <dc:date>2023-09-13T13:39:17Z</dc:date>
    </item>
  </channel>
</rss>

