Re: Western Digital - Advanced Format

2013-06-02 Thread MD

On 03/06/13 06:01, Otto Moerbeek wrote:

On Mon, Jun 03, 2013 at 03:34:07AM +0100, MD wrote:


On 01/06/13 15:59, MD wrote:

On 01/06/13 12:56, Kenneth R Westerback wrote:

On Sat, Jun 01, 2013 at 07:38:50AM +0100, MD wrote:

Recently obtained WD7500-BPKT (750g) hard drive that apparently



Will Advanced Format Just Work(TM)?



If the drive claims to be using 512-byte sectors, everything should
work but potentially be slow due to the drive compensating for
i/o into the middle of 4K sectors.



 Ken






On installation, fdisk partitioned the drive by default with the
OpenBSD partition starting at...

Physical/LBA (512-byte) sector 64

(oh yes... nudge-nudge wink-wink)...

and subsequent OpenBSD partitions (i.e. logical partitions)
starting on exact multiples of 4096bytes...

JUST BY ACCIDENT!!!


No, that isn't an accident. We moved the default fdisk start 1 sector some
time ago and changed a few thing in disklabel to make this happpen.

-Otto


Erm... The capitals and the "nudge-nudge, wink-wink" was me...
tipping me hat... because I'd got it ;-)

So the change is in the disklabel code
(I'd started to look in fdisk code first).

Thanks for the guidance.

Just sheer class, that. Sheer class, gents.

Mike



Re: Western Digital - Advanced Format

2013-06-02 Thread Otto Moerbeek
On Mon, Jun 03, 2013 at 03:34:07AM +0100, MD wrote:

> On 01/06/13 15:59, MD wrote:
> >On 01/06/13 12:56, Kenneth R Westerback wrote:
> >>On Sat, Jun 01, 2013 at 07:38:50AM +0100, MD wrote:
> >>>Recently obtained WD7500-BPKT (750g) hard drive that apparently
> >
> >>>Will Advanced Format Just Work(TM)?
> 
> >>If the drive claims to be using 512-byte sectors, everything should
> >>work but potentially be slow due to the drive compensating for
> >>i/o into the middle of 4K sectors.
> 
> >> Ken
> >>
> >>
> >
> >Thanks for the quick response Ken.
> >
> >dmesg indicates the drive reports 512 byte sectors - bah humbug.
> >
> >disklabel pushed start to sector 64, though.
> >
> >Looks like I need to go back in and try to manually create the 4k
> >sectors by careful management of partition boundaries through
> >disklabel (I was going to DBAN it, anyway).
> 
> 
> 
> Dear He-who-shall-remain-nameless (You know who you are...) ;-
> and List-friends,
> 
> A mere slip of phraseology in my response to Sir Ken... :-))
> 
> 
> Advanced Format drives HAVE 4k sectors on the platters, init.
> The WD7500-BPKT is an Advanced Format drive.
> 
> But your criticism (He-who-etc.-etc.) has been helpful - if only
> to bump me back to reality.
> 
> My take away is:
> 
> On installation, fdisk partitioned the drive by default with the
> OpenBSD partition starting at...
> 
> Physical/LBA (512-byte) sector 64
> 
> (oh yes... nudge-nudge wink-wink)...
> 
> and subsequent OpenBSD partitions (i.e. logical partitions)
> starting on exact multiples of 4096bytes...
> 
> JUST BY ACCIDENT!!!

No, that isn't an accident. We moved the default fdisk start 1 sector some
time ago and changed a few thing in disklabel to make this happpen.

-Otto

> 
> Thanks for all the help, chaps.
> 
> Mike
> 
> P.S. The fact my block size in /home is 64k is my fault...



Re: Western Digital - Advanced Format

2013-06-02 Thread Matthew Dempsky
On Sun, Jun 2, 2013 at 8:40 PM, MD  wrote:
> Matt (May I call you "Matt"?),

No.



Re: Western Digital - Advanced Format

2013-06-02 Thread MD

On 03/06/13 04:11, Matthew Dempsky wrote:

On Sun, Jun 2, 2013 at 8:02 PM, MD  wrote:

I had sent my dmesg output for this board to dmesg@...


