[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

120,000+ files vanished

Posted on 2013-12-31
3
Medium Priority
?
284 Views
Last Modified: 2013-12-31
I left a Powershell 4 script running overnight. It had 9,000+ files created (from copy-item).
I came in this morning and the program had stopped with an error, but the console output told me there should be over 121,000 files in the new location, but there were only 649!!!

This is a Hyper-V generation 2 virtual machine running Windows 2012R2 and the SQL 2012. There is no DELETE\REMOVE anything in my Powershell script, only create-item for a folder if it does not exist and copy-item to move files from numerous places to one folder.

I was not able to find anything about missing files in Google with 2012R2.
I'm running it again and will find out if it happens in 2 days. The VM guest shows 53GB free and is a dynamic disk.
The VM is exported each night for backup.

Any ideas?
thanks!
0
Comment
Question by:johnj_01201
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Expert Comment

by:Jeremy Weisinger
ID: 39748258
Can you post the script?
What is the reported size of the disk?
How much space is used in the directory?
Can you run something like WinDirStat and verify that the files are not actually there?
0
 
LVL 1

Author Comment

by:johnj_01201
ID: 39748289
Can't post the script, it is almost 1,000 lines long now.
The files are gone, as in permanently deleted somehow.
Recycle Bin was empty and the disk free and used space showed as if the files were not there. There should only be about 10GB free when the program completes.
It is running again and I'll let you know how it turns out this time.
0
 
LVL 22

Accepted Solution

by:
Jeremy Weisinger earned 2000 total points
ID: 39748304
Sounds good. If it's still a mystery then you might want to turn on file access auditing while troubleshooting the issue to see exactly what and when the files are deleted.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
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…

650 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