Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk Changes

Status
Not open for further replies.

bertieuk

IS-IT--Management
Jun 1, 2004
175
Hi
After some guidance.

I'm working on a SAN project which includes Snapshots but I need to try and work out how large to make each snapshot volume.

Does anyone know if it possible to monitor disk changes using VBS at a disk block level. I could get a simple view by taking a daily incremental backup but I dont think that this will give me a true physical disk change.

Thanks
Si
 
A starting point:
Dim drvPath, fso, d, s
drvPath = "//server/path"
Set fso = CreateObject("Scripting.FileSystemObject")
Set d = fso.GetDrive(fso.GetDriveName(drvPath))
s = "Drive " & UCase(drvPath) & " - "
s = s & d.VolumeName & vbCrLf
s = s & "Total Size: " & FormatNumber(d.TotalSize / 1024, 0) & " Kbytes" & vbCrLf
s = s & "Free Space: " & FormatNumber(d.FreeSpace / 1024, 0) & " Kbytes"
MsgBox s


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Just looking this over, it would seem that the script would give free space and total space. What I'm actually after would be an indication of changing data at a block level i.e. If a 10GB file has only a 1 byte change then only measure the block size containing the 1 byte.

Thanks
Si
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top