Gigabyte GA-MA74GM-S2H - FreeBSD

Hardware info on main page.

This machine runs the amd64 version of FreeBSD.

Currently running:

root@kg-f2:~ # freebsd-version -ku
13.1-RELEASE-p3
13.1-RELEASE-p5

root@kg-f2:~ # uname -a
FreeBSD kg-f2.kg4.no 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64

was:

root@kg-f2# uname -a
FreeBSD kg-f2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #6 r296141: Sat Feb 27 20:38:47 CET 2016     root@kg-f2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

was:

root@kg-f2# uname -a
FreeBSD kg-f2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #5: Fri Jun  3 17:20:39 CEST 2011     root@kg-f2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

The machine boots from the zroot pool, on the ada5 and ada6 drives:

root@kg-f2:~ # gpart show -p ada5
=>        40  1953525088    ada5  GPT  (932G)
          40        1024  ada5p1  freebsd-boot  (512K)
        1064         984          - free -  (492K)
        2048    16777216  ada5p2  freebsd-swap  (8.0G)
    16779264  1936744448  ada5p3  freebsd-zfs  (924G)
  1953523712        1416          - free -  (708K)

root@kg-f2:~ # gpart show -p ada6
=>        40  1953525088    ada6  GPT  (932G)
          40        1024  ada6p1  freebsd-boot  (512K)
        1064         984          - free -  (492K)
        2048    16777216  ada6p2  freebsd-swap  (8.0G)
    16779264  1936744448  ada6p3  freebsd-zfs  (924G)
  1953523712        1416          - free -  (708K)

old: the machine boots from the zroot pool, on the ada1 and ada2 drives:

root@kg-f2# gpart show
=>       34  488397101  ada1  GPT  (232G)
         34        128     1  freebsd-boot  (64k)
        162    8388608     2  freebsd-swap  (4.0G)
    8388770  125829120     3  freebsd-zfs  (60G)
  134217890  354179245        - free -  (168G)

=>       34  488397101  ada2  GPT  (232G)
         34        128     1  freebsd-boot  (64k)
        162    8388608     2  freebsd-swap  (4.0G)
    8388770  125829120     3  freebsd-zfs  (60G)
  134217890  354179245        - free -  (168G)

Archives: 2009, 2010, 2011, 2012, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022,

Links

RAID calculators ZFS RAID (RAIDZ) Calculator - Capacity ServeTheHome Raid Calculator jro.io OpenZFS Capacity Calculator, FreeBSD Handbook: ZFS,

Work log

2023-06-03: zroot - latest scrub result for pool z2

root@kg-f2:~ # zpool status z2
  pool: z2
 state: ONLINE
  scan: scrub repaired 0B in 09:14:23 with 0 errors on Sat Jun  3 12:15:29 2023
config:

    NAME        STATE     READ WRITE CKSUM
    z2          ONLINE       0     0     0
      raidz2-0  ONLINE       0     0     0
        ada0p1  ONLINE       0     0     0
        ada1p1  ONLINE       0     0     0
        ada2p1  ONLINE       0     0     0
        ada3p1  ONLINE       0     0     0
        ada4p1  ONLINE       0     0     0

errors: No known data errors

2023-06-03: zroot - latest scrub result for pool zroot

root@kg-f2:~ # zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0B in 00:00:32 with 0 errors on Sat Jun  3 03:01:43 2023
config:

    NAME        STATE     READ WRITE CKSUM
    zroot       ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        ada5p3  ONLINE       0     0     0
        ada6p3  ONLINE       0     0     0

errors: No known data errors

2023-05-29: zroot - pkg - install curl

May 29 18:51:05 kg-f2 pkg[51634]: pkg upgraded: 1.19.0 -> 1.19.1_1 
May 29 18:51:18 kg-f2 pkg[51653]: indexinfo-0.3.1 installed
May 29 18:51:18 kg-f2 pkg[51653]: libunistring-1.1 installed
May 29 18:51:18 kg-f2 pkg[51653]: libidn2-2.3.4 installed
May 29 18:51:18 kg-f2 pkg[51653]: libnghttp2-1.52.0 installed
May 29 18:51:18 kg-f2 pkg[51653]: libssh2-1.10.0_1,3 installed
May 29 18:51:18 kg-f2 pkg[51653]: libpsl-0.21.2_2 installed
May 29 18:51:18 kg-f2 pkg[51653]: ca_root_nss-3.89 installed
May 29 18:51:19 kg-f2 pkg[51653]: curl-8.1.1 installed

