NetBSD-Users archive

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

Re: Raid and UEFI



On Mon, 2022-11-21 at 08:07 +0100, Martin Husemann wrote:
> 
> I have a GPT setup on two disks, both disks have a EFI system
> partition
> first and then a RAID partition for the rest of the disk. The
> bootloader
> is available in both EFI partitions.
> 
> The raid then is further partitioned (again with GPT) into / and
> swap.
> 
> Example output (identical for wd1 besides the "Label:" lines):
> 
> # gpt show -a 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
>                                  Type: efi
>                                  TypeID: c12a7328-f81f-11d2-ba4b-
> 00a0c93ec93b
>                                  GUID: 88f350e6-1865-4a7c-8f88-
> eb769e72cf6d
>                                  Size: 32768 K
>                                  Label: EFI Boot 0
>                                  Attributes: None
>         67584  11720976384      2  GPT part - NetBSD RAIDFrame
> component
>                                  Type: raid
>                                  TypeID: 49f48daa-b10e-11dc-b99b-
> 0019d1879648
>                                  GUID: f5a7fd17-4a04-4477-96af-
> 7ee5aee3ad1a
>                                  Size: 5589 G
>                                  Label: raid 0 col 0
>                                  Attributes: bootme
>   11721043968         1167         Unused
>   11721045135           32         Sec GPT table
>   11721045167            1         Sec GPT header
> 
> The two "Type: raid" partitions create raid0 and that looks like:
> 
> # gpt show -a raid0
>         start         size  index  contents
>             0            1         PMBR
>             1            1         Pri GPT header
>             2           32         Pri GPT table
>            34         2014         Unused
>          2048     67108864      1  GPT part - NetBSD swap
>                                  Type: swap
>                                  TypeID: 49f48d32-b10e-11dc-b99b-
> 0019d1879648
>                                  GUID: 141ade49-483a-44fb-a673-
> c6b893387e08
>                                  Size: 32768 M
>                                  Label: emmas swap
>                                  Attributes: None
>      67110912  11653863424      2  GPT part - NetBSD FFSv1/FFSv2
>                                  Type: ffs
>                                  TypeID: 49f48d5a-b10e-11dc-b99b-
> 0019d1879648
>                                  GUID: e4239337-4940-40f8-af44-
> 723acad9fb3e
>                                  Size: 5557 G
>                                  Label: emmas root
>                                  Attributes: bootme
>   11720974336         1887         Unused
>   11720976223           32         Sec GPT table
>   11720976255            1         Sec GPT header
> 
> 
> and then /etc/fstab looks like:
> 
> # cat /etc/fstab 
> NAME=emmas\ root        /       ffs     rw,log           1 1
> NAME=emmas\ swap        none    swap    sw,dp            0 0
> /dev/wd2a       /var    ffs     rw                      2 2
> kernfs          /kern   kernfs  rw
> ptyfs           /dev/pts        ptyfs   rw
> tmpfs           /tmp    tmpfs   rw,-m1777,-sram%25
> procfs          /proc   procfs  rw
> # tmpfs /var/shm        tmpfs   rw,-m1777,-sram%25
> 
> 
> Martin

Sadly I discovered that the HP Proliant microserver the installation
was for doesn't grok UEFI and only deals with bios booting. I did have
an attempt to get it to install with raid on gpt but then fell foul of
pr 44982. So for this system its back to traditional mbr layout...

Dae


Home | Main Index | Thread Index | Old Index