I usually name the devices in the ZFS device pool like this:
However, then I decided to mirror swap partitions with geom_mirror:
As you can see in the output of gmirror status command, the partitions are named ada0p2 instead of gpt/swap_on_disk1.
My /boot/loader.conf:
The following frequently recommended options did not help me at all:
Code:
NAME STATE READ WRITE CKSUM
zpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gpt/system_on disk1 ONLINE 0 0 0
gpt/system_on_disk2 ONLINE 0 0 0
Code:
# gmirror label -v -b round-robin swap /dev/gpt/swap_on_disk1 /dev/gpt/swap_on_disk2
Metadata value stored on /dev/gpt/swap_on_disk1
Metadata value stored on /dev/gpt/swap_on_disk2
Done
# gmirror status
Name Status Components
mirror/swap COMPLETE ada0p2 (ACTIVE)
ada1p2 (ACTIVE)
Done.
As you can see in the output of gmirror status command, the partitions are named ada0p2 instead of gpt/swap_on_disk1.
My /boot/loader.conf:
Code:
coretemp_load="YES"
geom_mirror_load="YES"
zfs_load="YES"
The following frequently recommended options did not help me at all:
- kern.geom.label.disk_ident.enable="0" - after enabling geom_mirror for swap partitions, the /dev/diskid directory disappeared, even with kern.geom.label.disk_ident.enable="1".
- kern.geom.label.gptid.enable="0" - Yes, the /dev/gptid path has disappeared, but it didn’t bother me before.
- geom_label_enable="YES" - also did not affect the problem.
- Option with /dev/diskid/DISK-11111111: https://dan.langille.org/2017/07/28/creating-a-gmirror-swap/ In my case, using geom_mirror after a reboot makes the names of all zpool and geom_mirror sections look like this: ada0p2
- Option with /dev/gpt/swap0: https://www.ateamsystems.com/tech-blog/installing-freebsd-9-gmirror-gpt-partitions-raid-1/ As you already understand, this option does not work for me.