2023-04-29: zroot - latest scrub result for pool z2

root@kg-f2:~ # zpool status z2                                                
  pool: z2
 state: ONLINE
  scan: scrub repaired 0B in 09:15:23 with 0 errors on Sat Apr 29 12:39:36 2023
config:

    NAME        STATE     READ WRITE CKSUM
    z2          ONLINE       0     0     0
      raidz2-0  ONLINE       0     0     0
        ada0p1  ONLINE       0     0     0
        ada1p1  ONLINE       0     0     0
        ada2p1  ONLINE       0     0     0
        ada3p1  ONLINE       0     0     0
        ada4p1  ONLINE       0     0     0

errors: No known data errors

2023-04-29: zroot - latest scrub result for pool zroot

root@kg-f2:~ # zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0B in 00:00:31 with 0 errors on Sat Apr 29 03:24:49 2023
config:

    NAME        STATE     READ WRITE CKSUM
    zroot       ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        ada5p3  ONLINE       0     0     0
        ada6p3  ONLINE       0     0     0

errors: No known data errors

2023-04-01: zroot - pkg - install ncftp3

Apr  1 17:00:50 kg-f2 pkg[13647]: ncftp-3.2.6_2 installed

2023-03-25: zroot - latest scrub result for pool z2

root@kg-f2:~ # zpool status z2
  pool: z2
 state: ONLINE
  scan: scrub repaired 0B in 09:14:39 with 0 errors on Sat Mar 25 12:15:45 2023
config:

    NAME        STATE     READ WRITE CKSUM
    z2          ONLINE       0     0     0
      raidz2-0  ONLINE       0     0     0
        ada0p1  ONLINE       0     0     0
        ada1p1  ONLINE       0     0     0
        ada2p1  ONLINE       0     0     0
        ada3p1  ONLINE       0     0     0
        ada4p1  ONLINE       0     0     0

errors: No known data errors

2023-03-25: zroot - latest scrub result for pool zroot

root@kg-f2:~ # zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0B in 00:00:18 with 0 errors on Sat Mar 25 03:01:28 2023
config:

    NAME        STATE     READ WRITE CKSUM
    zroot       ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        ada5p3  ONLINE       0     0     0
        ada6p3  ONLINE       0     0     0

errors: No known data errors

2023-03-24: zroot - configure for automatic scrub every 35 days. Create a /etc/periodic.conf file, with contents:

# zfs
daily_status_zfs_enable="YES"
daily_scrub_zfs_enable="YES"

this works out because the interval is set as 35 days in the defaults:

root@kg-f2:~ # grep daily_scrub /etc/defaults/periodic.conf 
daily_scrub_zfs_enable="NO"
daily_scrub_zfs_pools=""            # empty string selects all pools
daily_scrub_zfs_default_threshold="35"      # days between scrubs
#daily_scrub_zfs_${poolname}_threshold="35" # pool specific threshold

it is the daily_scrub_zfs_default_threshold variable. Also added daily status of the zfs pools.

2023-02-11: zroot - create the storage pool

root@kg-f2:~ # zpool create z2 raidz2 /dev/ada0p1 /dev/ada1p1 /dev/ada2p1 /dev/ada3p1 /dev/ada4p1

check it

root@kg-f2:~ # zpool status z2
  pool: z2
 state: ONLINE
config:

    NAME        STATE     READ WRITE CKSUM
    z2          ONLINE       0     0     0
      raidz2-0  ONLINE       0     0     0
        ada0p1  ONLINE       0     0     0
        ada1p1  ONLINE       0     0     0
        ada2p1  ONLINE       0     0     0
        ada3p1  ONLINE       0     0     0
        ada4p1  ONLINE       0     0     0

errors: No known data errors

is it mounted?

root@kg-f2:~ # df -h /z2
Filesystem    Size    Used   Avail Capacity  Mounted on
z2             32T    171K     32T     0%    /z2

good.

2023-02-11: zroot - try out the create pool command before doing anything. raidz2 first

root@kg-f2:~ # zpool create -n z2 raidz2 /dev/ada0p1 /dev/ada1p1 /dev/ada2p1 /dev/ada3p1 /dev/ada4p1
would create 'z2' with the following layout:

    z2
      raidz2
        ada0p1
        ada1p1
        ada2p1
        ada3p1
        ada4p1

and a raidz3 too

