All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjammin2068 <benjammin2068@gmail.com>
To: Wols Lists <antlists@youngman.org.uk>
Cc: Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: Best tool to partition Drives with new sector geometry - (WAS: Need Help with crashed RAID5 (that was rebuilding and then had SATA error on another drive))
Date: Sun, 18 Sep 2016 16:29:39 -0500	[thread overview]
Message-ID: <03f24dac-c34b-31d0-a514-0d9c99e07fd2@gmail.com> (raw)
In-Reply-To: <57DF055E.9060102@youngman.org.uk>

On 09/18/2016 04:21 PM, Wols Lists wrote:
> On 18/09/16 20:58, Benjammin2068 wrote:
>> Aha! That's what I needed to know.
>>
>> I was wondering if I can make a partition (I think) that's 3/4 of a block larger (3072bytes) than the original /dev/sdX1's on the old HD103SJs drives.
> Good. It's a bit like string logic - if the buffer is bigger than the
> string everything's fine, but if the string is bigger than the buffer,
> well, ooopppssssss.
>
> Basically, I think the root cause of all this mess is that drive
> sectors/blocks/whatever used to be 512 bytes. So, obviously, it made
> sense to have sector 0 be the boot sector, and your first partition
> started in sector 1. If your drives are small, you don't want to waste
> space.
>
> Then the new drives came along with 4K sectors. Aarghh. Put an old-style
> partition scheme on a new-style drive, and every OS 4K block would start
> in the 2nd 512-byte block of a 4K drive sector. So every disk write from
> the OS would force the drive to read two sectors from disk, overlay the
> OS block over them, and write them both back. Not nice. And the latest
> drives refuse to do that!

hah.. yea.. I remember when it happened (and why). (I still have a seagate ST-251 40MB MFM HD sitting in a box with my Atari software on it. Right  now, it's Schrodinger's drive. It still working as long as I don't pull it out and test it. LoL....)

Drive companies claimed (and maybe rightfully so) that the 512B sector with all the seeks required to read data was wasteful. (considering the armature movement needed for scattered files and people who didn't defrag their drives.)

Also, the number of sectors that could be numbered on a drive was an issue with the sizes of drives coming out.

a 2^32 sectors @ 512bytes = 2,199,023,255,552 <-- doesn't that number ring a bell. ;)

So they moved to bigger sector sizes.

> Which is one of the reasons why modern partitioning programs start the
> first partition - iirc - at the start of the 3rd megabyte of the disk.
> Leaving plenty of space for the boot/startup code.

Yup. Now with all the bootloaders...

>
> So it's not worth replicating your old partitions directly on the new
> drives. Just make sure the new drives are the same size (or a bit
> larger) than the old ones, and move the data across. Bit like copying a
> string :-)

Sounds good. I was more worried about the specifics of the partition and how mdadm sees a larger sized partition -- NOT just a larger sized drive. (on which a same size partition could be built)

Thanks again,

 -Ben



  reply	other threads:[~2016-09-18 21:29 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-22 21:51 Need Help with crashed RAID5 (that was rebuilding and then had SATA error on another drive) Ben Kamen
2016-08-22 23:06 ` Adam Goryachev
2016-08-23 11:36   ` Wols Lists
2016-08-23 15:44     ` Ben
     [not found]   ` <CADDTLRBf9NPO6OuF4a3b+xffZgeZRqHRG+pJdPmbc9-Jat0HVQ@mail.gmail.com>
     [not found]     ` <d6d3fe0d-3f9f-985f-9bfb-051428cf221b@websitemanagers.com.au>
     [not found]       ` <57BBDA5B.3020706@gmail.com>
     [not found]         ` <57BBDC15.5030301@gmail.com>
     [not found]           ` <b8c6a380-7e6a-fda9-5834-b85271b26892@websitemanagers.com.au>
     [not found]             ` <57BC61F7.8070102@gmail.com>
     [not found]               ` <aca4e83f-9a3f-c200-7c16-3b5d9df52c1e@websitemanagers.com.au>
     [not found]                 ` <57BE450B.4030700@gmail.com>
     [not found]                   ` <56e86db5-456d-e9c1-339d-ba8903fe5dde@websitemanagers.com.au>
     [not found]                     ` <57BE52BC.6040908@gmail.com>
     [not found]                       ` <933228e0-bce4-ffad-f48d-034bf89bc07f@websitemanagers.com.au>
2016-08-26  1:20                         ` Ben
2016-08-26  2:22                           ` Phil Turmel
2016-08-26  2:54                             ` Benjammin2068
2016-08-26 12:38                               ` Phil Turmel
2016-08-26 18:07                           ` Wols Lists
2016-08-28 18:29                             ` Benjammin2068
2016-08-28 19:20                               ` Anthony Youngman
2016-08-29  1:23                                 ` Benjammin2068
2016-08-28 23:54                               ` Adam Goryachev
2016-08-29  1:25                                 ` Benjammin2068
2016-08-29 11:19                                   ` Wols Lists
2016-09-18 17:13                                     ` Best tool to partition Drives with new sector geometry - (WAS: Need Help with crashed RAID5 (that was rebuilding and then had SATA error on another drive)) Benjammin2068
2016-09-18 17:50                                       ` Chris Murphy
2016-09-18 18:41                                         ` Benjammin2068
2016-09-18 19:17                                           ` Wols Lists
2016-09-18 19:58                                             ` Benjammin2068
2016-09-18 21:21                                               ` Wols Lists
2016-09-18 21:29                                                 ` Benjammin2068 [this message]
2016-09-19  6:25                                                   ` Wols Lists
2016-09-19 16:17                                                     ` Benjammin2068
2016-09-18 18:08                                       ` Benjammin2068

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=03f24dac-c34b-31d0-a514-0d9c99e07fd2@gmail.com \
    --to=benjammin2068@gmail.com \
    --cc=antlists@youngman.org.uk \
    --cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.