root@a-fw:~ # camcontrol devlist<ULTIMATE CF CARD Ver7.01C> at scbus0 target 0 lun 0 (pass0,ada0)<CT2000MX500SSD1 M3CR043> at scbus1 target 0 lun 0 (pass1,ada1)root@a-fw:~ # gpart create -s GPT /dev/ada1ada1 createdroot@a-fw:~ # gpart add -t freebsd-zfs -a 4k /dev/ada1ada1p1 addedroot@a-fw:~ # gpart modify -l tank -i 1 /dev/ada1ada1p1 modifiedroot@a-fw:~ # gpart show=> 40 30408256 ada0 GPT (14G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-swap (2.0G) 4196352 26210304 3 freebsd-zfs (12G) 30406656 1640 - free - (820K)=> 40 3907029088 ada1 GPT (1.8T) 40 3907029088 1 freebsd-zfs (1.8T)root@a-fw:~ # zpool create -m /tank tank /dev/ada1p1root@a-fw:~ # zfs set atime=off tankroot@a-fw:~ # zpool listNAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOTtank 1.81T 432K 1.81T - - 0% 0% 1.00x ONLINE -zroot 12G 805M 11.2G - - 2% 6% 1.00x ONLINE -root@a-fw:~ # mountzroot/ROOT/base-setup on / (zfs, local, noatime, nfsv4acls)devfs on /dev (devfs)zroot on /zroot (zfs, local, noatime, nfsv4acls)zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot/var/mail on /var/mail (zfs, local, nfsv4acls)zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)devfs on /var/dhcpd/dev (devfs)devfs on /var/unbound/dev (devfs)tank on /tank (zfs, local, noatime, nfsv4acls)
root@a-fw:~ # geom -tGeom Class Providerada0 DISK ada0 ada0 PART ada0p1 ada0p1 DEV ada0p1 LABEL gpt/gptboot0 gpt/gptboot0 DEV ada0 PART ada0p2 ada0p2 DEV swap SWAP ada0 PART ada0p3 ada0p3 DEV zfs::vdev ZFS::VDEV ada0 DEVada1 DISK ada1 ada1 PART ada1p1 ada1p1 DEV ada1p1 LABEL gpt/tank gpt/tank DEV ada1 DEV
root@a-fw:~ # zpool import pool: tank id: 17258291557216105619 state: UNAVAILstatus: One or more devices contains corrupted data. action: The pool cannot be imported due to damaged devices or data. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-5E config: tank UNAVAIL insufficient replicas ada1 UNAVAIL invalid label pool: tank id: 8003397822133176640 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: tank ONLINE ada1p1 ONLINE
root@a-fw:~ # zpool get cachefileNAME PROPERTY VALUE SOURCEtank cachefile - defaultzroot cachefile - defaultroot@a-fw:~ # zfs get all tankNAME PROPERTY VALUE SOURCEtank type filesystem -tank creation Sat Feb 12 15:04 2022 -tank used 10.6M -tank available 1.76T -tank referenced 10.1M -tank compressratio 1.00x -tank mounted yes -tank quota none defaulttank reservation none defaulttank recordsize 128K defaulttank mountpoint /tank localtank sharenfs off defaulttank checksum on defaulttank compression off defaulttank atime off localtank devices on defaulttank exec on defaulttank setuid on defaulttank readonly off defaulttank jailed off defaulttank snapdir hidden defaulttank aclmode discard defaulttank aclinherit restricted defaulttank createtxg 1 -tank canmount on defaulttank xattr on defaulttank copies 1 defaulttank version 5 -tank utf8only off -tank normalization none -tank casesensitivity sensitive -tank vscan off defaulttank nbmand off defaulttank sharesmb off defaulttank refquota none defaulttank refreservation none defaulttank guid 6254459496930362475 -tank primarycache all defaulttank secondarycache all defaulttank usedbysnapshots 0B -tank usedbydataset 10.1M -tank usedbychildren 516K -tank usedbyrefreservation 0B -tank logbias latency defaulttank objsetid 54 -tank dedup off defaulttank mlslabel none defaulttank sync standard defaulttank dnodesize legacy defaulttank refcompressratio 1.00x -tank written 10.1M -tank logicalused 10.2M -tank logicalreferenced 10.0M -tank volmode default defaulttank filesystem_limit none defaulttank snapshot_limit none defaulttank filesystem_count none defaulttank snapshot_count none defaulttank snapdev hidden defaulttank acltype nfsv4 defaulttank context none defaulttank fscontext none defaulttank defcontext none defaulttank rootcontext none defaulttank relatime off defaulttank redundant_metadata all defaulttank overlay on defaulttank encryption off defaulttank keylocation none defaulttank keyformat none defaulttank pbkdf2iters 0 defaulttank special_small_blocks 0 default
root@a-fw:~ # cat /usr/local/etc/rc.loader.d/20-zfs# ZFS standard environment requirementskern.geom.label.disk_ident.enable="0"kern.geom.label.gptid.enable="0"vfs.zfs.min_auto_ashift=12opensolaris_load="YES"zfs_load="YES"
root@a-fw:~ # zfs mount -varoot@a-fw:~ # mountzroot/ROOT/22.1-base on / (zfs, local, noatime, nfsv4acls)devfs on /dev (devfs)zroot/var/mail on /var/mail (zfs, local, nfsv4acls)zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot on /zroot (zfs, local, noatime, nfsv4acls)zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)devfs on /var/dhcpd/dev (devfs)devfs on /var/unbound/dev (devfs)root@a-fw:~ # zpool import tankroot@a-fw:~ # mountzroot/ROOT/22.1-base on / (zfs, local, noatime, nfsv4acls)devfs on /dev (devfs)zroot/var/mail on /var/mail (zfs, local, nfsv4acls)zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot on /zroot (zfs, local, noatime, nfsv4acls)zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)devfs on /var/dhcpd/dev (devfs)devfs on /var/unbound/dev (devfs)tank on /tank (zfs, local, noatime, nfsv4acls)
ada1 UNAVAIL invalid label