root@kg-f2:~ # zpool create -n z2 raidz3 /dev/ada0p1 /dev/ada1p1 /dev/ada2p1 /dev/ada3p1 /dev/ada4p1
would create 'z2' with the following layout:

    z2
      raidz3
        ada0p1
        ada1p1
        ada2p1
        ada3p1
        ada4p1

that's funny.

2023-02-11: zroot - storage drives, check and set up check

root@kg-f2:~ # gpart show -p ada0
gpart: No such geom: ada0.
root@kg-f2:~ # gpart show -p ada1
gpart: No such geom: ada1.
root@kg-f2:~ # gpart show -p ada2
gpart: No such geom: ada2.
root@kg-f2:~ # gpart show -p ada3
gpart: No such geom: ada3.
root@kg-f2:~ # gpart show -p ada4
gpart: No such geom: ada4.

they are blank, creta GPT and add freebsd-zfs to each drive

root@kg-f2:~ # gpart create -s GPT ada0
ada0 created
root@kg-f2:~ # gpart add -t freebsd-zfs ada0
ada0p1 added
root@kg-f2:~ # gpart create -s GPT ada1
ada1 created
root@kg-f2:~ # gpart add -t freebsd-zfs ada1
ada1p1 added
root@kg-f2:~ # gpart create -s GPT ada2
ada2 created
root@kg-f2:~ # gpart add -t freebsd-zfs ada2
ada2p1 added
root@kg-f2:~ # gpart create -s GPT ada3
ada3 created
root@kg-f2:~ # gpart add -t freebsd-zfs ada3
ada3p1 added
root@kg-f2:~ # gpart create -s GPT ada4
ada4 created
root@kg-f2:~ # gpart add -t freebsd-zfs ada4
ada4p1 added

check

root@kg-f2:~ # gpart show -p ada0 ada1 ada2 ada3 ada4
=>         40  23437770672    ada0  GPT  (11T)
           40  23437770672  ada0p1  freebsd-zfs  (11T)

=>         40  23437770672    ada1  GPT  (11T)
           40  23437770672  ada1p1  freebsd-zfs  (11T)

=>         40  23437770672    ada2  GPT  (11T)
           40  23437770672  ada2p1  freebsd-zfs  (11T)

=>         40  23437770672    ada3  GPT  (11T)
           40  23437770672  ada3p1  freebsd-zfs  (11T)

=>         40  23437770672    ada4  GPT  (11T)
           40  23437770672  ada4p1  freebsd-zfs  (11T)

2023-02-11: zroot - pkg - install smartmontools

Feb 11 14:11:34 kg-f2 pkg[1014]: smartmontools-7.3 installed

and configure it

root@kg-f2:~ # cp -v /usr/local/etc/smartd.conf.sample /usr/local/etc/smartd.conf
/usr/local/etc/smartd.conf.sample -> /usr/local/etc/smartd.conf

enable it in /etc/rc.conf

root@kg-f2:~ # sysrc smartd_enable="YES"
smartd_enable:  -> YES

start the service and check that it runs

root@kg-f2:~ # service smartd start
Starting smartd.

root@kg-f2:~ # service smartd status
smartd is running as pid 1084.

2023-02-11: zroot - pkg - install pkg

root@kg-f2:~ # pkg install pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.19.0...
Extracting pkg-1.19.0: 100%
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
Fetching packagesite.pkg: 100%    6 MiB   6.8MB/s    00:01    
Processing entries: 100%
FreeBSD repository update completed. 32413 packages processed.
All repositories are up to date.
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed

check which version we are on

root@kg-f2:~ # pkg -vv | grep url
    url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly",

2023-02-11: zroot - system file system layout and usage

root@kg-f2:~ # df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default    891G    1.2G    890G     0%    /
devfs                 1.0K    1.0K      0B   100%    /dev
zroot/tmp             890G     96K    890G     0%    /tmp
zroot/usr/home        890G    136K    890G     0%    /usr/home
zroot/usr/ports       890G     96K    890G     0%    /usr/ports
zroot/usr/src         890G     96K    890G     0%    /usr/src
zroot/var/crash       890G     96K    890G     0%    /var/crash
zroot/var/audit       890G     96K    890G     0%    /var/audit
zroot/var/log         890G    256K    890G     0%    /var/log
zroot                 890G     96K    890G     0%    /zroot
zroot/var/tmp         890G     96K    890G     0%    /var/tmp
zroot/var/mail        890G     96K    890G     0%    /var/mail

2023-02-11: zroot - the system pool is a zfs mirror

root@kg-f2:~ # zpool status zroot
  pool: zroot
 state: ONLINE
