public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Grant Grundler <iod00d@hp.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: convert 520 byte sector disk to 512 byte sector?
Date: Mon, 9 Jun 2003 12:29:07 -0700	[thread overview]
Message-ID: <20030609122907.A16169@beaverton.ibm.com> (raw)
In-Reply-To: <20030609174647.GB29808@cup.hp.com>; from iod00d@hp.com on Mon, Jun 09, 2003 at 10:46:47AM -0700

On Mon, Jun 09, 2003 at 10:46:47AM -0700, Grant Grundler wrote:
> Hi,
> 
> I've got several ST336753FC and ST336704FC disks which came out
> of a VA7100 RAID enclosure. The VA7100 is able to reformat those
> disks from 512 to 520 bytes per sector. I'd like to convert them
> back to 512 byte/sector for use as "regular" disks.
> Anyone know the trick to do that?

> I haven't tried blk512-linux with parallel SCSI under linux,
> but I know it's not working with the above FC disks when run
> on an ia64-linux box.  The format mode page "current" values
> aren't changing using the "trick" that worked for the parallel
> SCSI disks. And the "writeable" indicates none of the formt mode
> page parameters are allowed to be changed (clearly a lie).
> 
> The default format mode page clearly shows the drive was 512 byte/sector.
> I'd just like to get them back to that for the some performance testing.

I did this for some Seagate FC drives (don't have the exact model numbers
handly), but don't have my hacks, and can't find details of my results. I
used the same thing you have in your code - set the "direct access device
mode paramter block descriptor"'s block length (versus the more obvious
data bytes per physical page), and then formatted the drive.
 
Did you try setting the data bytes per physical page?

So the MODE SENSE format device page (0x3) "data bytes per physical
sector" does _not_ show 512 bytes after you send the MODE SELECT format
device page? That is what I (eventually) saw.

Did you format the drive after changing the block size?

Are you sure the mode select is really working in your code? I suppose
there are no other format page values you can change.

I can't remember when the MODE SENSE format page showed the modified block
size for me - I believe it was after the MODE SELECT format page, rather
than after the FORMAT command itself.

-- Patrick Mansfield

  reply	other threads:[~2003-06-09 19:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-09 17:46 convert 520 byte sector disk to 512 byte sector? Grant Grundler
2003-06-09 19:29 ` Patrick Mansfield [this message]
2003-06-09 22:39   ` Grant Grundler
2003-06-10  1:53     ` Douglas Gilbert
2003-06-10 17:24       ` Grant Grundler
2003-06-10 20:54       ` Grant Grundler
2003-06-18 20:19       ` Grant Grundler
2003-06-10  0:36   ` Grant Grundler
  -- strict thread matches above, loose matches on Subject: below --
2003-06-10 18:32 Cress, Andrew R
2003-06-18 20:52 ` Grant Grundler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030609122907.A16169@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=iod00d@hp.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox