I have a somewhat outdated 13.1-RELEASE but it should not be so much far behind the current 13.2 one.
My system does not have anything named efiboot or efigpt on it. Can it be that some other OS, e.g. Linux, has created that?
What is your partition and ZFS dataset configuration for those disks? Root, boot? When you write the files were created "across all the three disks", which partitions/datasets were the files written to?
If you're booting from a mirror set it would be wise to add the boot code to both disks. You still want the system to boot if one of the disks dies.
If the installer can create/manage RAID (including mirror) configuration, it would be the safest prediction that all are used for RAID.This make senses but it wrote also on the third disk and during the installation process I saw the installer operating on the third disk even though it wasn't selected. This is not a big deal it took only 500MB on each disk, I found just it unusual.
But what is the output ofI followed the default installer setup, no fancy settings, just mirrored the disk.
 zpool status,  gpart show etc. though? It is yet unclear if the creator of that particular files is FreeBSD or Linux and where exactly are they located. geom disk list
gpart show -lp
gpart show -rp
gpart show -rYes, a little more information please: Glad you noticed and said something...
 geom disk listGeom name: ada0
Providers:
1. Name: ada0
   Mediasize: 250059350016 (233G)
   Sectorsize: 512
   Mode: r2w2e5
   descr: Samsung SSD 860 EVO M.2 250GB
   lunid: 5002538e31c02be1
   ident: S413NS0RC00973X
   rotationrate: 0
   fwsectors: 63
   fwheads: 16
Geom name: ada1
Providers:
1. Name: ada1
   Mediasize: 240057409536 (224G)
   Sectorsize: 512
   Mode: r1w1e1
   descr: KINGSTON SA400S37240G
   lunid: 50026b7682359175
   ident: 50026B7682359175
   rotationrate: 0
   fwsectors: 63
   fwheads: 16
Geom name: ada2
Providers:
1. Name: ada2
   Mediasize: 250059350016 (233G)
   Sectorsize: 512
   Mode: r0w0e0
   descr: Samsung SSD 860 EVO 250GB
   lunid: 5002538e40f0f259
   ident: S3YHNX0M415404N
   rotationrate: 0
   fwsectors: 63
   fwheads: 16 gpart show -lp>       40  488397088    ada0  GPT  (233G)
         40     532480  ada0p1  efiboot0  (260M)
     532520       1024  ada0p2  gptboot0  (512K)
     533544        984          - free -  (492K)
     534528  487862272  ada0p3  zfs0  (233G)
  488396800        328          - free -  (164K)
=>       40  468862048    ada1  GPT  (224G)
         40     532480  ada1p1  efiboot0  (260M)
     532520       1024  ada1p2  gptboot0  (512K)
     533544        984          - free -  (492K)
     534528   15624192  ada1p3  (null)  (7.5G)
   16158720  452702208  ada1p4  Devuan  (216G)
  468860928       1160          - free -  (580K)
=>       40  488397088    ada2  GPT  (233G)
         40     532480  ada2p1  efiboot1  (260M)
     532520       1024  ada2p2  gptboot1  (512K)
     533544  487863584          - free -  (233G) gpart show -rp=>       40  488397088    ada0  GPT  (233G)
         40     532480  ada0p1  c12a7328-f81f-11d2-ba4b-00a0c93ec93b  (260M)
     532520       1024  ada0p2  83bd6b9d-7f41-11dc-be0b-001560b84f0f  (512K)
     533544        984          - free -  (492K)
     534528  487862272  ada0p3  516e7cba-6ecf-11d6-8ff8-00022d09712b  (233G)
  488396800        328          - free -  (164K)
=>       40  468862048    ada1  GPT  (224G)
         40     532480  ada1p1  c12a7328-f81f-11d2-ba4b-00a0c93ec93b  (260M)
     532520       1024  ada1p2  83bd6b9d-7f41-11dc-be0b-001560b84f0f  (512K)
     533544        984          - free -  (492K)
     534528   15624192  ada1p3  0657fd6d-a4ab-43c4-84e5-0933c84b4f4f  (7.5G)
   16158720  452702208  ada1p4  0fc63daf-8483-4772-8e79-3d69d8477de4  (216G)
  468860928       1160          - free -  (580K)