config:

    NAME        STATE     READ WRITE CKSUM
    zroot       ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        ada5p3  ONLINE       0     0     0
        ada6p3  ONLINE       0     0     0

errors: No known data errors

2023-02-11: zroot - swap is a geom mirror

root@kg-f2:~ # swapinfo -h
Device              Size     Used    Avail Capacity
/dev/mirror/swap     8.0G       0B     8.0G     0%

root@kg-f2:~ # geom mirror status
       Name    Status  Components
mirror/swap  COMPLETE  ada5p2 (ACTIVE)
                       ada6p2 (ACTIVE)

2023-02-11: zroot - with the storage drives connected to the Marvell controller, the system drives got reassigned

root@kg-f2:~ # gpart show -p ada5
=>        40  1953525088    ada5  GPT  (932G)
          40        1024  ada5p1  freebsd-boot  (512K)
        1064         984          - free -  (492K)
        2048    16777216  ada5p2  freebsd-swap  (8.0G)
    16779264  1936744448  ada5p3  freebsd-zfs  (924G)
  1953523712        1416          - free -  (708K)

root@kg-f2:~ # gpart show -p ada6
=>        40  1953525088    ada6  GPT  (932G)
          40        1024  ada6p1  freebsd-boot  (512K)
        1064         984          - free -  (492K)
        2048    16777216  ada6p2  freebsd-swap  (8.0G)
    16779264  1936744448  ada6p3  freebsd-zfs  (924G)
  1953523712        1416          - free -  (708K)

2023-02-05: zroot - reboot, FreeBSD 13.1-release-p5 is in

root@kg-f2:~ # freebsd-version -ku
13.1-RELEASE-p3
13.1-RELEASE-p5

kernel

root@kg-f2:~ # uname -a
FreeBSD kg-f2.kg4.no 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64

that's it for now.

2023-02-05: zroot - freebsd-update fetch

root@kg-f2:~ # freebsd-update fetch
src component not installed, skipped
[..]
The following files will be removed as part of updating to
13.1-RELEASE-p5:
/usr/share/zoneinfo/SystemV
The following files will be added as part of updating to
13.1-RELEASE-p5:
/usr/share/zoneinfo/Europe/Kyiv
/usr/share/zoneinfo/GMT
The following files will be updated as part of updating to
13.1-RELEASE-p5:
[..]
/var/db/etcupdate/current/etc/mtree/BSD.usr.dist
/var/db/etcupdate/log
/var/db/mergemaster.mtree

install

root@kg-f2:~ # freebsd-update install
src component not installed, skipped
Creating snapshot of existing boot environment... done.
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
 done.

2023-02-05: zroot - I installed FreeBSD 13.1-release on a pair of 1 TB drives I had laying around

root@kg-f2:~ # freebsd-version -ku
13.1-RELEASE
13.1-RELEASE

kernel

root@kg-f2:~ # uname -a
FreeBSD kg-f2.kg4.no 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64

the pool looks like this

root@kg-f2:~ # zpool status
  pool: zroot
 state: ONLINE
config:

    NAME        STATE     READ WRITE CKSUM
    zroot       ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        ada0p3  ONLINE       0     0     0
        ada1p3  ONLINE       0     0     0

(the storage pool is not connected at this time) and the boot drives are partitioned like this

root@kg-f2:~ # gpart show -p ada0
=>        40  1953525088    ada0  GPT  (932G)
          40        1024  ada0p1  freebsd-boot  (512K)
        1064         984          - free -  (492K)
        2048    16777216  ada0p2  freebsd-swap  (8.0G)
    16779264  1936744448  ada0p3  freebsd-zfs  (924G)
  1953523712        1416          - free -  (708K)

root@kg-f2:~ # gpart show -p ada1
=>        40  1953525088    ada1  GPT  (932G)
          40        1024  ada1p1  freebsd-boot  (512K)
        1064         984          - free -  (492K)
        2048    16777216  ada1p2  freebsd-swap  (8.0G)
    16779264  1936744448  ada1p3  freebsd-zfs  (924G)
  1953523712        1416          - free -  (708K)

all from the auto-zfs of the FreeBSD installer. Nice!

2023-02-05: document a few things before throwing in new system disks and installing a brand new os. /boot/loader.conf

ahci_load="YES"
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot"
#vfs.zfs.arc_max="2048M"
siis_load="YES"
amdtemp_load="YES"
# testing without MSI
hw.pci.enable_msix="0"
hw.pci.enable_msi="0"

