* how to change sector size on fibrechannel drives
@ 2002-06-13 13:35 David Nedved
2002-06-13 23:56 ` Douglas Gilbert
0 siblings, 1 reply; 4+ messages in thread
From: David Nedved @ 2002-06-13 13:35 UTC (permalink / raw)
To: linux-scsi
Hi All,
I've salvaged some drives from a MTI fibre channel RAID device, and I'm
trying to use them in linux 2.4.18. When the scsi module loads, it sees
the drives, but reports them all as having the dreaded
"unsupported sector size 528" message. All the searches I've done seem
to indicate a low-level format of the drives. The FC card I'm using,
however (Emulex LP8000), doesn't seem to have an option for low-level
formatting in the BIOS. I've also tried the lputil command that comes with
the driver, but it seems to have trouble finding the adapter, and it doesn't
seem to have any utilities that would help me anyway.
My fibre channel toys are rather limited, in other words, I don't have
any other controllers with which to low-level these drives. In a pinch
I could probably find a wintel machine to throw the card into if I had to
in order to low-level format the drives, but this would be rather hard
since I don't have any windows machines.
Am I out of luck? I wouldn't mind the inefficiency of only using 512
of the 528 bytes in each block if there's some way to override the
default setting... although I would much rather reformat them...
Oh, the drives are all ST136403FC drives if that matters.
Thanks in advance for any clues...
David
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to change sector size on fibrechannel drives
2002-06-13 13:35 how to change sector size on fibrechannel drives David Nedved
@ 2002-06-13 23:56 ` Douglas Gilbert
2002-06-14 14:48 ` David Nedved
0 siblings, 1 reply; 4+ messages in thread
From: Douglas Gilbert @ 2002-06-13 23:56 UTC (permalink / raw)
To: David Nedved; +Cc: linux-scsi
David Nedved wrote:
>
> Hi All,
>
> I've salvaged some drives from a MTI fibre channel RAID device, and I'm
> trying to use them in linux 2.4.18. When the scsi module loads, it sees
> the drives, but reports them all as having the dreaded
> "unsupported sector size 528" message. All the searches I've done seem
> to indicate a low-level format of the drives. The FC card I'm using,
> however (Emulex LP8000), doesn't seem to have an option for low-level
> formatting in the BIOS. I've also tried the lputil command that comes with
> the driver, but it seems to have trouble finding the adapter, and it doesn't
> seem to have any utilities that would help me anyway.
>
> My fibre channel toys are rather limited, in other words, I don't have
> any other controllers with which to low-level these drives. In a pinch
> I could probably find a wintel machine to throw the card into if I had to
> in order to low-level format the drives, but this would be rather hard
> since I don't have any windows machines.
>
> Am I out of luck? I wouldn't mind the inefficiency of only using 512
> of the 528 bytes in each block if there's some way to override the
> default setting... although I would much rather reformat them...
>
> Oh, the drives are all ST136403FC drives if that matters.
David,
Have a look at the scu utility at this url:
http://www.bit-net.com/~rmiller/scu.html
You should be able to use the format to resize your sectors.
Doug Gilbert
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to change sector size on fibrechannel drives
2002-06-13 23:56 ` Douglas Gilbert
@ 2002-06-14 14:48 ` David Nedved
0 siblings, 0 replies; 4+ messages in thread
From: David Nedved @ 2002-06-14 14:48 UTC (permalink / raw)
To: Douglas Gilbert; +Cc: linux-scsi
This looks like a very promising program. Having trouble getting it to
talk to the devices though... the first drive gets assigned sdc by the
kernel, but since it has the wrong sector size, sdc doesn't really get
properly bound to the drive - any attempt to use /dev/sdc results in:
# ./scu -f /dev/sdc
scu: Unable to open device '/dev/sdc', errno = 6 - Device not configured
Okay, so I'll try the nexus command in scu to identify it by bus,target,lun.
Here's a snippet of what I get while inserting the scsi module:
Attached scsi disk sdc at scsi3, channel 0, id 114, lun 0
sdc : unsupported sector size 528.
SCSI device sdc: 0 528-byte hdwr sectors (0 MB)
Here's a snippet of what I get when I cat /proc/scsi/scsi after inserting
the scsi module:
Host: scsi3 Channel: 00 Id: 114 Lun: 00
Vendor: SEAGATE Model: ST136403FC Rev: 0004
Type: Direct-Access ANSI SCSI revision: 02
So it looks like the drve has been assigned target 114. I try scu:
# ./scu
scu> set nexus bus 3 target 114 lun 0
scu: Keywork 'target' requires range between (0 - 15).
And since scu is binary-only I can't modify the source...
I don't have that much experience with SCSI over FC, but it looks like
the scu utility itself that has a problem with targets over 15, not just
the kernel or driver or something. I'll work on trying to get them
re-assigned to low targets, but without any sort of documentation on
the drive frame, I have low probability of success here...
Anyone have any ideas about how to get past this point? Thanks for the
pointer Douglas... so close yet so far...
David
On Thu, Jun 13, 2002 at 07:56:55PM -0400, Douglas Gilbert wrote:
> David Nedved wrote:
> >
> > Hi All,
> >
> > I've salvaged some drives from a MTI fibre channel RAID device, and I'm
> > trying to use them in linux 2.4.18. When the scsi module loads, it sees
> > the drives, but reports them all as having the dreaded
> > "unsupported sector size 528" message. All the searches I've done seem
> > to indicate a low-level format of the drives. The FC card I'm using,
> > however (Emulex LP8000), doesn't seem to have an option for low-level
> > formatting in the BIOS. I've also tried the lputil command that comes with
> > the driver, but it seems to have trouble finding the adapter, and it doesn't
> > seem to have any utilities that would help me anyway.
> >
> > My fibre channel toys are rather limited, in other words, I don't have
> > any other controllers with which to low-level these drives. In a pinch
> > I could probably find a wintel machine to throw the card into if I had to
> > in order to low-level format the drives, but this would be rather hard
> > since I don't have any windows machines.
> >
> > Am I out of luck? I wouldn't mind the inefficiency of only using 512
> > of the 528 bytes in each block if there's some way to override the
> > default setting... although I would much rather reformat them...
> >
> > Oh, the drives are all ST136403FC drives if that matters.
>
> David,
> Have a look at the scu utility at this url:
> http://www.bit-net.com/~rmiller/scu.html
>
> You should be able to use the format to resize your sectors.
>
> Doug Gilbert
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
__ __ __ _ __ __ __ __ ____ __ __ _ ____ __
/ | /, | / / // // | / |/ // __// | / / // __// |
/ / // // / // // / / / , ' // _/ / / // / // _/ / / /
/___//_/_/ |__//_//___/ /_/|__//___//___/ |__//___//___/
Unix Systems Engineer VOICE: +1 864 331 8181
NuVox Communications, Inc. FAX: +1 864 331 7234
301 North Main Street, Ste 5000 EMAIL: dnedved@nuvox.net
Greenville, SC 29601 USA PAGER: pagenedved@nuvox.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to change sector size on fibrechannel drives
@ 2002-06-14 15:26 Bryan Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Bryan Henderson @ 2002-06-14 15:26 UTC (permalink / raw)
To: David Nedved; +Cc: Douglas Gilbert, linux-scsi
>it looks like
>the scu utility itself that has a problem with targets over 15, not just
>the kernel or driver or something.
Yes, probably. The last time I tried to use Scu (a year ago), I found it
was limited to 15 Linux SCSI slots and had some kind of dependency on the
way my /dev/sgX special files were defined as well. I couldn't use it for
fibre channel. I believe I got a combination of refusing to admit the
device exists and segmentation fault. I did report the problem to the
author.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-14 15:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-13 13:35 how to change sector size on fibrechannel drives David Nedved
2002-06-13 23:56 ` Douglas Gilbert
2002-06-14 14:48 ` David Nedved
-- strict thread matches above, loose matches on Subject: below --
2002-06-14 15:26 Bryan Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox