Re: UEFI using loader.env currdev limited to only disks 3-5 on 6 disk server using 13.1 with UFS file systems

From: Abner Gershon <6731955_at_gmail.com>
Date: Mon, 24 Oct 2022 02:34:44 UTC
I would like to retract this email. Problem was that the root partition I
was trying to point to was full and I did not realize it. Once I made room
on the new target root file system UEFI boot was successful and currdev was
set from loader.env.

On Sun, Oct 23, 2022 at 9:31 PM Abner Gershon <6731955@gmail.com> wrote:

> UFS file systems only ( ZFS kernel module not loaded ) (and msdos fat-32
> for ESP partitions )
>
> OS: 13.1-RELEASE
>
> Hardware: Dell r710, H200 HBA in IT mode (  SAS2008 PCI-Express Fusion-MPT
> SAS-2  )
>
>
>
> I have created ESP partitions with /EFI/freeBSD/loader.efi and
> /EFI/FreeBSD/loader.env on each of my 6 HDDs.
>
>
>
> I also have a root partition copied from full install on disk /dev/da0 to
> the other disks with minor adjustments to /etc/fstab to set
>
> Root directory to self, eg for /dev/da3 fstab entry is “/dev/da3pn   /
> rw   1  1”.
>
>
>
> I used efibootmgr to create EFI entries to boot each disk.
>
>
>
> Currdev=disk3pn:, currdev=disk4pn:, and currdev=5pn: ( n=root partition)
> works for /dev/da0,/dev/da2, and /dev/da1 respectively.
>
> I have experimented with currdev=disk0,disk1,disk2,disk6,and disk7 in
> trying to use esp partitions on dev/da3-5 but none of these values are
> acted upon. Rather currdev defaults to disk2p1 for each of these other
> values.
>
>
>
> root@server:/usr/home/me # pciconf -lv
>
> hostb0@pci0:0:0:0:      class=0x060000 rev=0x13 hdr=0x00 vendor=0x8086
> device=0x3406 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '5520 I/O Hub to ESI Port'
>
>     class      = bridge
>
>     subclass   = HOST-PCI
>
> pcib1@pci0:0:1:0:       class=0x060400 rev=0x13 hdr=0x01 vendor=0x8086
> device=0x3408 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '5520/5500/X58 I/O Hub PCI Express Root Port 1'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> pcib2@pci0:0:3:0:       class=0x060400 rev=0x13 hdr=0x01 vendor=0x8086
> device=0x340a subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '5520/5500/X58 I/O Hub PCI Express Root Port 3'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> pcib3@pci0:0:4:0:       class=0x060400 rev=0x13 hdr=0x01 vendor=0x8086
> device=0x340b subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '5520/X58 I/O Hub PCI Express Root Port 4'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> pcib4@pci0:0:5:0:       class=0x060400 rev=0x13 hdr=0x01 vendor=0x8086
> device=0x340c subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '5520/X58 I/O Hub PCI Express Root Port 5'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> pcib5@pci0:0:6:0:       class=0x060400 rev=0x13 hdr=0x01 vendor=0x8086
> device=0x340d subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '5520/X58 I/O Hub PCI Express Root Port 6'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> pcib6@pci0:0:7:0:       class=0x060400 rev=0x13 hdr=0x01 vendor=0x8086
> device=0x340e subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '5520/5500/X58 I/O Hub PCI Express Root Port 7'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> pcib7@pci0:0:9:0:       class=0x060400 rev=0x13 hdr=0x01 vendor=0x8086
> device=0x3410 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '7500/5520/5500/X58 I/O Hub PCI Express Root Port 9'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> none0@pci0:0:20:0:      class=0x080000 rev=0x13 hdr=0x00 vendor=0x8086
> device=0x342e subvendor=0x0000 subdevice=0x0000
>
>     vendor     = 'Intel Corporation'
>
>     device     = '7500/5520/5500/X58 I/O Hub System Management Registers'
>
>     class      = base peripheral
>
>     subclass   = interrupt controller
>
> none1@pci0:0:20:1:      class=0x080000 rev=0x13 hdr=0x00 vendor=0x8086
> device=0x3422 subvendor=0x0000 subdevice=0x0000
>
>     vendor     = 'Intel Corporation'
>
>     device     = '7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad
> Registers'
>
>     class      = base peripheral
>
>     subclass   = interrupt controller
>
> none2@pci0:0:20:2:      class=0x080000 rev=0x13 hdr=0x00 vendor=0x8086
> device=0x3423 subvendor=0x0000 subdevice=0x0000
>
>     vendor     = 'Intel Corporation'
>
>     device     = '7500/5520/5500/X58 I/O Hub Control Status and RAS
> Registers'
>
>     class      = base peripheral
>
>     subclass   = interrupt controller
>
> uhci0@pci0:0:26:0:      class=0x0c0300 rev=0x02 hdr=0x00 vendor=0x8086
> device=0x2937 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801I (ICH9 Family) USB UHCI Controller'
>
>     class      = serial bus
>
>     subclass   = USB
>
> uhci1@pci0:0:26:1:      class=0x0c0300 rev=0x02 hdr=0x00 vendor=0x8086
> device=0x2938 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801I (ICH9 Family) USB UHCI Controller'
>
>     class      = serial bus
>
>     subclass   = USB
>
> ehci0@pci0:0:26:7:      class=0x0c0320 rev=0x02 hdr=0x00 vendor=0x8086
> device=0x293c subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801I (ICH9 Family) USB2 EHCI Controller'
>
>     class      = serial bus
>
>     subclass   = USB
>
> uhci2@pci0:0:29:0:      class=0x0c0300 rev=0x02 hdr=0x00 vendor=0x8086
> device=0x2934 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801I (ICH9 Family) USB UHCI Controller'
>
>     class      = serial bus
>
>     subclass   = USB
>
> uhci3@pci0:0:29:1:      class=0x0c0300 rev=0x02 hdr=0x00 vendor=0x8086
> device=0x2935 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801I (ICH9 Family) USB UHCI Controller'
>
>     class      = serial bus
>
>     subclass   = USB
>
> ehci1@pci0:0:29:7:      class=0x0c0320 rev=0x02 hdr=0x00 vendor=0x8086
> device=0x293a subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801I (ICH9 Family) USB2 EHCI Controller'
>
>     class      = serial bus
>
>     subclass   = USB
>
> pcib8@pci0:0:30:0:      class=0x060401 rev=0x92 hdr=0x01 vendor=0x8086
> device=0x244e subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801 PCI Bridge'
>
>     class      = bridge
>
>     subclass   = PCI-PCI
>
> isab0@pci0:0:31:0:      class=0x060100 rev=0x02 hdr=0x00 vendor=0x8086
> device=0x2918 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801IB (ICH9) LPC Interface Controller'
>
>     class      = bridge
>
>     subclass   = PCI-ISA
>
> atapci0@pci0:0:31:2:    class=0x01018f rev=0x02 hdr=0x00 vendor=0x8086
> device=0x2921 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Intel Corporation'
>
>     device     = '82801IB (ICH9) 2 port SATA Controller [IDE mode]'
>
>     class      = mass storage
>
>     subclass   = ATA
>
> bce0@pci0:1:0:0:        class=0x020000 rev=0x20 hdr=0x00 vendor=0x14e4
> device=0x1639 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Broadcom Inc. and subsidiaries'
>
>     device     = 'NetXtreme II BCM5709 Gigabit Ethernet'
>
>     class      = network
>
>     subclass   = ethernet
>
> bce1@pci0:1:0:1:        class=0x020000 rev=0x20 hdr=0x00 vendor=0x14e4
> device=0x1639 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Broadcom Inc. and subsidiaries'
>
>     device     = 'NetXtreme II BCM5709 Gigabit Ethernet'
>
>     class      = network
>
>     subclass   = ethernet
>
> bce2@pci0:2:0:0:        class=0x020000 rev=0x20 hdr=0x00 vendor=0x14e4
> device=0x1639 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Broadcom Inc. and subsidiaries'
>
>     device     = 'NetXtreme II BCM5709 Gigabit Ethernet'
>
>     class      = network
>
>     subclass   = ethernet
>
> bce3@pci0:2:0:1:        class=0x020000 rev=0x20 hdr=0x00 vendor=0x14e4
> device=0x1639 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Broadcom Inc. and subsidiaries'
>
>     device     = 'NetXtreme II BCM5709 Gigabit Ethernet'
>
>     class      = network
>
>     subclass   = ethernet
>
> mps0@pci0:3:0:0:        class=0x010700 rev=0x03 hdr=0x00 vendor=0x1000
> device=0x0072 subvendor=0x1028 subdevice=0x1f1e
>
>     vendor     = 'Broadcom / LSI'
>
>     device     = 'SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon]'
>
>     class      = mass storage
>
>     subclass   = SAS
>
> mps1@pci0:6:0:0:        class=0x010700 rev=0x03 hdr=0x00 vendor=0x1000
> device=0x0072 subvendor=0x1000 subdevice=0x3080
>
>     vendor     = 'Broadcom / LSI'
>
>     device     = 'SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon]'
>
>     class      = mass storage
>
>     subclass   = SAS
>
> vgapci0@pci0:8:3:0:     class=0x030000 rev=0x0a hdr=0x00 vendor=0x102b
> device=0x0532 subvendor=0x1028 subdevice=0x0235
>
>     vendor     = 'Matrox Electronics Systems Ltd.'
>
>     device     = 'MGA G200eW WPCM450'
>
>    class      = display
>
>     subclass   = VGA
>
>
>
>
>
> root@server:/usr/home/me # mpsutil show devices
>
> B____T    SAS Address      Handle  Parent    Device        Speed Enc
> Slot  Wdt
>
> 00   09   5000c500aea28359 0009    0001      SAS Target    6.0   0001
> 01    1
>
> 00   08   5000c500aea273b9 000a    0002      SAS Target    6.0   0001
> 00    1
>
> 00   07   5000c500aea28d9d 000b    0003      SAS Target    6.0   0001
> 07    1
>
> 00   00   5000c50026029eb5 000c    0004      SAS Target    6.0   0001
> 06    1
>
> 00   05   5000c50026353ced 000d    0005      SAS Target    6.0   0001
> 05    1
>
> 00   02   5000c50026398b99 000e    0006      SAS Target    6.0   0001
> 04    1
>
>
>
> root@server:/usr/home/me # geom disk list
>
> Geom name: cd0
>
> Providers:
>
> 1. Name: cd0
>
>    Mediasize: 0 (0B)
>
>    Sectorsize: 2048
>
>    Mode: r0w0e0
>
>    descr: PLDS DVD+-RW DS-8A5SH
>
>    ident: (null)
>
>    rotationrate: unknown
>
>    fwsectors: 0
>
>    fwheads: 0
>
>
>
> Geom name: da0
>
> Providers:
>
> 1. Name: da0
>
>    Mediasize: 2000398934016 (1.8T)
>
>    Sectorsize: 512
>
>    Mode: r4w4e11
>
>    descr: SEAGATE ST32000445SS
>
>    lunid: 5000c50026029eb7
>
>    ident: 9WM3HM7S000091276092
>
>    rotationrate: 7200
>
>    fwsectors: 63
>
>    fwheads: 255
>
>
>
> Geom name: da1
>
> Providers:
>
> 1. Name: da1
>
>    Mediasize: 2000398934016 (1.8T)
>
>    Sectorsize: 512
>
>    Mode: r3w3e7
>
>    descr: SEAGATE ST32000445SS
>
>    lunid: 5000c50026398b9b
>
>    ident: 9WM3FCCR00009132QN1D
>
>    rotationrate: 7200
>
>    fwsectors: 63
>
>    fwheads: 255
>
>
>
> Geom name: da2
>
> Providers:
>
> 1. Name: da2
>
>    Mediasize: 2000398934016 (1.8T)
>
>    Sectorsize: 512
>
>    Mode: r2w2e6
>
>    descr: SEAGATE ST32000445SS
>
>    lunid: 5000c50026353cef
>
>    ident: 9WM4701400009129VPSF
>
>    rotationrate: 7200
>
>    fwsectors: 63
>
>    fwheads: 255
>
>
>
> Geom name: da3
>
> Providers:
>
> 1. Name: da3
>
>    Mediasize: 6001175126016 (5.5T)
>
>    Sectorsize: 512
>
>    Stripesize: 4096
>
>    Stripeoffset: 0
>
>    Mode: r1w1e3
>
>    descr: SEAGATE ST6000NM0285
>
>    lunid: 5000c500aea28d9f
>
>    ident: ZAD9FHEW0000C00559U2
>
>    rotationrate: 7200
>
>    fwsectors: 63
>
>    fwheads: 255
>
>
>
> Geom name: da4
>
> Providers:
>
> 1. Name: da4
>
>    Mediasize: 6001175126016 (5.5T)
>
>    Sectorsize: 512
>
>    Stripesize: 4096
>
>    Stripeoffset: 0
>
>    Mode: r1w1e3
>
>    descr: SEAGATE ST6000NM0285
>
>    lunid: 5000c500aea273bb
>
>    ident: ZAD9FHSY0000C0086NPS
>
>    rotationrate: 7200
>
>    fwsectors: 63
>
>    fwheads: 255
>
>
>
> Geom name: da5
>
> Providers:
>
> 1. Name: da5
>
>    Mediasize: 6001175126016 (5.5T)
>
>    Sectorsize: 512
>
>    Stripesize: 4096
>
>    Stripeoffset: 0
>
>    Mode: r1w1e3
>
>    descr: SEAGATE ST6000NM0285
>
>    lunid: 5000c500aea2835b
>
>    ident: ZAD9F90F0000C0088RN4
>
>    rotationrate: 7200
>
>    fwsectors: 63
>
>    fwheads: 255
>
>
>
>
>
>
>
> root@server:/usr/home/me # foreach n ( 0 1 2 3 4 5 )
>
> foreach? diskinfo -v /dev/da$n
>
> foreach? end
>
> /dev/da0
>
>         512             # sectorsize
>
>         2000398934016   # mediasize in bytes (1.8T)
>
>         3907029168      # mediasize in sectors
>
>         0               # stripesize
>
>         0               # stripeoffset
>
>         243201          # Cylinders according to firmware.
>
>         255             # Heads according to firmware.
>
>         63              # Sectors according to firmware.
>
>         SEAGATE ST32000445SS    # Disk descr.
>
>         9WM3HM7S000091276092    # Disk ident.
>
>         mps0            # Attachment
>
>         No              # TRIM/UNMAP support
>
>         7200            # Rotation rate in RPM
>
>         Not_Zoned       # Zone Mode
>
>
>
> /dev/da1
>
>         512             # sectorsize
>
>         2000398934016   # mediasize in bytes (1.8T)
>
>         3907029168      # mediasize in sectors
>
>         0               # stripesize
>
>         0               # stripeoffset
>
>         243201          # Cylinders according to firmware.
>
>         255             # Heads according to firmware.
>
>         63              # Sectors according to firmware.
>
>         SEAGATE ST32000445SS    # Disk descr.
>
>         9WM3FCCR00009132QN1D    # Disk ident.
>
>         mps0            # Attachment
>
>         No              # TRIM/UNMAP support
>
>         7200            # Rotation rate in RPM
>
>         Not_Zoned       # Zone Mode
>
>
>
> /dev/da2
>
>         512             # sectorsize
>
>         2000398934016   # mediasize in bytes (1.8T)
>
>         3907029168      # mediasize in sectors
>
>         0               # stripesize
>
>         0               # stripeoffset
>
>         243201          # Cylinders according to firmware.
>
>         255             # Heads according to firmware.
>
>         63              # Sectors according to firmware.
>
>         SEAGATE ST32000445SS    # Disk descr.
>
>         9WM4701400009129VPSF    # Disk ident.
>
>         mps0            # Attachment
>
>         No              # TRIM/UNMAP support
>
>         7200            # Rotation rate in RPM
>
>         Not_Zoned       # Zone Mode
>
>
>
> /dev/da3
>
>         512             # sectorsize
>
>         6001175126016   # mediasize in bytes (5.5T)
>
>         11721045168     # mediasize in sectors
>
>         4096            # stripesize
>
>         0               # stripeoffset
>
>         729601          # Cylinders according to firmware.
>
>         255             # Heads according to firmware.
>
>         63              # Sectors according to firmware.
>
>         SEAGATE ST6000NM0285    # Disk descr.
>
>         ZAD9FHEW0000C00559U2    # Disk ident.
>
>         mps0            # Attachment
>
>         No              # TRIM/UNMAP support
>
>         7200            # Rotation rate in RPM
>
>         Not_Zoned       # Zone Mode
>
>
>
> /dev/da4
>
>         512             # sectorsize
>
>         6001175126016   # mediasize in bytes (5.5T)
>
>         11721045168     # mediasize in sectors
>
>         4096            # stripesize
>
>         0               # stripeoffset
>
>         729601          # Cylinders according to firmware.
>
>         255             # Heads according to firmware.
>
>         63              # Sectors according to firmware.
>
>         SEAGATE ST6000NM0285    # Disk descr.
>
>         ZAD9FHSY0000C0086NPS    # Disk ident.
>
>         mps0            # Attachment
>
>         No              # TRIM/UNMAP support
>
>         7200            # Rotation rate in RPM
>
>         Not_Zoned       # Zone Mode
>
>
>
> /dev/da5
>
>         512             # sectorsize
>
>         6001175126016   # mediasize in bytes (5.5T)
>
>         11721045168     # mediasize in sectors
>
>         4096            # stripesize
>
>         0               # stripeoffset
>
>         729601          # Cylinders according to firmware.
>
>         255             # Heads according to firmware.
>
>         63              # Sectors according to firmware.
>
>         SEAGATE ST6000NM0285    # Disk descr.
>
>         ZAD9F90F0000C0088RN4    # Disk ident.
>
>         mps0            # Attachment
>
>         No              # TRIM/UNMAP support
>
>         7200            # Rotation rate in RPM
>
>         Not_Zoned       # Zone Mode
>
>
>
> -Avner
>