- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a tricky one...
Unfortunately I don't have any code to help you with this but perhaps some advice..
Which type of OS are you dealing with? I know that I used a powershell script for Windows for the same problem. The Windows volumes have the disk index of the SCSI as a property and so you can relate them that way and then resize the appropriate disk. Match the volume is on the SCSI from the OS with the index from the disk properties and you should then know which disk you are dealing with.
Typically with *Nix systems particularly ones using LVM they will want to simply add a VMDK to the VM and then add that disk into the existing volume.
I hope that points you in the right direction.
Check out this link to see the disk properties available to you from the Windows OS