I have a disk that I need to connect as a pass thru for one of my guest OSes, sbs 2011. The guests internal backup program will backup to the disk, which I'm planning to attach to the VMS SCSI controller. Since its a backup disk I also want to swap it.
I think what ill need to do, using powershell, is script the command to remove the pass thru from the VM, then use diskpart to take the disk offline m which will then allow me to remove the drive and add the other drive, and then reverse the steps I've outlined so the VM can backup again.
Does this sound correct? If not, how should I go about this?
The drive will need to be offline on the host to mount it as a pass-through. So, if it is mounted as a SCSI device on the VM, you should be able to remove it from the VM, it should disappear from the VM You'd need to make sure it removes the disk gracefully though. Do your swap and then replace the disk and reverse. Sounds good in theory, but on the VM, you might have to import the foreign disk or put the disk back online. Might have to work on the script to make it a bit smarter than simply forcing it. But in theory it sounds like your idea will work.
If you are using it for backup, I'd want to see that it didn't hose up the disk. One of those times you might want to test it to be sure.