I have a server that I Installed FreeBSD 12.1 in a mirror configuration.
After installing I wanted to geli these drives as a test and be prompted with a password at boot time. These are the commands I ran to accomplish the geli setup.
zpool offline zroot da0p3
geli init -b -d -g -s 4096 /dev/da0p3
geli attach /dev/da0p3
zpool replace zroot 3908907440691126591 /dev/da0p3.eli
Let the server resilver.
zpool offline zroot da1p3
geli init -b -d -g -s 4096 /dev/da1p3
geli attach /dev/da1p3
zpool replace zroot 13242873678876809506 /dev/da1p3.eli
Stamped the boot code.
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1
zpool looked happy.
geli looked good too and zdb showed the geli disks path names. Put geli in boot loader too.
Rebooted the server and get stuck here at boot time.
Booted into a live CD and attached geli to the da drives. zpool import works and the pool is healthy with the geli disks. I mounted it with altroot and can see the data in /tmp/mypool/. Exported the pool and rebooted and server is still stuck on the image above.
Did I miss a step?
Code:
pool: zroot
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da0p3 ONLINE 0 0 0
da1p3 ONLINE 0 0 0
After installing I wanted to geli these drives as a test and be prompted with a password at boot time. These are the commands I ran to accomplish the geli setup.
zpool offline zroot da0p3
geli init -b -d -g -s 4096 /dev/da0p3
geli attach /dev/da0p3
zpool replace zroot 3908907440691126591 /dev/da0p3.eli
Let the server resilver.
zpool offline zroot da1p3
geli init -b -d -g -s 4096 /dev/da1p3
geli attach /dev/da1p3
zpool replace zroot 13242873678876809506 /dev/da1p3.eli
Stamped the boot code.
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1
zpool looked happy.
Code:
pool: zroot
state: ONLINE
scan: resilvered 479M in 0 days 00:00:03 with 0 errors on Thu Jul 23 20:14:49 2020
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da0p3.eli ONLINE 0 0 0
da1p3.eli ONLINE 0 0 0
geli looked good too and zdb showed the geli disks path names. Put geli in boot loader too.
Code:
geli list
Geom name: da0p3.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: software
Version: 7
UsedKey: 0
Flags: BOOT, GELIBOOT, GELIDISPLAYPASS
KeysAllocated: 373
KeysTotal: 373
Providers:
1. Name: da0p3.eli
Mediasize: 1598172426240 (1.5T)
Sectorsize: 4096
Mode: r1w1e1
Consumers:
1. Name: da0p3
Mediasize: 1598172430336 (1.5T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
Geom name: da1p3.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: software
Version: 7
UsedKey: 0
Flags: BOOT, GELIBOOT, GELIDISPLAYPASS
KeysAllocated: 373
KeysTotal: 373
Providers:
1. Name: da1p3.eli
Mediasize: 1598172426240 (1.5T)
Sectorsize: 4096
Mode: r1w1e1
Consumers:
1. Name: da1p3
Mediasize: 1598172430336 (1.5T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
Rebooted the server and get stuck here at boot time.
Booted into a live CD and attached geli to the da drives. zpool import works and the pool is healthy with the geli disks. I mounted it with altroot and can see the data in /tmp/mypool/. Exported the pool and rebooted and server is still stuck on the image above.
Did I miss a step?