[CentOS] dying hd on live legacy system...

Fri Apr 25 17:50:02 UTC 2008
John <jses27 at gmail.com>

On Fri, 2008-04-25 at 13:35 -0400, Jason Pyeron wrote:
> 
> > -----Original Message-----
> > From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
> > Behalf Of Jeff Larsen
> > Sent: Friday, April 25, 2008 1:16 PM
> > To: CentOS mailing list
> > Subject: Re: [CentOS] dying hd on live legacy system...
> > 
> > On Fri, Apr 25, 2008 at 10:38 AM, Jason Pyeron <jpyeron at pdinc.us> wrote:
> > > We have an old 3.x server whose hd is dying (kernel: hda:
> > dma_timer_expiry:
> > >  dma status == 0x61) and accessing certain files just crashes the system
> > with
> > >  a reboot.
> > >
> > >  We have moved as many files to a nfs server as we could so simply.
> > >
> > >  The system has been heavily modified (all using rpms) from baseline.
> > >
> > >  What is the most practical method to replace the hard drive?
> > 
> > Install another drive (same size or larger), boot from CD in rescue
> > mode and use the dd utility to copy the old drive image to the new
> > disk (example: dd if=/dev/hda of=/dev/hdb). However, the failing
> > hardware could make this problematic. Then remove the dying disk and
> > install the new disk on the cable where the old disk was so that the
> > new disk is now /dev/hda.
> > 
> 
> Tried this, I should have been more clear above. When I access certain
> sectors the machine reboots.
> 
> Ideas on how to do the duplication in this scenario?

dd if=/dev/hda conv=sync,noerror   Have you used the noerror option?
Boot with a live image mount the drive then mount the of=drive to copy
the data. Only other option I know of at the moment.
> 
> > If you are lucky enough to succeed consider mirroring with Linux
> > software RAID or at least make a full backup.
> > 
> > --
> > Jeff
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> 
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>  
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you
> have received it in error, purge the message from your system and
> notify the sender immediately.  Any other use of the email by you
> is prohibited.
> 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
-- 
~/john

OpenPGP Sig:BA91F079