Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > SETUP AND DEPLOYMENT (TECHNET) > Cannot create or access vhd files on one volume
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 30th July 13:56
itsryan
External User
 
Posts: 1
Default Cannot create or access vhd files on one volume


OK, this is weird. I have an external SCSI array mounted as drive F:
Every other program I've tried can use this volume normally. Virtual
Server 2005 cannot create or access a .vhd file on that volume. When I
try to create one, it actually writes the bits to the drive, but then
when it's done creating the volume, it deletes it and give the error:

The virtual hard disk "g:\test.vhd" could not be created. The file


It *can* create a .vmc file on that drive, just not a disk.

If I create the disk on another volume, copy it over to the SCSI array,
then try to inspect it, I get:

An error occurred while attempting to access the virtual hard disk. The
file "g:\test.vhd" is not a valid virtual hard disk.

But if I copy that very same file to another volume from the g: drive,
it works fine, so the bits are right.

I've tried setting security to everyone full access, and I've tried
turning on file auditing. No failure audits show in the log. No
errors in the system or application event log.

Anyone have any ideas for a workaround?
  Reply With Quote


  sponsored links


2 30th July 14:07
rcampbell
External User
 
Posts: 1
Default Cannot create or access vhd files on one volume


More information. In the object audit logs, the offending volume is
showing up as \device\HarddiskVolume<x> whereas the volumes that work
show up as C:, E:, etc.

I've tried deleting and recreating the volume as an MBR basic, MBR
dynamic, and GPT basic disk, but same results.

Event Type: Success Audit
Event Source: Security
Event Category: Object Access
Event ID: 560
Date: 7/18/2005
Time: 2:54:49 PM
User: EXAMPLE\user
Computer: COMPUTER
Description:
Object Open:
Object Server: Security
Object Type: File
Object Name: \Device\HarddiskVolume8\test2.vhd
Handle ID: 1632
Operation ID: {0,11185745}
Process ID: 4048
Image File Name: C:\Program Files\Microsoft Virtual Server\vssrvc.exe
Primary User Name: NETWORK SERVICE
Primary Domain: NT AUTHORITY
Primary Logon ID: (0x0,0x3E4)
Client User Name: user
Client Domain: EXAMPLE
Client Logon ID: (0x0,0xAAA85E)
Accesses: DELETE
ReadAttributes

Privileges: SeRestorePrivilege
Restricted Sid Count: 0
Access Mask: 0x10080
  Reply With Quote
3 30th July 14:30
rcampbell
External User
 
Posts: 1
Default Cannot create or access vhd files on one volume


OK, I found the problem. The device name was a red herring.

The array was using 512 byte sectors and was over 2 Terabytes in size.
This pushed it over the maximum number of sectors that Windows
supports. Not a bug in Virtual Server, but I'd say a bug in Windows
2003 Server for mounting and formatting a drive with an illegal number
of sectors. I never got a warning or error in Event viewer or
elsewhere.

The array conroller doesn't support larger sectors so I split up the
array into mulitple logical drives using the array's controller and
RAID-0ed them back together in Windows. All is well now.
  Reply With Quote
4 30th July 14:31
steve jain
External User
 
Posts: 1
Default Cannot create or access vhd files on one volume


Thanks for the follow-up.


--
Cheers,
Steve Jain, Virtual Machine MVP
Website: http://www.essjae.com
"This posting is provided "AS IS" with
no warranties, and confers no rights.
You assume all risk for your use.
I am not am employee of Microsoft."
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666