2台目のNAS(その3:ZIL/L2ARCをSSD化)

NAS 1号機の設定から随分時間が経ちましたが、本日やっとNAS 2号機もZIL/L2ARCをSSD化しました。
SSD等の機材は1号機の時にまとめて用意していたのですが、諸般の事情からなかなかメンテナンスできず、年を越してしまいました。

% zpool status -v
  pool: hoge
 state: ONLINE
  scan: scrub repaired 0 in 0 days 02:21:14 with 0 errors on Wed Dec 30 05:29:25 2020
config:

        NAME        STATE     READ WRITE CKSUM
        hoge        ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            ada0p2  ONLINE       0     0     0
            ada1p2  ONLINE       0     0     0
            ada2p2  ONLINE       0     0     0
            ada3p2  ONLINE       0     0     0
            ada4p2  ONLINE       0     0     0

errors: No known data errors
% su
# gpart create -s GPT nvd0
nvd0 created
# gpart add -t freebsd-zfs -l freebsd-zil -s 4g nvd0
nvd0p1 added
# gpart add -t freebsd-zfs -l freebsd-l2arc -s 128g nvd0
nvd0p2 added
# gpart show nvd0
=>       40  500118112  nvd0  GPT  (238G)
         40    8388608     1  freebsd-zfs  (4.0G)
    8388648  268435456     2  freebsd-zfs  (128G)
  276824104  223294048        - free -  (106G)
# gpart show -l nvd0
=>       40  500118112  nvd0  GPT  (238G)
         40    8388608     1  freebsd-zil  (4.0G)
    8388648  268435456     2  freebsd-l2arc  (128G)
  276824104  223294048        - free -  (106G)
# zpool add -n hoge log nvd0p1
would update 'hoge' to the following configuration:
        hoge
          raidz1-0
            ada0p2
            ada1p2
            ada2p2
            ada3p2
            ada4p2
          nvd0p1
# zpool add hoge log nvd0p1
# zpool status
  pool: hoge
 state: ONLINE
  scan: scrub repaired 0 in 0 days 02:21:14 with 0 errors on Wed Dec 30 05:29:25 2020
config:

        NAME        STATE     READ WRITE CKSUM
        hoge        ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            ada0p2  ONLINE       0     0     0
            ada1p2  ONLINE       0     0     0
            ada2p2  ONLINE       0     0     0
            ada3p2  ONLINE       0     0     0
            ada4p2  ONLINE       0     0     0
        logs
          nvd0p1    ONLINE       0     0     0

errors: No known data errors
# zpool add -n hoge cache nvd0p2
would update 'hoge' to the following configuration:
        hoge
          raidz1-0
            ada0p2
            ada1p2
            ada2p2
            ada3p2
            ada4p2
        logs
          nvd0p1
# zpool add hoge cache nvd0p2
# zpool status
  pool: hoge
 state: ONLINE
  scan: scrub repaired 0 in 0 days 02:21:14 with 0 errors on Wed Dec 30 05:29:25 2020
config:

        NAME        STATE     READ WRITE CKSUM
        hoge        ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            ada0p2  ONLINE       0     0     0
            ada1p2  ONLINE       0     0     0
            ada2p2  ONLINE       0     0     0
            ada3p2  ONLINE       0     0     0
            ada4p2  ONLINE       0     0     0
        logs
          nvd0p1    ONLINE       0     0     0
        cache
          nvd0p2    ONLINE       0     0     0

errors: No known data errors

その2へ戻る