=>       40  488397088    ada2  GPT  (233G)
         40     532480  ada2p1  c12a7328-f81f-11d2-ba4b-00a0c93ec93b  (260M)
     532520       1024  ada2p2  83bd6b9d-7f41-11dc-be0b-001560b84f0f  (512K)
     533544  487863584          - free -  (233G) gpart show -r=>       40  488397088  ada0  GPT  (233G)
         40     532480     1  c12a7328-f81f-11d2-ba4b-00a0c93ec93b  (260M)
     532520       1024     2  83bd6b9d-7f41-11dc-be0b-001560b84f0f  (512K)
     533544        984        - free -  (492K)
     534528  487862272     3  516e7cba-6ecf-11d6-8ff8-00022d09712b  (233G)
  488396800        328        - free -  (164K)
=>       40  468862048  ada1  GPT  (224G)
         40     532480     1  c12a7328-f81f-11d2-ba4b-00a0c93ec93b  (260M)
     532520       1024     2  83bd6b9d-7f41-11dc-be0b-001560b84f0f  (512K)
     533544        984        - free -  (492K)
     534528   15624192     3  0657fd6d-a4ab-43c4-84e5-0933c84b4f4f  (7.5G)
   16158720  452702208     4  0fc63daf-8483-4772-8e79-3d69d8477de4  (216G)
  468860928       1160        - free -  (580K)
=>       40  488397088  ada2  GPT  (233G)
         40     532480     1  c12a7328-f81f-11d2-ba4b-00a0c93ec93b  (260M)
     532520       1024     2  83bd6b9d-7f41-11dc-be0b-001560b84f0f  (512K)
     533544  487863584        - free -  (233G) Linux swap that I am sharing with with Devuan.      534528   15624192  ada1p3  (null)  (7.5G) /efiboot and  /efigpt are located in  ada1p4 and  ada0p3, right? Also assuming that the files would be in whichever dataset you mount as root on your ZFS pool on ada0, we still don't have the name of the pool. ada2 is empty (you have 233 Gigs free without a partition on it). You have not created a partition to mirror or stripe with  ada0. Is this intentional? ada0p1,  ada1p1,  ada2p1.I think I tried sharing swap in the past between FreeBSD and Debian. It didn't go well. There were signatures on the swap space that caused problems at boot. But that was ages ago.Quick note: this partition is theLinux swapthat I am sharing with with Devuan.
Code:534528 15624192 ada1p3 (null) (7.5G)
[sherman.152] $ grep swap /etc/fstab
#/dev/mirror/swap      none        swap    sw        0    0
# With ".eli" appeded to the swap device, swapon(8) will set up GELI encrypt.
/dev/mirror/swap.eli      none        swap    sw        0    0
[sherman.153] $ swapinfo   
Device          1K-blocks     Used    Avail Capacity
/dev/mirror/swap.eli  16777212    34924 16742288     0%
[sherman.154] $ gmirror status
       Name    Status  Components
mirror/swap  COMPLETE  ada0p2 (ACTIVE)
                       ada1p2 (ACTIVE)If I assume correctly,/efibootand/efigptare located inada1p4andada0p3, right? Also assuming that the files would be in whichever dataset you mount as root on your ZFS pool on ada0, we still don't have the name of the pool.
This would be weird, I would not expect anything to appear that "across all 3 disks".
Also, let me point out that your third diskada2is empty (you have 233 Gigs free without a partition on it). You have not created a partition to mirror or stripe withada0. Is this intentional?
Another assumption would be that the files you mentioned are actually written to the EFI partitions:ada0p1,ada1p1,ada2p1.
In this case they would be some kind of EFI boot loader code, but I could not find any information on such files.
Lastly, check the date and timestamp of those files - when have they been created. Do you remember what exactly did you do at that particular time? If the time matches whenever you installed Devuan, this would probably meen that the files were created by the installation.
You could use an online malware scanner to upload them and see if anything funky is going on.
zpool status                                                                                                                  2.497s 23:08
  pool: zroot
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
    the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
config:
    NAME            STATE     READ WRITE CKSUM
    zroot           DEGRADED     0     0     0
      mirror-0      DEGRADED     0     0     0
        ada0p3.eli  ONLINE       0     0     0
        ada2p3.eli  UNAVAIL      0     0     0  cannot openls /dev/ | grep ada                             01:44
