tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting up raid correctly



On Sun, Feb 24, 2013 at 05:11:19PM +0100, Manuel Bouyer wrote:
> > spectre# gpt add -t ffs wd3
> 
> You didn't understand what I wrote. You have to create the partition on wd3
> *after* setting up the raid1 and creating the filesystem on it.
> The start of the partition on wd3 has to match the location of the ffs
> on raid1, shifted by the raid1 metadata, which, I think, is 128 sectors.

Probably actually 64.

Think of 'raid' as generating a new disk with its own partition table.

There is a plain an simple hack in the boot code to look an extra
64 sectors down what it thought was the root fs is the fs is invalid.
This makes it possible to boot from raid1.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index