List Info

Thread: RE: Failing Disk




RE: Failing Disk
country flaguser name
United States
2007-04-11 10:23:26
Thanks.  Just to clarify, I can't run the dd while the
system is up and running normally?

-Troy 

-----Original Message-----
From: redhat-list-bouncesredhat.com
[mailto:redhat-list-bouncesredhat.com] On Behalf Of
Jim Canfield
Sent: Wednesday, April 11, 2007 7:54 AM
To: General Red Hat Linux discussion list
Subject: Re: Failing Disk

Troy Knabe wrote:
> I have a Linux x86_64 4.4 system with 2 disk bays, but
only 1 disk in the system currently.  I believe the disk is
failing and I have ordered a replacement.  Assuming that I
am right, and the disk is failing, how can I dump the system
disk from the failing disk to the new one, and still be able
to boot off of the new disk?
>
>   
If you are getting another drive that is the same size or
larger, you can use DD to duplicate everything bit for bit.


Assuming old drive is /dev/sda and new is /dev/sdb:

1) Boot using a rescue CD, either redhat or my favorite -
sysrescuecd
(http://www.sysresccd.org/)

2) At root prompt verify /dev/sda is actually your old disk
using fdisk

#fdisk /dev/sda....and press "p" to view partition
table.

3) dd if=/dev/sda of=/dev/sdb

4) Wait...it will take a while.

5) Remove old drive insert new drive.

Note:  If you have corrupt or unreadable data on the primary
drive, dd may fail. At that point you might want to start
looking at some of the tools on the rescuecd.

-Jim 

--
redhat-list mailing list
unsubscribe mailto:redhat-list-requestredhat.com?subject=unsubscribe
h
ttps://www.redhat.com/mailman/listinfo/redhat-list
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-requestredhat.com?subject=unsubscribe
h
ttps://www.redhat.com/mailman/listinfo/redhat-list

Re: Failing Disk
country flaguser name
United States
2007-04-11 10:48:26
   Troy Knabe wrote:

 Thanks.  Just to clarify, I can't run the dd while the
system is up and running normally?


  

   Nope...but if you want to copy the system while it is
live, you can use
   mondo rescue ([1]http://www.mondorescue.or
g/).  I have had success with
   it.  Be sure to stop any live databases though.

  

 I have a Linux x86_64 4.4 system with 2 disk bays, but only
1 disk in the system currently.  I believe the disk is
failing and I have ordered a replacement.  Assuming that I
am right, and the disk is failing, how can I dump the system
disk from the failing disk to the new one, and still be able
to boot off of the new disk?

  
    

 If you are getting another drive that is the same size or
larger, you can use DD to duplicate everything bit for bit.

 Assuming old drive is /dev/sda and new is /dev/sdb:

 1) Boot using a rescue CD, either redhat or my favorite -
sysrescuecd
 ([2]http://www.sysresccd.org/)

 2) At root prompt verify /dev/sda is actually your old disk
using fdisk

 #fdisk /dev/sda....and press "p" to view
partition table.

 3) dd if=/dev/sda of=/dev/sdb

 4) Wait...it will take a while.

 5) Remove old drive insert new drive.

 Note:  If you have corrupt or unreadable data on the
primary drive, dd may fail. At that point you might want to
start looking at some of the tools on the rescuecd.

 -Jim

 --
 redhat-list mailing list
 unsubscribe [3]mailto:redhat-list-requestredhat.com?subject=unsubscribe
 [4]h
ttps://www.redhat.com/mailman/listinfo/redhat-list
  

 --
 Jim Canfield, CISSP
 Tulsa Spine and Specialty Hospital

References

   Visible links
   1. http://www.mondorescue.or
g/
   2. http://www.sysresccd.org/
   3. mailto:redhat-list-requestredhat.com?subject=unsubscribe
   4. h
ttps://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-requestredhat.com?subject=unsubscribe
h
ttps://www.redhat.com/mailman/listinfo/redhat-list

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )