Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Sep 2024 11:40:24 +0200
From:      Ludovit Koren <ludovit.koren@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   ZFS boot devices specification
Message-ID:  <86y146zbef.fsf@gmail.com>

next in thread | raw e-mail | index | archive | help

Hi,

I cannot find the recommended way to specify the devices to boot from on
13.4-STABLE FreeBSD 13.4-STABLE stable/13-n258224-f702110bc4bc. I am
using internal disks for the system and external for data:

# gmultipath list
Geom name: DellEMC
Type: AUTOMATIC
Mode: Active/Active
UUID: b1d143d0-577d-11ee-b35f-b47af1b52de4
State: OPTIMAL
Providers:
1. Name: multipath/DellEMC
   Mediasize: 536870911488 (500G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   State: OPTIMAL
Consumers:
1. Name: da3
   Mediasize: 536870912000 (500G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e2
   State: ACTIVE
2. Name: da4
   Mediasize: 536870912000 (500G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e2
   State: ACTIVE
3. Name: da5
   Mediasize: 536870912000 (500G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e2
   State: ACTIVE
4. Name: da6
   Mediasize: 536870912000 (500G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e2
   State: ACTIVE

# zpool status
  pool: DellEMC
 state: ONLINE
config:

        NAME                 STATE     READ WRITE CKSUM
        DellEMC              ONLINE       0     0     0
          multipath/DellEMC  ONLINE       0     0     0

errors: No known data errors

  pool: zroot
 state: ONLINE
config:

        NAME          STATE     READ WRITE CKSUM
        zroot         ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            gpt/zfs0  ONLINE       0     0     0
            gpt/zfs1  ONLINE       0     0     0

errors: No known data errors


isp0: <Qlogic ISP 2722 PCI FC Adapter> mem 0xe2a05000-0xe2a05fff,0xe2a02000-0xe2a03fff,0xe2900000-0xe29fffff at device 0.0 numa-domain 0 on pci4
isp0: Primary aux image not addressed
isp0: Secondary aux image not addressed
isp1: <Qlogic ISP 2722 PCI FC Adapter> mem 0xe2a04000-0xe2a04fff,0xe2a00000-0xe2a01fff,0xe2800000-0xe28fffff at device 0.1 numa-domain 0 on pci4
isp1: Primary aux image not addressed
isp1: Secondary aux image not addressed
da3 at isp0 bus 0 scbus2 target 0 lun a
da3: <DellEMC PowerStore 0100> Fixed Direct Access SPC-4 SCSI device
da3: Serial Number 6BL4L83
da3: 1600.000MB/s transfers WWNN 0x58ccf090cd2001ad WWPN 0x58ccf0904d2101ad PortID 0x190800
da3: Command Queueing enabled
da3: 512000MB (1048576000 512 byte sectors)
da4 at isp0 bus 0 scbus2 target 1 lun a
da4: <DellEMC PowerStore 0100> Fixed Direct Access SPC-4 SCSI device
da4: Serial Number 6BL4L83
da4: 1600.000MB/s transfers WWNN 0x58ccf090cd2001ad WWPN 0x58ccf0984d2101ad PortID 0x190900
da4: Command Queueing enabled
da4: 512000MB (1048576000 512 byte sectors)
GEOM_MULTIPATH: DellEMC created
GEOM_MULTIPATH: da3 added to DellEMC
GEOM_MULTIPATH: da4 added to DellEMC
da5 at isp1 bus 0 scbus3 target 0 lun a
da5: <DellEMC PowerStore 0100> Fixed Direct Access SPC-4 SCSI device
da5: Serial Number 6BL4L83
da5: 1600.000MB/s transfers WWNN 0x58ccf090cd2001ad WWPN 0x58ccf0904d2001ad PortID 0xf0800
da5: Command Queueing enabled
da5: 512000MB (1048576000 512 byte sectors)
da6 at isp1 bus 0 scbus3 target 1 lun a
da6: <DellEMC PowerStore 0100> Fixed Direct Access SPC-4 SCSI device
da6: Serial Number 6BL4L83
da6: 1600.000MB/s transfers WWNN 0x58ccf090cd2001ad WWPN 0x58ccf0984d2001ad PortID 0xf0900
da6: Command Queueing enabled
da6: 512000MB (1048576000 512 byte sectors)


The problem occurs when the disks from data array are assigned to
/dev/da0 and /dev/da1. The booting process starts and finishes on
remounting root RW, because it cannot find root file system. It depends
on the order of hardware initialization.

What is the recommended way of specifying internal disks in ZFS,
something like disks uid? The mount process tries to mount ZFS gpt/zfs0
and gpt/zfs1 (which are shown in zpool status), but they are not on
/dev/da0 and /dev/da1.

Thank you very much for your suggestions.

Regards,

lk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86y146zbef.fsf>