Re: softraid(4) disks are of wrong size

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Unangst
Date: Sunday, December 19, 2010 - 3:32 pm

On Sun, Dec 19, 2010 at 11:15 AM, Marco Peereboom <slash@peereboom.us> wrote:

I can repro.  Crypto raid.

sd0g: size 20986560  this is the real disk

sd1a: 20985952 offset 64
sd1c: 20986033

softraid reserves metaoffset + metasize + loadersize + bootblocks ==
528 sectors.

20986560 - 528 = 20986032

So that's one smaller than the fake disk thinks it is.

Lucky for me, my 'a' partition with the filesystem is only 20985952 +
64 = 20986016 sectors, so it didn't try to use the last few.

Numbers again, minus prefix:

Base disk: 560
Space after SR meta: 32
SR disk's claimed 'c' size: 33
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
softraid(4) disks are of wrong size, Andreas Bartelt, (Sun Dec 19, 6:17 am)
Re: softraid(4) disks are of wrong size, Marco Peereboom, (Sun Dec 19, 9:15 am)
Re: softraid(4) disks are of wrong size, Andreas Bartelt, (Sun Dec 19, 9:47 am)
Re: softraid(4) disks are of wrong size, Nick Holland, (Sun Dec 19, 9:51 am)
Re: softraid(4) disks are of wrong size, Otto Moerbeek, (Sun Dec 19, 10:16 am)
Re: softraid(4) disks are of wrong size, Kenneth R Westerback, (Sun Dec 19, 2:28 pm)
Re: softraid(4) disks are of wrong size, Ted Unangst, (Sun Dec 19, 3:32 pm)
Re: softraid(4) disks are of wrong size, David Gwynne, (Sun Dec 19, 11:26 pm)
Re: softraid(4) disks are of wrong size, David Gwynne, (Mon Dec 20, 1:24 am)
Re: softraid(4) disks are of wrong size, Andreas Bartelt, (Mon Dec 20, 3:50 am)
Re: softraid(4) disks are of wrong size, Kenneth R Westerback, (Mon Dec 20, 6:06 am)
Re: softraid(4) disks are of wrong size, Kenneth R Westerback, (Mon Dec 20, 6:09 am)
Re: softraid(4) disks are of wrong size, Kenneth R Westerback, (Mon Dec 20, 8:02 am)
Re: softraid(4) disks are of wrong size, Kenneth R Westerback, (Mon Dec 20, 10:26 am)
Re: softraid(4) disks are of wrong size, Andreas Bartelt, (Mon Dec 20, 10:59 am)
Re: softraid(4) disks are of wrong size, Marco Peereboom, (Mon Dec 20, 12:18 pm)