Thanks for doing that, but be aware that's a separate issue from
trying to get help here.  If you want help diagnosing a problem, you
should make things as easy as possible for the people helping you.
Don't make them have to go dig into the dmesg@ logs to try to find
your entry, especially when a lot of misc@ subscribers don't have
access to the dmesg@ logs.




Matt (May I call you "Matt"?),

Ahh, yes - you're repeating that I should provide dmesg as a
method of reminding me (and future visitors) of list etiquette.

Initially, I thought you were suggesting I couldn't read my
dmesg output. Red rag... (nudge-nudge, wink-wink)

:-

Good man.

Yep - agree entirely.

dmesg SHOULD be provided to gain assistance here.

Mike



Re: Western Digital - Advanced Format

2013-06-02 Thread Matthew Dempsky
On Sun, Jun 2, 2013 at 8:02 PM, MD  wrote:
> I had sent my dmesg output for this board to dmesg@...

Thanks for doing that, but be aware that's a separate issue from
trying to get help here.  If you want help diagnosing a problem, you
should make things as easy as possible for the people helping you.
Don't make them have to go dig into the dmesg@ logs to try to find
your entry, especially when a lot of misc@ subscribers don't have
access to the dmesg@ logs.



Re: Western Digital - Advanced Format

2013-06-02 Thread MD

On 03/06/13 03:41, Matthew Dempsky wrote:

On Sat, Jun 1, 2013 at 7:59 AM, MD  wrote:

dmesg indicates the drive reports 512 byte sectors


It sounds like you've resolved your problem already, but in the
future, if someone asks you for your dmesg output, you'll have better
luck if you post your actual dmesg output rather than trying to
summarize it.  The OpenBSD mailing list servers can handle the extra
couple kB of email. :)



Matthew,

I had sent my dmesg output for this board to dmesg@... some months
back so thought I'd just quote the relevant section on this occasion.
I realise Ken will not have read my dmesg ;-)

Nevertheless, you are right.

I HAVE changed the setup slightly since...
enabling AHCI (spot the deliberate mistake earlier?) for communicating
with hard drives AND slotting in a new Advanced Format hard-drive so I
suppose I ought to send it again to dmesg@...

I'll confirm (for others) that you were NOT "He-who-shall-etc-etc".
HE knows who HE is ;-

No, no, not HIM. Somebody else. ;-)

Onwards chaps. Onwards.

Mike



Re: Western Digital - Advanced Format

2013-06-02 Thread Matthew Dempsky
On Sat, Jun 1, 2013 at 7:59 AM, MD  wrote:
> dmesg indicates the drive reports 512 byte sectors

It sounds like you've resolved your problem already, but in the
future, if someone asks you for your dmesg output, you'll have better
luck if you post your actual dmesg output rather than trying to
summarize it.  The OpenBSD mailing list servers can handle the extra
couple kB of email. :)



Re: Western Digital - Advanced Format

2013-06-02 Thread MD

On 01/06/13 15:59, MD wrote:

On 01/06/13 12:56, Kenneth R Westerback wrote:

On Sat, Jun 01, 2013 at 07:38:50AM +0100, MD wrote:

Recently obtained WD7500-BPKT (750g) hard drive that apparently



Will Advanced Format Just Work(TM)?



If the drive claims to be using 512-byte sectors, everything should
work but potentially be slow due to the drive compensating for
i/o into the middle of 4K sectors.



 Ken




Thanks for the quick response Ken.

dmesg indicates the drive reports 512 byte sectors - bah humbug.

disklabel pushed start to sector 64, though.

Looks like I need to go back in and try to manually create the 4k
sectors by careful management of partition boundaries through
disklabel (I was going to DBAN it, anyway).




Dear He-who-shall-remain-nameless (You know who you are...) ;-
and List-friends,

A mere slip of phraseology in my response to Sir Ken... :-))


Advanced Format drives HAVE 4k sectors on the platters, init.
The WD7500-BPKT is an Advanced Format drive.

But your criticism (He-who-etc.-etc.) has been helpful - if only
to bump me back to reality.

My take away is:

On installation, fdisk partitioned the drive by default with the
OpenBSD partition starting at...

Physical/LBA (512-byte) sector 64

