Thursday, June 6, 2013

Volume Shadow Copy Failed to create the storage area association

Problem:
When I tried to move the storage area from one disk to another disk, I saw following error message:

Failed to create the storage area association.

Error 0x8004231d: The specified shadow copy storage association is in use and so can't be deleted.

Solution:

Run cmd as administrator

List existing volume shadow copies:
cmd> vssadmin list shadows

List volume shadow copy storage associations:
cmd> vssadmin list shadowstorage

cmd> vssadmin delete shadowstorage /for=D: /on=D:

Error: The specified shadow copy storage association is in use.

Note: VSSadmin is now replaced by the Diskshadow on windows server 2008 and Windows Server 2012.

cmd> vssadmin delete shadows /For=D: /Oldest

Error: Snapshots were found, but they were outside of your allowed context. Try removing them with the backup application which created them.

Note: VSSadmin command is now replaced by the Diskshadow command on windows server 2008 and Windows Server 2012.

Use diskshadow command to remove the shadow copies:
cmd> diskshadow
diskshadow> help

List all volume shadow copies on the computer:
diskshadow> list shadows all
Number of shadow copies listed: 1

To list diskshadow command options:
diskshadow> delete shadows

Delete the oldest shadow copy of the given volume or shared folder:
diskshadow> delete shadows oldest d:
diskshadow> delete shadows oldest \\SERVER\SHARE

Delete all shadow copies of the given volume or shared folder:
diskshadow> delete shadows volume d:

1 comment:

Marian Albulescu said...

it works, i had to use the diskshadow cmd.