life_j
asked on
Command Line script to Defragement the HDD
Our File Server is allocated 850GB (Raid 5) HDD space of SAN. I want to know how I can run a defragmentation even when the users are accessing the data. Also want to know roughly how long its going to take to defragment the 850GB HDD. I want to run this a scheduled job on every week. Any help and suggestions are appreciated
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
havent seen the ability for the defrag tool to tell how long its going to take
ASKER
Would their be any performance issues or any problems if we defragment quite often.
only whilst defragging, it can slow down the system big time, its is highly advisable to do this out of hours...have a read through this
http://www.adminprep.com/articles/default.asp?action=show&articleid=93
couple of helpful server management tips
http://www.adminprep.com/articles/default.asp?action=show&articleid=93
couple of helpful server management tips
ASKER
When I run a scheduled job to do defragmentation. The job exit with a error code message
Result: The task completed with an exit code of (7).
.Doesany one know what that mean. I did a search about that and founf that it means "7 The storage control blocks were destroyed." But can any one tell me in more detail about this error message.
Result: The task completed with an exit code of (7).
.Doesany one know what that mean. I did a search about that and founf that it means "7 The storage control blocks were destroyed." But can any one tell me in more detail about this error message.
if you look under the scheduled tasks windows - advanced - log file what does it say
ASKER
Log File.
Result: The task completed with an exit code of (7).
This is the only information I can find.
Result: The task completed with an exit code of (7).
This is the only information I can find.
hey mate,
i cant find anything on that error at all....
i cant find anything on that error at all....
ASKER
Nice Link LJ, that one is going in the Favorites.... The storage control blocks were destroyed. - have you had any luck figuring out what that is?
ASKER
I have an another link in regards to the error that I am getting. Says that I need to do Chkdsk .Can any one guarantee me if its 100% safe to run a chkdsk on a drive. This is our file server and I don't want to risk.
Any recommendations are welcome
http://home.online.no/~westerma/planet/dos/commands.html
Any recommendations are welcome
http://home.online.no/~westerma/planet/dos/commands.html
ckdsk is fine you wont do any damage
ASKER
I ran chkdsk yesterday night,said that would dismount all the handles to SAN. Pressed Yes for that.THis has made SAN in accessible with for the users.
Ckdsk was taking too long so I have end the task.
Came in the morning and realized that 3 folders were corrpted.Can't delete move or rename the folders.No NTFS permissions tab at all.
Ckdsk was taking too long so I have end the task.
Came in the morning and realized that 3 folders were corrpted.Can't delete move or rename the folders.No NTFS permissions tab at all.
you ended chkdsk partially complete? ouch! what did the folders contain?
ASKER
The folders had some contracts. I could get them back.But this had given me all sorts of problems.If you can , Please post your valuable comments on the links below.
https://www.experts-exchange.com/questions/21994121/CHKDSK-corrupted-few-folders-can't-delete-them.html
https://www.experts-exchange.com/questions/21994146/Volume-Corrupted.html
https://www.experts-exchange.com/questions/21994121/CHKDSK-corrupted-few-folders-can't-delete-them.html
https://www.experts-exchange.com/questions/21994146/Volume-Corrupted.html
ok LJ, chat to you on the other post
ASKER
Can we tell how long is the deframentation going to take place. At the moment we have 3% of HD being fragmented.