LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 04-27-2007, 04:32 AM   #1
OneManOfBits
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Rep: Reputation: 0
HardDisk Bad sector issues??


My w2k3 server suddenly starts slowing down tremendously, infact it takes hours to boot up, lounching applications and other activities take a very long time to execute. client workstations also take much time to authenticate.

when i looked at the event viewer it says:
The device, \Decice\Harddisk0, has a bad block.
also the error ID says 7

the problem is that this is a domain controller (AD) and i'm worried of loosing my AD database.
how do i peacefully solve this issue?
please note, i'm not exactly sure if the bad block is the cause of it or something else.
 
Old 04-27-2007, 11:01 AM   #2
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
could be a logical corruption of partition or a physical bad block.

Try this to see if its a logical problem

chkdsk c:

This will fix any logical bad blocks.


If it doesnt get sorted that way
use a seatools cd or disk [if ur harddisk is a seagate disk] and try running a scan.

If there are badblocks , time to take a backup and change the harddisk.
 
Old 04-27-2007, 11:03 AM   #3
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Do you have a raid config? If you can hot swap a drive, then do that.

Otherwise I would start digging deep into information about backing up your AD database and how to restore it to another computer.

Does the bad block error get reported a lot? Or just once. If it is reported several times, then yes it is the problem.....

Is there excessive memory use? Is there something using a lot of the processor? More info would help. Are you sure the network settings are correct on the clients and server? Possibly bad memory? You can download something to test your memory with something like memtest86+. What kind of harddrive do you have. Just about every vendor provides tools to check out the integrity of the drive.
 
Old 04-28-2007, 09:07 PM   #4
OneManOfBits
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
after a number of options including chddsk /c it now improves a bit in speed . but the problem now is that i want to back up but the server simply cannot. each time i attempt to back up (while its backing up) the server suddenly shut down for reason i dont know. i'm using veritas backup ( also tried using windows built in backup.exe) the same result
whats the fix for this?
 
Old 04-28-2007, 09:22 PM   #5
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Install Smartmon tools and run the internal SMART diagnostics and then query the drive for the results. If any errors are reported replace the drive.

Go to:
http://smartmontools.sourceforge.net/

Scroll all the way down, and you will see the Windows version.
 
Old 04-29-2007, 01:43 AM   #6
OneManOfBits
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
yeah Kimvatte, i'm now sure the real problem is bad sector. you see; i try to use GParted to copy the content of w2k3 harddisk to new harddisk and its reporting an error saying that 7 bad sectors are discovered in the w2k3 drive. and the main problem here is that GParted could not continue the hard disk copy 'cos of the bad sector.
on the other hand even if w2k3 server can boot up (and still slow), i cannot use Veritas to back up, ('cos on my observation) when the veritas initialises the back up process and goes on backing up, once it comes accross the bad sector on the disk the entire machine immediately shuts down - i've tried this over and over!
i'm just stucked now!
MY PROBLEM IS TO MOVE THE CONTENT OF THIS W2K3 DISK TO NEW DISK (using GParted or any other software), OR SUCCESFULLY BACK IT UP AND START WITH NEW DISK.
any help please?
 
Old 04-29-2007, 06:05 AM   #7
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Modern hard disks automatically detect and reallocate bad sectors to a reserved area. This is completely transparent to the OS. Only once this reserved area fills up will you even see a bad block (if not using SMART tools that is.) So by the time the OS itself reports any you're already in deep crapolla.

I'd bring up another AD domain controller on the network and transfer the operations master roles to it using the procedures here:
http://technet2.microsoft.com/Window...3.mspx?pf=true

I'd then shutdown the troublesome server, remove its hard disk and install it in a workstation to begin recovering the remaining data.

Last edited by Crito; 04-29-2007 at 06:08 AM.
 
Old 04-29-2007, 08:34 AM   #8
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I second Crito's suggestion. Everyth8ing can be replicated over to the new domain server relatively easy.

Also, just to throw this out there, http://www.petri.co.il/ad.htm has a lot of good info related to AD domain controlers.

One more tidbit, if you use dd_rescue to copy the contents of the old drive it will copy everything. It is designed with drives with errors in mind.
 
Old 04-29-2007, 08:53 AM   #9
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Quote:
Originally Posted by benjithegreat98
I second Crito's suggestion. Everyth8ing can be replicated over to the new domain server relatively easy.
If you have another server what I would do is use dcpromo to promote the other one to the domain master, migrate any other services over manually, remove the disks from the old server and install new disks. KEEP the old disks in storage in case you need to recover data off of them later.
 
Old 04-30-2007, 12:53 AM   #10
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
A crude way will be using dd.
U can take an entire disk to disk back-up [even if its got some bad sectors] and start off with the new disk.
But u need a hard disk of the same size [or more] and a linux system :-)
if u can get this then use dd command to rescue the server

Link for dd command usage u would need

http://www.linuxquestions.org/questi...d.php?t=362506
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i partition around a bad sector ? nephish Linux - Hardware 13 12-02-2005 08:45 AM
Bad sector woes :S kevingpo Fedora 4 07-07-2005 02:57 AM
Blocking Harddisk bad sector wood Programming 8 03-30-2005 07:32 AM
bad sector in HDD ??? hitesh_linux Linux - General 2 06-20-2003 03:54 PM
how to check for bad sector nakkaya Linux - General 1 01-16-2003 07:24 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration