NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Adding Raidframe to existent GPT system
On Mon, May 09, 2022 at 10:01:47AM -0400, César Catrián C. wrote:
> Got three drives, two for a RAID-1 array and one more for backup.
You need a GPT like this on the two disks for the array:
# gpt show wd0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 2014 Unused
2048 65536 1 GPT part - EFI System
67584 11720976384 2 GPT part - NetBSD RAIDFrame component
11721043968 1167 Unused
11721045135 32 Sec GPT table
11721045167 1 Sec GPT header
(identical for wd1). Then you will get two dkN devices that correspond to
the "NetBSD RAIDFrame component" partition, e.g. I have dk0 and dk2 for
the two EFI partitions, and dk1 and dk3 for the two raidframe components.
You can list these via "dkctl wd0 listwedges".
You then create the raid from dk1 and dk3 and initialize it, this gives
you a "raid0" disk.
Then you create a gpt on raid0 (e.g. putting a FFS and a swap partition there).
The two (identical) EFI partitions are not strictly needed (one would
do), but my theory was to allow booting from either disk if one of them
fails completely.
Martin
Home |
Main Index |
Thread Index |
Old Index