<?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: find out if a harddisk has snapshots and whether its a virtual or physical RDM hard disk in vSphere Update Manager PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986845#M285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can have snapshots of RDM disks, so not sure what exactly you mean ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 05:10:05 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2014-04-29T05:10:05Z</dc:date>
    <item>
      <title>find out if a harddisk has snapshots and whether its a virtual or physical RDM hard disk</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986844#M284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How do I find out if a harddisk has snapshots and whether its a virtual or physical RDM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$vhdds = $vm | get-harddisk&lt;BR /&gt;"find out each $vhdds has snapshots and whether its a virtual or physical RDM"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 00:01:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986844#M284</guid>
      <dc:creator>VicMware</dc:creator>
      <dc:date>2014-04-29T00:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: find out if a harddisk has snapshots and whether its a virtual or physical RDM hard disk</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986845#M285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can have snapshots of RDM disks, so not sure what exactly you mean ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 05:10:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986845#M285</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-04-29T05:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: find out if a harddisk has snapshots and whether its a virtual or physical RDM hard disk</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986846#M286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I didnt make it clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing I want to do:&lt;BR /&gt;how do I check if the hard disk is a RDM?&lt;/P&gt;&lt;P&gt;$vhdds = $vm | get-harddisk&lt;/P&gt;&lt;P&gt;check each $vhdds if its a RDM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second thing I want to do:&lt;/P&gt;&lt;P&gt;$vhdds = $vm | get-harddisk&lt;/P&gt;&lt;P&gt;check each $vhdds has a snapshot or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 05:20:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986846#M286</guid>
      <dc:creator>VicMware</dc:creator>
      <dc:date>2014-04-29T05:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: find out if a harddisk has snapshots and whether its a virtual or physical RDM hard disk</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986847#M287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The disktype can be deduced from the DiskType property&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-VM&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-HardDisk&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"VM"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;Parent&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;DiskType&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test if the VMDK has a snapshot can be done by checking through a RegEx expression on the VMDK filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-VM&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0;"&gt;Get-HardDisk&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"VM"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;Parent&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;@&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;N&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"Snapshotted"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8b4513;"&gt;Filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;-match&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;-\d{6}.vmdk&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included the Filename so you can see what is tested against.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 06:10:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/find-out-if-a-harddisk-has-snapshots-and-whether-its-a-virtual/m-p/986847#M287</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-04-29T06:10:47Z</dc:date>
    </item>
  </channel>
</rss>

