Solved

VHD Replication Access Denied

Posted on 2014-01-27
12
3,476 Views
Last Modified: 2014-02-15
I have a virtual file server that will not replicate due to the storage VHD that is installed under the SCSI Controller as a virtual hard drive.  The drive contains all the file shares for the file server.  The VHD was initially created on different VM which was the DC.  If i remove the VHD the file server will replicate fine but not with the SCSI VHD installed.   I have tried to put the SID of the VM all permissions seems fine the SID of the current host VM is listed under permissions.  I even created a new VHD under Hyper-V manager and copied the contents under the Hyper-V manager but I still get the same General access denied error (0x80070005). with a bunch of other event IDS  Any help will be greatly appreciated.
0
Comment
Question by:cameljoe121
  • 7
  • 5
12 Comments
 
LVL 38

Expert Comment

by:Philip Elder
ID: 39814203
Access Denied on attach? Where is the VHD residing?

Philip
0
 

Author Comment

by:cameljoe121
ID: 39815061
The VHDX and the VM's are located on CSV's on a storage server which is connected to the nodes via iScsi.  If I remove the storage drive from the VM's configuration the VM will then replicate but as soon as I reinstall it into the VM I can not replicate either the VM VHD or the storage VHDX or create checkpoints.  Otherwise it works fine.  When I check the replication health after re trying replication there are a bunch of errors but I believe the center around the access denied error but I could be wrong.
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 39815312
I take it the VMs are Generation 1?

Are you able to hook the storage VHDX into the IDE setup? If yes, then does replication (assuming Hyper-V replication?) work as expected?

Philip
0
 

Author Comment

by:cameljoe121
ID: 39815371
Yes it is gen 1 I will try this tonight after production shuts down.  I will let you know how it turns out.  Thanks for the help
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 39815426
No worries.

If you hit a permissions issue attaching to IDE then the next step will be to verify your NTFS permission set on the CSV (c:\ClusterStorage\Volume x).

Is there an MPIO setup between the storage nodes and storage? Please verify that _all_ drivers and firmware for every component between the VHDX bits and the nodes are exactly the same!

Make sure the MPIO settings are the same across all storage access points.

Philip
0
 

Author Comment

by:cameljoe121
ID: 39816719
Adding the VHDX to the IDE controller had no effect I am still receiving the same errors.  Under the C:\ClusterStorage\Volume2 directory the ability to change any permissions are grayed out I can add permissions to the VHDX inside the directory but that is it.  I am using MPIO setup the replica cluster is just using a regular iScsi setup not MPIO.  I am a little confused by what you mean here "Please verify that _all_ drivers and firmware for every component between the VHDX bits and the nodes are exactly the same!"  I am really beating my head against the wall the inital VHDX was created on a different Hyper-V host that was not part of a cluster and the VM the VHDX was initially part of a DC.  When I moved over to the failover Cluster I made a dedicated fileserver and at first it did replicate but there was a issue that was causing the nodes to bluescreen that issue was fixed I had to delete all the replication VM's remove and recreate it for all the VM's all work fine but this one if I remove the VHDX ftom the VM's config I can replicate the fileserver's OS disk and create Checkpoints but not with it installed in the VM
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:cameljoe121
ID: 39816773
Here are the Exact errors that I receive from the replication health maybe this may shed some light.

Event ID 32074
Hyper-V successfully enabled replication for primary virtual machine 'FileServer' (Virtual machine ID xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx)

Event ID 16370
'FileServer' cannot create the storage required for the checkpoint using disk C:\ClusterStorage\volume2\data.vhdx: General access denied error (0x80070005).
(Virtual machine ID xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx)

Event ID 18012
Checkpoint operation for 'FileServer' failed. (Virtual machine ID xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx)

Event ID 33676
Replication operation for virtual machine 'FileServer' failed: General access denied error (0x80070005).
(Virtual machine ID xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx) (Primary server: 'FCNode01.MI.local', Replica server: 'Replica02.MI.local')

Event ID 32042
Hyper-V failed to generate initial replica for 'FileServer': General access denied error (0x80070005).
(Virtual machine ID xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx)

Event ID 33680
Replication operation for virtual machine 'FileServer' failed.
(Virtual machine ID xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx) (Primary server: 'FCNode01.MI.local', Replica server: 'Replica02.MI.local')

Event ID 32086
Hyper-V suspended replication for virtual machine 'MIFileServer' due to a non-recoverable failure.
Resume replication after correcting the failure. (Virtual machine ID xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx)
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 39819625
Check another VHDX file that is replicating successfully for its NTFS permissions.

Duplicate them exactly on the Data.VHDX file. Me thinks some permissions are carried over from its previous location.

Philip
0
 

Author Comment

by:cameljoe121
ID: 39820818
I made sure the exact same permissions are selected and I receive the same end result.  Any other ideas?
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 39821037
Create a new VHDX file in that location and attach it to the problematic VM. Format the partition in the VM.

Does the new one (you can copy an ISO into it to give it some bulk) replicate as expected?

If yes, then the data that is in the previous one will need to be backed up and restored into the new VHDX setup.

That's as far as I can think of other than something at the SAN level may be causing a problem.

Philip
0
 

Accepted Solution

by:
cameljoe121 earned 0 total points
ID: 39848274
I solved this it was stupid the VHDX was sitting on the root of the CSV after dumping it into a folder replication worked fine.
2
 

Author Closing Comment

by:cameljoe121
ID: 39861157
Because it was the answer to the issue
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now