/etc/sysctl.conf

kern.timecounter.hardware=ACPI-safe
#machdep.acpi_timer_freq=3577045
machdep.acpi_timer_freq=3570847
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules

/etc/profile

EXINIT="set showmode"; export EXINIT
LANG="en_US.ISO8859-1"; export LANG
G_FILENAME_ENCODING=ISO-8859-1; export G_FILENAME_ENCODING

/etc/rc.conf

# 
font8x14="iso-8x14"
font8x16="iso-8x16"
font8x8="iso-8x8"
keymap="norwegian.iso"
zfs_enable="YES"
hostname="kg-f2.kg4.no"
ifconfig_re0="DHCP"
# dumpdev
dumpdev="AUTO"
# inetd, for ftp server
inetd_enable="YES"
# sshd
sshd_enable="YES"
# ntp
ntpd_enable="YES"
ntpd_sync_on_start="YES"
# smartd
smartd_enable="YES"
# enable FUSE kernel module
fusefs_enable="YES"

/etc/fstab

# Device mountpoint FStype Options Dump Pass#
/dev/gpt/swap0   none   swap  sw  0  0
/dev/gpt/swap1   none   swap  sw  0  0

user and group info

root@kg-f2# pw usershow tingo
tingo:*:1001:1001::0:0:Torfinn Ingolfsen (f2):/home/tingo:/bin/sh
root@kg-f2# pw groupshow users
users:*:1001:

/etc/dhclient.conf

send dhcp-client-identifier "kg-f2.kg4.no";

2023-02-05: I booted from a FreeBSD 13.1 install usb stick to verify that all hardware is seen. Everything looks ok, and zpool import list both the zroot and storage pools.

2023-02-05: there, the pool backed up to the extra drive now

root@kg-f2# df -h /storage /mnt
Filesystem     Size    Used   Avail Capacity  Mounted on
storage        3.6T    3.5T     31G    99%    /storage
/dev/ada7p1     14T    3.5T    9.4T    27%    /mnt

2023-02-04: try with a used 16TB drive instead

Feb  4 17:14:23 kg-f2 kernel: ada7 at ahcich2 bus 0 scbus2 target 0 lun 0
Feb  4 17:14:23 kg-f2 kernel: ada7: <ST16000NM001G-2KK103 SN04> ATA-11 SATA 3.x device
Feb  4 17:14:23 kg-f2 kernel: ada7: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
Feb  4 17:14:23 kg-f2 kernel: ada7: Command Queueing enabled
Feb  4 17:14:23 kg-f2 kernel: ada7: 15259648MB (31251759104 512 byte sectors: 16H 63S/T 16383C)

check it

root@kg-f2# gpart show -p ada7
=>         40  31251759024    ada7  GPT  (14T)
           40  31251759024  ada7p1  freebsd-zfs  (14T)

that has to go

root@kg-f2# gpart delete -i 1 ada7
ada7p1 deleted

add a ufs partition instead

root@kg-f2# gpart add -t freebsd-ufs ada7
ada7p1 added

create filesystem

root@kg-f2# newfs -U /dev/ada7p1
/dev/ada7p1: 15259648.0MB (31251759016 sectors) block size 16384, fragment size 2048
    using 83060 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
    with soft updates
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440, 2257696, 2633952, 3010208, 3386464, 3762720, 4138976, 4515232, 4891488,
 5267744, 5644000, 6020256, 6396512, 6772768, 7149024, 7525280, 7901536, 8277792, 8654048, 9030304, 9406560, 9782816, 10159072,
 10535328, 10911584, 11287840, 11664096, 12040352, 12416608, 12792864, 13169120, 13545376, 13921632, 14297888, 14674144,
[..]

unfortunately, that was a bad disk drive. So try with another. A brand new one this time Check

root@kg-f2# gpart show -p ada7
gpart: No such geom: ada7.

create GPT layout

root@kg-f2# gpart create -s GPT ada7
ada7 created

add freebsd-ufs partition

root@kg-f2# gpart add -t freebsd-ufs ada7
ada7p1 added

verify

root@kg-f2# gpart show -p ada7
=>         34  31251759037    ada7  GPT  (14T)
           34            6          - free -  (3.0k)
           40  31251759024  ada7p1  freebsd-ufs  (14T)
  31251759064            7          - free -  (3.5k)

create a filesystem

