Hi all,
this was/is my zroot's zpool configuration :
Here is the history. At some point, simple tasks e.g. vi a file were getting terribly saw, I run dmesg and saw a bunch of hardware disk errors, and before I could issue any zpool command the system got unresponsive. I booted but could not get into the BIOS, there was something that drove the motherboard crazy. So, since the machine was under warranty we sent it for repair, after 14 days, they returned it with just a .... bios upgrade. We started (I and one admin) it but one disk was giving the same problems (BIOS stuck). We removed this disk and I got a booting system which would get stuck when mounting from fstab /boot/efi :
I managed to get a shell (IIRC by booting single user) and commented out the /boot/efi entry, so I I got a running system. Afterwards we ordered a new disk, I issued :
and
ada1 being the new disk, we attached the new disk, we marked the damaged disk offline and then detached the damaged disk. Resilvering went good, and is currently running scrub.
We tried to test the system by booting from the new disk (by disconnecting the old working disk ), but the boot process does not seem to advance, I get this blinking prompt on an empty screen and nothing more. I also run
and (after many failed attempts)
(this didn't help either)
However I am confused, /dev/ada0p1 /dev/ada1p1 should be the efi partition, not the freebsd-boot.
My gpart status :
Maybe the problem is the lack of labels on the new disk?
So my issues are :
this was/is my zroot's zpool configuration :
Bash:
root@smadevnu:/usr/home/achill # zpool status zroot
pool: zroot
state: ONLINE
scan: scrub in progress since Mon Jul 31 12:44:17 2023
54.1G scanned at 34B/s, 26.9G issued at 17B/s, 54.3G total
0B repaired, 49.46% done, no estimated completion time
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada0p4 ONLINE 0 0 0
ada1p4 ONLINE 0 0 0
errors: No known data errors
root@smadevnu:/usr/home/achill #
Here is the history. At some point, simple tasks e.g. vi a file were getting terribly saw, I run dmesg and saw a bunch of hardware disk errors, and before I could issue any zpool command the system got unresponsive. I booted but could not get into the BIOS, there was something that drove the motherboard crazy. So, since the machine was under warranty we sent it for repair, after 14 days, they returned it with just a .... bios upgrade. We started (I and one admin) it but one disk was giving the same problems (BIOS stuck). We removed this disk and I got a booting system which would get stuck when mounting from fstab /boot/efi :
Code:
mount_msdosfs: /dev/ada0p1: Invalid argument
I managed to get a shell (IIRC by booting single user) and commented out the /boot/efi entry, so I I got a running system. Afterwards we ordered a new disk, I issued :
Code:
gpart backup ada0 | gpart restore -F ada1
Code:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
We tried to test the system by booting from the new disk (by disconnecting the old working disk ), but the boot process does not seem to advance, I get this blinking prompt on an empty screen and nothing more. I also run
Code:
gpart set -a active /dev/ada1
Code:
dd if=/dev/ada0p1 of=/dev/ada1p1
(this didn't help either)
However I am confused, /dev/ada0p1 /dev/ada1p1 should be the efi partition, not the freebsd-boot.
My gpart status :
Code:
root@smadevnu:/usr/home/achill # gpart show -l
=> 40 3907029088 ada0 GPT (1.8T)
40 532480 1 efiboot1 (260M)
532520 1024 2 gptboot1 (512K)
533544 984 - free - (492K)
534528 4194304 3 swap1 (2.0G)
4728832 3902300160 4 zfs1 (1.8T)
3907028992 136 - free - (68K)
=> 40 3907029088 ada1 GPT (1.8T)
40 532480 1 (null) (260M)
532520 1024 2 (null) (512K)
533544 984 - free - (492K)
534528 4194304 3 (null) (2.0G)
4728832 3902300160 4 (null) (1.8T)
3907028992 136 - free - (68K)
Maybe the problem is the lack of labels on the new disk?
So my issues are :
- why does /boot/efi refuses to mount (msdosfs) ?
- why is /boot/efi even needed?
- How can I make the system boot from the second disk ?
- What did I get wrong in the process