Move redirected user data from pass-through disk to a virtual disk.

I have put myself in a predicament.  I have a VM running active directory. I have the users docs redirected.  The problem is that I ignorantly created the storage disk containing the redirected folder as a pass-through disk.  I did not realize that Windows Server can't create checkpoints and snapshots of VMs containing pass-through disks.  This trickles down to my Unitrends Backup solution as well (No snapshots no VM backups). I need to correct this so all is right with the world. My question is I have never backed-up users redirected folders and moved them from a pass-through disk to a Virtual Disk.  Should push the docs back to the users local profiles first.  Then change the disk to a VD and then redirect the to it. or can I just copy the data over correct the disk and dump the user data back on the new VD.
LVL 1
Chris HobgoodIT Consultant Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeremy WeisingerSenior Network Consultant / EngineerCommented:
You do have then option when creating a VHD to copy the contents of a physical disk. But it can't be in use while copying the data. Can you do the following?

  1. Shutdown the VM
  2. Remove the passthrough disk from the VM
  3. Create a new VHDX using the physical as the source
  4. Attach the new VHD to the VM
  5. Boot up the VM
Chris HobgoodIT Consultant Author Commented:
Thanks Jeremy,

Unfortunately, the disk I need to copy from is the same disk I need to create the VHDX on. I'll have to back the data up to a NAS on the network.
I have the Host and VMs running on a 500 GB mirror and the DATA on a 3+ TB RAID 10 array. My biggest worry is that I have never moved redirected folders around so I don't know what to expect once I start fiddling with them. I also chose only the users to have access to their home folder. So I'm not sure if I as the administrator can even copy the data in them. I am assuming I can but just can't view it. I am also assuming that all I have to do is back the data up, rebuild the new VHDX then dump the data back on; make sure all my paths are updated in my GPOs and all is right with the world.  But then again I have never had to do it. What if?... Errrgh!!  This is now in a production environment so I can only have it down over a weekend while I get it sorted out.
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
How much data are we talking? You can shutdown the VM, detach the passthrough disk, create the VHDX on the network location, copy the VHDX to the array, and attach to the VM. The only question is do you have enough time to move the data to the NAS and back. Also, if there's less than 5TB in use, you don't have to delete any data until you know everything is working OK with the VHDX.

Note, when you attach the new disk, you might need to configure the drive letter so it matches the old passthrough. If that's the case, configure the drive letter and then reboot the server. Everything should come up OK at that point.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Chris HobgoodIT Consultant Author Commented:
Now that is a good idea. The beauty of virtualization. It's only +/- 500 GB. That won't take long at all.
Chris HobgoodIT Consultant Author Commented:
Thanks for you help...
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Oh, just create it on the drive itself. You can use Disk2VHD. Either on the VM while it's running or shutdown the VM, disconnect the drive and create the VHDX from the host. No need to copy over the network or delete anything. (until you're comfortable).

https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd

500GB should be super quick, especially if you're not having to copy it over the network. Less than an hour I'd say.
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Glad to help. :)
Chris HobgoodIT Consultant Author Commented:
Nice.  So let me get this right in my head.  Offline the disk in the VM, then online the disk on the Host, then run the disk2VHD utility and it will recreate the volume with all the data and partitions copied to it? Oh one hicup.  my host is command line only.  I saw it was sysinternals from the link. Is this a native application to Hyper-2016 Core or do I need to figure out how to get it installed?
searching..... I don't think it will run on the core.
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
There’s no install needed for any of the Sysinterals tools. You just run the exe and it should work.

But you can definitely run the tool from the VM itself. It uses VSS to create a snapshot and copies the contents of the disk to the VHD file. And that VHD file can be saved to the same disk it’s making an image of. So you could do that first and then detach the pass through from the VM, online it on the host then attach the VHD to the VM.
Chris HobgoodIT Consultant Author Commented:
Got it! Thanks again.
Chris HobgoodIT Consultant Author Commented:
Jeremy,
So I finally got a chance to implement what we discussed but I ran into a little hiccup.
When trying to offline the passthrough disk in the VM. It just locks up.
My thoughts were that some of the users' desktops/laptops were left on and probably still logged in and that the server was having trouble letting go of their redirected folders.
Does this sound right or is there some other problem?

Also, something I have not found a solid answer. For compliance reasons the users have "exclusive rights" to their redirected folders. When using dsk2VHD it should copy the hidden user data right?
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
You'll need the disk online when you run Disk2VHD. What you can do is disconnect the VM from the network and reboot it to make sure all handles are closed. Then run Disk2VHD to capture the drive.

Disk2VHD does create an image of the drive so all data (hidden and otherwise) will be copied. The user does need backup rights to run Disk2VHD.

Once you have the VHDX created
  1. Shutdown the VM
  2. Disconnect the passthrough disk from the VM
  3. Online the disk in the host OS
  4. Connect VHDX to VM
  5. Boot the VM
  6. Check disk drive letter. If incorrect, change it to the correct letter and reboot.
Chris HobgoodIT Consultant Author Commented:
Jeremy,

The conversion is working well.  I have one follow up question. In my head I should be able to delete file/folders as follows:

From the VM Host I should be able to delete the folders and leave the new VHDx?
Files in VM Host physical disk volume
From the VM I should be able to erase the VHDx?
Files in VHDx Virtual Machine volume
I had to create the VHDx twice because I ran out of time and they added more data to it.
I am assuming the disk2VHD tool added the first VHDx instance to current VHDx file.
Is this correct or is the VHDx showing in both the host and VM volumes for some necessary reason?
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Hi Chris, yes on both accounts.

On the host, once everything is working well on the VM and you have a current backup, you can delete the folder and files off the host.

If the old VHD existed when you ran Disk2VHD, it would be included in the image. So you can feel free to delete the VHD from the VM.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Group Policy management

From novice to tech pro — start learning today.