(oh yes... nudge-nudge wink-wink)...

and subsequent OpenBSD partitions (i.e. logical partitions)
starting on exact multiples of 4096bytes...

JUST BY ACCIDENT!!!

Thanks for all the help, chaps.

Mike

P.S. The fact my block size in /home is 64k is my fault...



Re: Western Digital - Advanced Format

2013-06-01 Thread MD

On 01/06/13 12:56, Kenneth R Westerback wrote:

On Sat, Jun 01, 2013 at 07:38:50AM +0100, MD wrote:

Recently obtained WD7500-BPKT (750g) hard drive that apparently



Will Advanced Format Just Work(TM)?




You do not show the dmesg so it's impossible to tell what the
kernel thinks the drive is claiming.

If the drive claims to be using 512-byte sectors, everything should
work but potentially be slow due to the drive compensating for
i/o into the middle of 4K sectors.

If the drive is claiming to be using 4K sectors then the partitions
should all have been automatically adjusted to start on 4K boundaries.

 Ken




Thanks for the quick response Ken.

dmesg indicates the drive reports 512 byte sectors - bah humbug.

disklabel pushed start to sector 64, though.

Looks like I need to go back in and try to manually create the 4k 
sectors by careful management of partition boundaries through

disklabel (I was going to DBAN it, anyway).
That was David Gwynne's initial suggestion and I've seen other
comments elsewhere regarding ensuring whole MB boundaries which
appear to suggest you can fool the drive into creating 4k sectors.

Experimentation perhaps...

Mike



Re: Western Digital - Advanced Format

2013-06-01 Thread Kenneth R Westerback
On Sat, Jun 01, 2013 at 07:38:50AM +0100, MD wrote:
> Recently obtained WD7500-BPKT (750g) hard drive that apparently
> possesses Advanced Format technology.
> On Intel D525MW board through ACPI.
> 
> On installation of 5.3-release, offered FFS (not FFS2) - ok ;-)
> 
> First partition auto-aligned at sector 64.
> I did not ensure partitions were at 4k multiples. Naughty!
> 
> Will Advanced Format Just Work(TM)?
> 
> disklabel seemed to broadly (rather than precisely) follow
> my 4.0g, 12.0g, etc. partition sizes
> OR do I need to go back in, use Expert mode now, and
> MAKE SURE those partitions are exact multiples of 8 sectors
> i.e. 64 to 2097216 = 1.0g for /?
> 
> I probably need to DBAN it again anyway but maybe I don't...
> 
> I can only find David Gwynne's comments on this so far...
> Your observations much appreciated.
> 
> Mike
> 
> P.S. I ignored the suggestion of only formatting 300g for /home
> and forced the whole lot at the end ;-) I expect I should have
> aligned the end of this too? (You numpty, Mike!)
> 

You do not show the dmesg so it's impossible to tell what the
kernel thinks the drive is claiming.

If the drive claims to be using 512-byte sectors, everything should
work but potentially be slow due to the drive compensating for
i/o into the middle of 4K sectors.

If the drive is claiming to be using 4K sectors then the partitions
should all have been automatically adjusted to start on 4K boundaries.

 Ken



Western Digital - Advanced Format

2013-05-31 Thread MD

Recently obtained WD7500-BPKT (750g) hard drive that apparently
possesses Advanced Format technology.
On Intel D525MW board through ACPI.

On installation of 5.3-release, offered FFS (not FFS2) - ok ;-)

First partition auto-aligned at sector 64.
I did not ensure partitions were at 4k multiples. Naughty!

Will Advanced Format Just Work(TM)?

disklabel seemed to broadly (rather than precisely) follow
my 4.0g, 12.0g, etc. partition sizes
OR do I need to go back in, use Expert mode now, and
MAKE SURE those partitions are exact multiples of 8 sectors
i.e. 64 to 2097216 = 1.0g for /?

I probably need to DBAN it again anyway but maybe I don't...

I can only find David Gwynne's comments on this so far...
Your observations much appreciated.

Mike

P.S. I ignored the suggestion of only formatting 300g for /home
and forced the whole lot at the end ;-) I expect I should have
aligned the end of this too? (You numpty, Mike!)