NetBSD-Users archive

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

GPT BIOS boot



Hello

I migrated a RAID setup from MBR to GPT and I have trouble getting
it booting again, using legacy BIOS boot.

The GPT, RAID and wedges setup are listed below.

I ran: 
gpt biosboot -A -i 2 wd0
installboot /dev/rdk1 bootxx_ffsv2
gpt biosboot -A -i 2 wd1
installboot /dev/rdk4 bootxx_ffsv2
gpt biosboot -A -i 1 raid0
installboot /dev/rdk6 bootxx_ffsv2

On startup, I see NetBSD fffv2 primary bootstrap messages 
telling /boot cannot be found. 

If I boot over an INSTALL kernel, I can mount NAME=root /mnt
without any trouble, and /mnt/boot is there.

Any idea? I also tried EFI boot but without better success.

# gpt show wd0
        start         size  index  contents
            0            1         PMBR
            1            1         Pri GPT header
            2           32         Pri GPT table
           34         1950      1  GPT part - EFI System
         1984  11687488719      2  GPT part - NetBSD RAIDFrame component
  11687490703     33554432      3  GPT part - NetBSD swap
  11721045135           32         Sec GPT table
  11721045167            1         Sec GPT header

# dkctl wd0 listwedges
/dev/rwd0d: 3 wedges:
dk0: efi@wd0, 1950 blocks at 34, type: msdos
dk1: raid0@wd0, 11687488719 blocks at 1984, type: raidframe
dk2: swap@wd0, 33554432 blocks at 11687490703, type: swap

# gpt show wd1
        start         size  index  contents
            0            1         PMBR
            1            1         Pri GPT header
            2           32         Pri GPT table
           34         1950      1  GPT part - EFI System
         1984  11687488719      2  GPT part - NetBSD RAIDFrame component
  11687490703     33554432      3  GPT part - NetBSD swap
  11721045135           32         Sec GPT table
  11721045167            1         Sec GPT header

# dkctl wd1 listwedges
/dev/rwd1d: 3 wedges:
dk3: efi@wd1, 1950 blocks at 34, type: msdos
dk4: raid0@wd1, 11687488719 blocks at 1984, type: raidframe
dk5: swap@wd1, 33554432 blocks at 11687490703, type: swap

# raidctl -s raid0
Components:
            /dev/dk1: optimal
            /dev/dk4: optimal
No spares.
Component label for /dev/dk1:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 20190528, Mod Counter: 516
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 11687488640
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Force
   Last configured as: raid0
Component label for /dev/dk4:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 20190528, Mod Counter: 516
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 11687488640
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Force
   Last configured as: raid0
Parity status: DIRTY
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.

# gpt show raid0
        start         size  index  contents
            0            1         PMBR
            1            1         Pri GPT header
            2           32         Pri GPT table
           34           30         
           64  11687488543      1  GPT part - NetBSD FFSv1/FFSv2
  11687488607           32         Sec GPT table
  11687488639            1         Sec GPT header

# dkctl raid0 listwedges
/dev/rraid0d: 1 wedge:
dk6: root, 11687488543 blocks at 64, type: ffs

# mount NAME=root /mnt
# ls -l /mnt/boot
-r--r--r--  1 root  wheel  74616 May 29 14:27 /mnt/boot

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index