CheckDisk

Availability for the Always-On Enterprise

CheckDisk

Veeam Logoby lukejf » Mon Feb 13, 2017 2:01 am

Hey Guys
As everyone knows vmware had massive issues with CBT which cause one of our fileserver backups to get corrupt some time ago. I started stuffing around with how to run a checkdisk remotely using surebackup but didn't get too far. Just wondering if anyone managed to get a surebackup script working that runs a check disk on all connected drives and reports back error code 0 if it works correctly.

thanks all
Luke

Edit
I did post in this forum some time ago but had no response. powershell-f26/surereplica-custom-script-to-run-chkdsk-t21371-15.html#p151677
lukejf
Service Provider
 
Posts: 31
Liked: 2 times
Joined: Tue Jul 10, 2012 8:15 am
Full Name: Luke

Re: CheckDisk

Veeam Logoby lukejf » Wed Feb 15, 2017 3:32 am

Gathering no one does this?? If not how do you test your file server backups to ensure you have no folder corruption? We have seen surebackups run sucessfully on a file sever vm that had corrupt folders. What are you guys using to detect this??
lukejf
Service Provider
 
Posts: 31
Liked: 2 times
Joined: Tue Jul 10, 2012 8:15 am
Full Name: Luke

Re: CheckDisk

Veeam Logoby Mike Resseler » Wed Feb 15, 2017 7:47 am

Hi Luke,

I haven't done this yet but with a PowerShell script you should be able to get somewhere. I would test with using the Repair-Volume cmdlet

For example:
$s = Repair-Volume C -scan (This will scan and report only for drive C)
$s.value__ will then give you an output integer.

Some of the codes I know:

0 is NoErrorsFound
1 is ErrorsFixed
2 = MinorErrorsFixedOrCleanup
3 = Failed
4 = ScanNoErrorsFound
5 = ScanErrorsFoundAndFixedOnline
6 = ScanErrorsFixedOnlineAlsoNeedSpotFix

(and thee are more but can't find that information now. The importance is, when you don't get a 0 then there is something to investigate)

So I would start with testing this on your server and see what the output is, then put it in a PS script and use it in surebackup

Hope it helps
Mike Resseler
Veeam Software
 
Posts: 2805
Liked: 343 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler


Return to Veeam Backup & Replication



Who is online

Users browsing this forum: Bing [Bot], Inferno131, jim3cantos, NightBird and 46 guests