Comprehensive data protection for all workloads
Post Reply
ashleyw
Service Provider
Posts: 181
Liked: 30 times
Joined: Oct 28, 2010 10:55 pm
Full Name: Ashley Watson
Contact:

Identifying VMs with dynamic disks

Post by ashleyw »

Hi,

We had a minor heart attack when we were trying to use the single file recovery to recover files from a specific directory and noticed that one of the drives was missing. After scratching our heads we realised the dynamic disk was missing from the single file restore view so we used the "guest files (other OS)" option to bring up the single file recovery VM to grab the files we needed, so all good in the end.

My questions are;
- Can the "Guest files (Windows)" option bring up a large warning saying the VM contains dynamic disks and drive letters will be missing?
- How do we run a scan of our 400+ VMs in our vCentre farm and get a high level view over which ones are still using dynamic disks (so we can make a plan to change these back to basic)?

When we consolidated into vCentre ages ago we specifically changed dynamic disks to basic as part of the VMware conversion process, but it looks like some VMs have slipped through the net.

cheers
tsightler
VP, Product Management
Posts: 6011
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Identifying VMs with dynamic disks

Post by tsightler »

So you should be able to script something up easy enough. You can detect dynamic disks via a WMI call via the PowerShell Get-WmiObject cmdlet.

Code: Select all

Get-WmiObject Win32_DiskPartition -filter "Type='Logical Disk Manager'"
If there are any dynamic disks, this will return something like:

Code: Select all

NumberOfBlocks   : 83883969
BootPartition    : False
Name             : Disk #3, Partition #0
PrimaryPartition : True
Size             : 42948592128
Index            : 0
So a nice script that loops through all your machines can give you a nice list of systems with dynamic disks should do the trick. A quick search of the Interwebs turns up this thread which has a script that uses this method. I personally haven't tested it, but that's probably how I'd approach it.
ashleyw
Service Provider
Posts: 181
Liked: 30 times
Joined: Oct 28, 2010 10:55 pm
Full Name: Ashley Watson
Contact:

Re: Identifying VMs with dynamic disks

Post by ashleyw »

thanks for that. I'll take a look and see if I can create something that hooks into vCentre VIX APIs so I could drive the whole thing from powershell connecting to vCentre. thanks.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], justin.hendren, Semrush [Bot] and 196 guests