linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recover SCSI disks
@ 2005-10-20 14:40 Robin Bowes
  2005-10-21  1:11 ` Douglas Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Robin Bowes @ 2005-10-20 14:40 UTC (permalink / raw)
  To: linux-scsi

Hi,

I've got a Compaq U2 storage array connected to a Compaw Smart 2/p
controller with an assortment of 4.3GB and 9.1GB disks that I use for
testing purposes.

Some of the drives have "died" on me, i.e. I get yellow lights when they
are plugged into the arrays.

Is it possible to do anything low-level to ressurect these drives? e.g.
take them out of their caddies, connected them directly to a SCSI
controller and low-level format them or something?

(There's no data on them - I just want them to work again!)

Any suggestions appreciated.

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recover SCSI disks
  2005-10-20 14:40 Recover SCSI disks Robin Bowes
@ 2005-10-21  1:11 ` Douglas Gilbert
  2005-10-21 11:35   ` Robin Bowes
  2005-10-21 11:38   ` Robin Bowes
  0 siblings, 2 replies; 5+ messages in thread
From: Douglas Gilbert @ 2005-10-21  1:11 UTC (permalink / raw)
  To: Robin Bowes; +Cc: linux-scsi

Robin Bowes wrote:
> Hi,
> 
> I've got a Compaq U2 storage array connected to a Compaw Smart 2/p
> controller with an assortment of 4.3GB and 9.1GB disks that I use for
> testing purposes.
> 
> Some of the drives have "died" on me, i.e. I get yellow lights when they
> are plugged into the arrays.
> 
> Is it possible to do anything low-level to ressurect these drives? e.g.
> take them out of their caddies, connected them directly to a SCSI
> controller and low-level format them or something?
> 
> (There's no data on them - I just want them to work again!)
> 
> Any suggestions appreciated.

Robin,
You may like to fetch sg3_utils and try sg_format thus:
   sg_format /dev/sda
assuming a disk you have fetched from the array is placed
at /dev/sda .

If that fails, the disk is probably dead. Otherwise it
should tell you several things (and doesn't change
anything). Often drives in RAIDs are formatted
to a sector size slightly greater than 512 bytes. To
re-use the disk (freestanding) in linux you will need to
format it back 512 bytes thus:
   sg_format --format --size=512 /dev/sda

A format may not be needed. In any case, the next step
would usually be to partition the disk (e.g. with fdisk)
then make a file system on one or more of its partitions
(e.g. with mkfs.ext3 ). The disk (or at least its partition)
should then be ready to mount and use.

Doug Gilbert



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recover SCSI disks
  2005-10-21  1:11 ` Douglas Gilbert
@ 2005-10-21 11:35   ` Robin Bowes
  2005-10-21 11:38   ` Robin Bowes
  1 sibling, 0 replies; 5+ messages in thread
From: Robin Bowes @ 2005-10-21 11:35 UTC (permalink / raw)
  To: dougg; +Cc: linux-scsi

Douglas Gilbert said the following on 21/10/2005 02:11:
> Robin,
> You may like to fetch sg3_utils and try sg_format thus:
>    sg_format /dev/sda
> assuming a disk you have fetched from the array is placed
> at /dev/sda .

Douglas,

THanks for the tip, I'll give it a go.

> If that fails, the disk is probably dead. Otherwise it
> should tell you several things (and doesn't change
> anything). Often drives in RAIDs are formatted
> to a sector size slightly greater than 512 bytes. To
> re-use the disk (freestanding) in linux you will need to
> format it back 512 bytes thus:
>    sg_format --format --size=512 /dev/sda
> 
> A format may not be needed. In any case, the next step
> would usually be to partition the disk (e.g. with fdisk)
> then make a file system on one or more of its partitions
> (e.g. with mkfs.ext3 ). The disk (or at least its partition)
> should then be ready to mount and use.

Thanks again,

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recover SCSI disks
  2005-10-21  1:11 ` Douglas Gilbert
  2005-10-21 11:35   ` Robin Bowes
@ 2005-10-21 11:38   ` Robin Bowes
  2005-10-21 12:43     ` Robin Bowes
  1 sibling, 1 reply; 5+ messages in thread
From: Robin Bowes @ 2005-10-21 11:38 UTC (permalink / raw)
  To: dougg; +Cc: linux-scsi

Douglas Gilbert said the following on 21/10/2005 02:11:
> Robin,
> You may like to fetch sg3_utils and try sg_format thus:
>    sg_format /dev/sda
> assuming a disk you have fetched from the array is placed
> at /dev/sda .

Hmm, sg3_utils doesn't seem to contain sg_format:

[root@compact ~]# rpm -ql sg3_utils
/usr/bin/scsi_devfs_scan
/usr/bin/sg_dd
/usr/bin/sg_inq
/usr/bin/sg_logs
/usr/bin/sg_map
/usr/bin/sg_modes
/usr/bin/sg_rbuf
/usr/bin/sg_read
/usr/bin/sg_readcap
/usr/bin/sg_reset
/usr/bin/sg_scan
/usr/bin/sg_senddiag
/usr/bin/sg_start
/usr/bin/sg_test_rwbuf
/usr/bin/sg_turs
/usr/bin/sginfo
/usr/bin/sgm_dd
/usr/bin/sgp_dd
(man pages snipped)

Any idea where to find it?

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recover SCSI disks
  2005-10-21 11:38   ` Robin Bowes
@ 2005-10-21 12:43     ` Robin Bowes
  0 siblings, 0 replies; 5+ messages in thread
From: Robin Bowes @ 2005-10-21 12:43 UTC (permalink / raw)
  To: linux-scsi

Robin Bowes said the following on 21/10/2005 12:38:
> Douglas Gilbert said the following on 21/10/2005 02:11:
> 
>> Robin,
>> You may like to fetch sg3_utils and try sg_format thus:
>>    sg_format /dev/sda
>> assuming a disk you have fetched from the array is placed
>> at /dev/sda .
> 
> 
> Hmm, sg3_utils doesn't seem to contain sg_format:
> 
> [root@compact ~]# rpm -ql sg3_utils
> /usr/bin/scsi_devfs_scan
> /usr/bin/sg_dd
> /usr/bin/sg_inq
> /usr/bin/sg_logs
> /usr/bin/sg_map
> /usr/bin/sg_modes
> /usr/bin/sg_rbuf
> /usr/bin/sg_read
> /usr/bin/sg_readcap
> /usr/bin/sg_reset
> /usr/bin/sg_scan
> /usr/bin/sg_senddiag
> /usr/bin/sg_start
> /usr/bin/sg_test_rwbuf
> /usr/bin/sg_turs
> /usr/bin/sginfo
> /usr/bin/sgm_dd
> /usr/bin/sgp_dd
> (man pages snipped)

Let me re-phrase that, the Fedora Core 4 sg3_utils-1.06-5 rpm doesn't 
contain sg_format (the above listing is from there).

I see from rpmfind that it is in the mandrake sg3_utils-1.16-1mdk rpm.

Ah, I've got the latest version from http://sg.torque.net/sg/index.html

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-21 12:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 14:40 Recover SCSI disks Robin Bowes
2005-10-21  1:11 ` Douglas Gilbert
2005-10-21 11:35   ` Robin Bowes
2005-10-21 11:38   ` Robin Bowes
2005-10-21 12:43     ` Robin Bowes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).