ada0
ada0p1
ada0p2
ada0p3
ada0p3.eli
ada1
ada1p1
ada1p2
ada1p3
ada1p4
ada2
ada2p1
ada2p2Swaps are meant for handling small peaks in memory usage that exceed the available RAM. There may be some borderline cases that would need swap mirroring but in most cases it is a waste in my opinion. I am no expert on swap by any means, just common sense.gpw928
Thanks for your advice, this is the first time I read aboutgmirror... but wouldn't be the same by just doing a 1GB swap file, as a fallback? ?
No, don't worry. This is fixable easily. In the meantime the only issue is that your ZFS pool does not have any redundancy, so as long as you don't have any disk errors you are fine.Not sure what happened... But the partition is missing:
Code:ls /dev/ | grep ada 01:44 ada0 ada0p1 ada0p2 ada0p3 ada0p3.eli ada1 ada1p1 ada1p2 ada1p3 ada1p4 ada2 ada2p1 ada2p2
So the installer messed up everything, created triple partitions, did not formatted and create the partition for the mirrored disk...
If I encrypt the disk, it will use the same geli password?
Don't tell me I must reinstall everything? Will never have the time for another fresh install...?
 ada2. Make sure the size in bytes is the same, this is a must. ada0p3 (use  geli to analyze the configuration of the partition, e.g.  geli status etc.). Pay attention to any usage of the "-b" and "-g" flags regarding booting, I don't remember by heart.# Create a partition for ZFS root pool on da4
gpart add -t freebsd-zfs -l zfs4 -b 2048 -s 60059648 da4
# Encrypt a partition, which will DELETE any information on it.
# You may or may not want to use a keyfile, this is optional
# My ZFS pool is NOT mounted at boot. In your case maybe add a "-g" flag, see in the documentation!
geli init -e AES-XTS -l 256 -s 4096 -b -K /root/keys/storage.key gpt/storage0
# Open an encrypted partition for usage
geli attach -k /root/keys/storage.key gpt/storage0
# Close
geli detach gptid/<guid>.eli zpool online ada2p3.eli and, fingers crossed, it will resilver it. zpool scrub zroot to be on the safe side. ada2p3 anymore,don't panic. You can just attach a new VDEV to the mirror. DO NOT USE zpool add!!! This would make a stripe and you don't want that. That would be irreversible and you would have to reinstall everything. Just use zpool attach, which would make your mirror into a 3-VDEV mirror. You can simply detach the VDEV that is not ONLINE and all would be fine.It's not recommended to swap into files on a ZFS partition, as ZFS has been observed to deadlock doing that.gpw928
Thanks for your advice, this is the first time I read aboutgmirror... but wouldn't be the same by just doing a 1GB swap file, as a fallback? ?
You may choose to configure swap, or not, as you wish. The conventional advice is to configure it, because disk space is cheap, and swap covers the contingency if you ever need more virtual memory than you have RAM. i.e. swap will keep your system running normally if this happens.Swaps are meant for handling small peaks in memory usage that exceed the available RAM. There may be some borderline cases that would need swap mirroring but in most cases it is a waste in my opinion. I am no expert on swap by any means, just common sense.
I can't decipher what you mean by that.In this regard, why would you want to waste half your RAM in mirroring the information in the memory? Maybe if you are concerned about memory reliability in some kind of military scenario... perhaps.
No, don't worry. This is fixable easily. In the meantime the only issue is that your ZFS pool does not have any redundancy, so as long as you don't have any disk errors you are fine[...]
Seeing that one of your paritions disappeared after installing, I would bet my money on Devuan or some other partitioning tool deleting the partition without FreeBSD knowing about it.
It is quite improbable that FreeBSD installed incorrectly. I cannot imagine how would this happen.
This would probably be also the explanation of the weird files you are asking about, it may be some kind of buggy installation tool independent from FreeBSD, I assume.
 zpool status                                                                                                                         01:22
  pool: zroot
 state: ONLINE
  scan: resilvered 107G in 00:05:55 with 0 errors on Sat Oct 14 01:14:43 2023
config:
    NAME            STATE     READ WRITE CKSUM
    zroot           ONLINE       0     0     0
      mirror-0      ONLINE       0     0     0
        ada0p3.eli  ONLINE       0     0     0
        ada2p3.eli  ONLINE       0     0     0
errors: No known data errorsOh, I get it. If you want to keep the system running after a disk failure, it makes sense. For my purposes it has always been fine to crash in such case. Cheers.You may choose to configure swap, or not, as you wish. The conventional advice is to configure it, because disk space is cheap, and swap covers the contingency if you ever need more virtual memory than you have RAM. i.e. swap will keep your system running normally if this happens.
If you choose to configure swap, and mirror your file systems, you should mirror your swap. To do otherwise will reduce the probability that your system will survive a disk failure.
I can't decipher what you mean by that.
