* Copy SCSI disk including, if any, the first cylinder
2005-12-17 19:24 Copy SCSI disk including, if any, the first cylinder brtaylor
@ 2005-12-17 19:35 ` gatgul
2005-12-17 20:37 ` davis
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: gatgul @ 2005-12-17 19:35 UTC (permalink / raw)
i suspect something like:
dd if=/dev/scdX of=/dev/scdY
will do ya.
Bob Taylor wrote:
> I have a failing SCSI disk in my LX164. I need to copy it *totally* onto
> a SCSI disk of the same size. I know how to copy all the files but I
> don't know if there is any boot stuff located on the first cylinder
> other than the BSD label and if so, how do I copy it. Will someone help
> please? Thanks!
>
> Bob
^ permalink raw reply [flat|nested] 6+ messages in thread* Copy SCSI disk including, if any, the first cylinder
2005-12-17 19:24 Copy SCSI disk including, if any, the first cylinder brtaylor
2005-12-17 19:35 ` gatgul
@ 2005-12-17 20:37 ` davis
2005-12-17 23:07 ` michal
2005-12-19 15:00 ` terry.bowling
3 siblings, 0 replies; 6+ messages in thread
From: davis @ 2005-12-17 20:37 UTC (permalink / raw)
Bob Taylor wrote:
>I have a failing SCSI disk in my LX164. I need to copy it *totally* onto
>a SCSI disk of the same size. I know how to copy all the files but I
>don't know if there is any boot stuff located on the first cylinder
>other than the BSD label and if so, how do I copy it. Will someone help
>please? Thanks!
>
>Bob
>
>
Suppose the old disk is /dev/sda and the new disk is /dev/sdb,
dd if=/dev/sda of=/dev/sdb bs=512
This would copy an NT disk, a Solaris disk, a
some-os-I've-never-heard-of-disk. You get the idea.
If you don't immediatly have a disk of the same size to copy to you can
specify of= a file on a filesystem that has enough space to hold the
entire disk image.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Copy SCSI disk including, if any, the first cylinder
2005-12-17 19:24 Copy SCSI disk including, if any, the first cylinder brtaylor
2005-12-17 19:35 ` gatgul
2005-12-17 20:37 ` davis
@ 2005-12-17 23:07 ` michal
2005-12-18 1:28 ` davis
2005-12-19 15:00 ` terry.bowling
3 siblings, 1 reply; 6+ messages in thread
From: michal @ 2005-12-17 23:07 UTC (permalink / raw)
On Sat, Dec 17, 2005 at 11:24:51AM -0800, Bob Taylor wrote:
> I have a failing SCSI disk in my LX164. I need to copy it *totally* onto
> a SCSI disk of the same size. I know how to copy all the files but I
> don't know if there is any boot stuff located on the first cylinder
> other than the BSD label
If this is a boot disk then you have also a boot block. It could be a
better idea to write a new one using swriteboot instead of copying
whatever can be copied from a failing disk.
In general 'dd', which has various options, can be used to copy
bit-by-bit whole disks or parts of those. If your source disk is
failing then you may need to use 'conv=noerror' to get anywhere with
such copy; but that means that on your target you may get blocks of
zeros instead of the real data and if that will cause only limited or a
massive damage depends purely on your luck.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Copy SCSI disk including, if any, the first cylinder
2005-12-17 23:07 ` michal
@ 2005-12-18 1:28 ` davis
0 siblings, 0 replies; 6+ messages in thread
From: davis @ 2005-12-18 1:28 UTC (permalink / raw)
Michal Jaegermann wrote:
>On Sat, Dec 17, 2005 at 11:24:51AM -0800, Bob Taylor wrote:
>
>
>>I have a failing SCSI disk in my LX164. I need to copy it *totally* onto
>>a SCSI disk of the same size. I know how to copy all the files but I
>>don't know if there is any boot stuff located on the first cylinder
>>other than the BSD label
>>
>>
>
>If this is a boot disk then you have also a boot block. It could be a
>better idea to write a new one using swriteboot instead of copying
>whatever can be copied from a failing disk.
>
>In general 'dd', which has various options, can be used to copy
>bit-by-bit whole disks or parts of those. If your source disk is
>failing then you may need to use 'conv=noerror' to get anywhere with
>such copy; but that means that on your target you may get blocks of
>zeros instead of the real data and if that will cause only limited or a
>massive damage depends purely on your luck.
>
> Michal
>
>
Of course the best option is to have just completed a full backup just
before the disk started to fail.
If dd works, and another similar (or larger) disk is available it is a
relativly painless process.
1. Physicly configure the replacement disk into the system
2. use dd to copy from the failing disk to the replacement disk
3. remove the failing disk from the system
4. Remove the failing disk from the system
5. Configure the replacement disk to physicaly replace the failing disk.
There is no need to worry about partitioning the replacement disk or
making it bootable. This can save time and effort.
Those ifs are important tho, your suggestion about conv=noerror is a
good one. Sometimes (frequently?) a failing disk will still cough up the
data, but you may be logging excesive retrys.
Sometimes if a disk is realy dodgy your only option is to rebuild what
you must from other sources (renstall) and concentrate your efforts on
selectivly copying off just the most important files.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Copy SCSI disk including, if any, the first cylinder
2005-12-17 19:24 Copy SCSI disk including, if any, the first cylinder brtaylor
` (2 preceding siblings ...)
2005-12-17 23:07 ` michal
@ 2005-12-19 15:00 ` terry.bowling
3 siblings, 0 replies; 6+ messages in thread
From: terry.bowling @ 2005-12-19 15:00 UTC (permalink / raw)
With a failing disk, you might also want to consider using the dd
arguments
conv=sync,noerr
Read the man pages or google it for more details, but it basically is a
more graceful and efficient way of handling bad bits of data on the
failing source drive.;
_________________________
Terry Bowling
Verizon Systems Support
260.461.3772
"Bob Taylor" <brtaylor at sanfelipe.com.mx>
Sent by: axp-list-bounces at redhat.com
12/17/05 02:24 PM
Please respond to
brtaylor at sanfelipe.com.mx; Please respond to
"Linux on Alpha processors" <axp-list at redhat.com>
To
"axp-list" <axp-list at redhat.com>
cc
Subject
Copy SCSI disk including, if any, the first cylinder
I have a failing SCSI disk in my LX164. I need to copy it *totally* onto
a SCSI disk of the same size. I know how to copy all the files but I
don't know if there is any boot stuff located on the first cylinder
other than the BSD label and if so, how do I copy it. Will someone help
please? Thanks!
Bob
--
brtaylor at sanfelipe.com.mx
_______________________________________________
axp-list mailing list
axp-list at redhat.com
https://www.redhat.com/mailman/listinfo/axp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/axp-list/attachments/20051219/efbe28b5/attachment.htm>
^ permalink raw reply [flat|nested] 6+ messages in thread