nvme ssd

だいぶお安くなってきた感あるんでマザーも更新したし取り付けてみた。

nvme0: <Generic NVMe Device> mem 0x86000000-0x86003fff at device 0.0 on pci1
nvme1: <Generic NVMe Device> mem 0x85e00000-0x85e03fff,0x85e04000-0x85e05fff at device 0.0 on pci5
nvme0: Allocated 1016MB host memory buffer
nvd0: <TLD-M2B01T3> NVMe namespace
nvd0: 953869MB (1953525168 512 byte sectors)
nvme1: Allocated 64MB host memory buffer
nvd1: <TS1TMTE110Q-E> NVMe namespace
nvd1: 953869MB (1953525168 512 byte sectors)

似たような値段のやつを2つ買ったのだが結構差があるっぽい。もうちょっと調べるべきだったな

例によってパーティション作成

fsrv1# gpart create -s GPT nvd0
nvd0 created
fsrv1# gpart add -t efi -s 200m nvd0
nvd0p1 added
fsrv1# gpart add -l TLD-M2B01T3 -t freebsd-zfs nvd0
nvd0p2 added
fsrv1# newfs_msdos -F 32 -S 512 -c 4 nvd0p1
/dev/nvd0p1: 407972 sectors in 101993 FAT32 clusters (2048 bytes/cluster)
BytesPerSec=512 SecPerClust=4 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=409600 FATsecs=797 RootCluster=2 FSInfo=1 Backup=2
fsrv1# mount -t msdosfs /dev/nvd0p1 /mnt/efi
fsrv1# mkdir -p /mnt/efi/efi/boot
fsrv1# cp /boot/loader.efi /mnt/efi/efi/boot/BOOTx64.efi
fsrv1# umount /mnt/efi

プール追加

fsrv1# zpool attach zroot /dev/gpt/C270161787 /dev/gpt/TLD-M2B01T3
fsrv1# zpool status zroot
  pool: zroot
 state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Sat May 20 16:31:42 2023
        102G scanned at 9.26G/s, 322K issued at 29.3K/s, 113G total
        0B resilvered, 0.00% done, no estimated completion time
config:

        NAME                 STATE     READ WRITE CKSUM
        zroot                ONLINE       0     0     0
          mirror-0           ONLINE       0     0     0
            gpt/C270161787   ONLINE       0     0     0
            gpt/F854920706   ONLINE       0     0     0
            gpt/TLD-M2B01T3  ONLINE       0     0     0

errors: No known data errors