Re: [gentoo-user] Recovering RAID1 after disk failure

2011-06-17 Thread Mike Diehl
I've got my drive partitioned, but I WILL read up on sfdisk.  Thanks for the 
pointer.

On Friday 17 June 2011 12:27:15 am Andrea Conti wrote:
> Hello,
> 
> > However, the good drive started on sector 63 and the new drive want's to
> > start on sector 2048.  Fdisk won't let me create the partition table on
> > the new drive as it is on the old drive.
> 
> Recent versions of fdisk require partitions to begin on a 1MB boundary;
> this among other things guarantees that there are no alignment issues
> with 4k-sector drives.
> 
> If you really need to use fdisk for this task you can start it in
> compatibility mode (i.e. "fdisk -c=dos").
> 
> The recommended way of preparing the new drive, though, is to simply use
> sfdisk to copy the partition table from the existing one:
> 
> sfdisk -d  | sfdisk -L 
> 
> andrea

-- 

Take care and have fun,
Mike Diehl.



Re: [gentoo-user] Recovering RAID1 after disk failure

2011-06-17 Thread Andrea Conti
Hello,

> However, the good drive started on sector 63 and the new drive want's to 
> start 
> on sector 2048.  Fdisk won't let me create the partition table on the new 
> drive as it is on the old drive.

Recent versions of fdisk require partitions to begin on a 1MB boundary;
this among other things guarantees that there are no alignment issues
with 4k-sector drives.

If you really need to use fdisk for this task you can start it in
compatibility mode (i.e. "fdisk -c=dos").

The recommended way of preparing the new drive, though, is to simply use
sfdisk to copy the partition table from the existing one:

sfdisk -d  | sfdisk -L 

andrea



Re: [gentoo-user] Recovering RAID1 after disk failure

2011-06-17 Thread Mike Diehl
Looks like I can take it from here!  Thank you.  I didn't know fdisk had an 
"expert" menu 

On Thursday 16 June 2011 11:14:30 pm Paul Hartman wrote:
> On Thu, Jun 16, 2011 at 10:00 PM, Mike Diehl  wrote:
> > I've got a sw RAID1 that just had a failed drive replaced with an
> > identical drive.
> > 
> > However, the good drive started on sector 63 and the new drive want's to
> > start on sector 2048.  Fdisk won't let me create the partition table on
> > the new drive as it is on the old drive.
> 
> Hi Mike,
> 
> I believe this is due to the alignment code in newer versions of fdisk
> (2048 sector = 1 megabyte)
> 
> I think you can use the expert menu in fdisk ("x" from the main menu)
> to achieve what you're trying to do. I can't tell you the exact steps
> but I am 99.9% sure it can be done.

-- 

Take care and have fun,
Mike Diehl.



Re: [gentoo-user] Recovering RAID1 after disk failure

2011-06-16 Thread Paul Hartman
On Thu, Jun 16, 2011 at 10:00 PM, Mike Diehl  wrote:
> I've got a sw RAID1 that just had a failed drive replaced with an identical
> drive.
>
> However, the good drive started on sector 63 and the new drive want's to start
> on sector 2048.  Fdisk won't let me create the partition table on the new
> drive as it is on the old drive.

Hi Mike,

I believe this is due to the alignment code in newer versions of fdisk
(2048 sector = 1 megabyte)

I think you can use the expert menu in fdisk ("x" from the main menu)
to achieve what you're trying to do. I can't tell you the exact steps
but I am 99.9% sure it can be done.