root@kg-f2# newfs -U /dev/ada7p1
[..]
 31245050912, 31245427168, 31245803424, 31246179680, 31246555936, 31246932192, 31247308448, 31247684704, 31248060960,
 31248437216, 31248813472, 31249189728, 31249565984, 31249942240, 31250318496, 31250694752, 31251071008, 31251447264

mount and check

root@kg-f2# mount /dev/ada7p1 /mnt

root@kg-f2# df -h /mnt
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada7p1     14T    4.0k     13T     0%    /mnt

ok, that one works.

2023-02-04: I added a 4TB drive temporarily as backup drive. From /var/log messages

Feb  4 16:36:20 kg-f2 kernel: ada7 at ahcich2 bus 0 scbus2 target 0 lun 0
Feb  4 16:36:20 kg-f2 kernel: ada7: <ST4000DM000-1F2168 CC52> ATA-8 SATA 3.x device
Feb  4 16:36:20 kg-f2 kernel: ada7: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
Feb  4 16:36:20 kg-f2 kernel: ada7: Command Queueing enabled
Feb  4 16:36:20 kg-f2 kernel: ada7: 3815447MB (7814037168 512 byte sectors: 16H 63S/T 16383C)
Feb  4 16:36:20 kg-f2 kernel: ada7: quirks=0x1<4K>

check it

root@kg-f2# gpart show -p ada7
gpart: No such geom: ada7.

set it up as GPT

root@kg-f2# gpart create -s GPT ada7
ada7 created

add a freebsd-ufs partition

root@kg-f2# gpart add -t freebsd-ufs ada7
ada7p1 added

how does it look now?

root@kg-f2# gpart show -p ada7
=>        34  7814037101    ada7  GPT  (3.7T)
          34           6          - free -  (3.0k)
          40  7814037088  ada7p1  freebsd-ufs  (3.7T)
  7814037128           7          - free -  (3.5k)

add filesystem

root@kg-f2# newfs -U /dev/ada7p1
[..]
 7809193440, 7809569696, 7809945952, 7810322208, 7810698464, 7811074720, 7811450976, 7811827232, 7812203488, 7812579744,
 7812956000, 7813332256, 7813708512

mount it

root@kg-f2# mount /dev/ada7p1 /mnt

space check

root@kg-f2# df -h /mnt
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada7p1    3.5T    4.0k    3.2T     0%    /mnt

ok, it is not big enough.

2023-02-04: run a smartctl helth check on all drives

root@kg-f2# smartctl -H /dev/ada0
smartctl 6.4 2015-06-04 r4109 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-f2# smartctl -H /dev/ada1
smartctl 6.4 2015-06-04 r4109 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-f2# smartctl -H /dev/ada2
smartctl 6.4 2015-06-04 r4109 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-f2# smartctl -H /dev/ada3
smartctl 6.4 2015-06-04 r4109 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-f2# smartctl -H /dev/ada4
smartctl 6.4 2015-06-04 r4109 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-f2# smartctl -H /dev/ada5
smartctl 6.4 2015-06-04 r4109 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-f2# smartctl -H /dev/ada6
smartctl 6.4 2015-06-04 r4109 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

good.

2023-02-04: I replaced the ST-Lab A-360 controller with a Marvell 88SE9215-based one, the result still works. zpool status - root pool

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h7m with 0 errors on Wed Jan 18 03:57:43 2023
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

storage pool

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
status: One or more devices are configured to use a non-native block size.
    Expect reduced performance.
action: Replace affected devices with devices that support the
    configured block size, or migrate data to a properly configured
    pool.
  scan: scrub repaired 0 in 3h55m with 0 errors on Tue Jan 31 07:38:53 2023
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0  block size: 512B configured, 4096B native
        ada0    ONLINE       0     0     0

errors: No known data errors

drive ada0 is now connected to the new controller

root@kg-f2# dmesg | grep ada0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SAMSUNG HD103SJ 1AJ100E4> ATA-8 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)

more info on main page.

2023-02-04: shutdown the machine to some work on the hardware.

2023-01-31: scrub - latest result for pool storage

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
status: One or more devices are configured to use a non-native block size.
    Expect reduced performance.
action: Replace affected devices with devices that support the
    configured block size, or migrate data to a properly configured
    pool.
  scan: scrub repaired 0 in 3h55m with 0 errors on Tue Jan 31 07:38:53 2023
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0  block size: 512B configured, 4096B native
        ada0    ONLINE       0     0     0

errors: No known data errors

2023-01-18: scrub - latest result for pool zroot

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h7m with 0 errors on Wed Jan 18 03:57:43 2023
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors