CentOS7.9 に OpenZFS2系は他人事だと思っていたら普通にupdateできた

yumリポジトリ設定が異常で更新できなかっただけで、
正常化した所普通に更新できました。

[root@xfs ~]# uname -r
3.10.0-1160.42.2.el7.x86_64
[root@xfs ~]# zfs version
zfs-0.8.5-1
zfs-kmod-0.8.5-1
[root@xfs ~]# yum update
..
#省略
#結構時間かかった
...
[root@xfs ~]# zfs version
zfs-2.0.5-1
zfs-kmod-0.8.5-1
[root@xfs ~]# reboot

# 再起動後
[root@xfs ~]# zfs version
zfs-2.0.5-1
zfs-kmod-2.0.5-1
[root@xfs ~]# zpool status
  pool: tank
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
	still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
	the pool may no longer be accessible by software that does not support
	the features. See zpool-features(5) for details.
...

[root@xfs ~]# zpool upgrade
This system supports ZFS pool feature flags.

All pools are formatted using feature flags.


Some supported features are not enabled on the following pools. Once a
feature is enabled the pool may become incompatible with software
that does not support the feature. See zpool-features(5) for details.

POOL  FEATURE
---------------
tank
      redaction_bookmarks
      redacted_datasets
      bookmark_written
      log_spacemap
      livelist
      device_rebuild
      zstd_compress

新機能は詳しく見てないですが、互換性を見る限り使うべきか不安になる感じです。
まあ、次はUbuntuかなと思っており、UbuntuもOpenZFSなので大丈夫そうな気はしますが。
https://openzfs.github.io/openzfs-docs/Basic%20Concepts/Feature%20Flags.html

でせっかくバージョン変わったので、
HDDの入れ替え時のパフォーマンスの測定とかしたいけど、
アップデートの直前に全台のHDDの入れ替えが終わったとこなので今からは流石に無理。。
1台あたり47時間くらいかかったので。

そういえば、OpenZFSのrepoってどうなったんだっけと思ったので

# yum install https://zfsonlinux.org/epel/zfs-release.el7_9.noarch.rpm
# cat zfs.repo.rpmnew 
[zfs]
name=OpenZFS for EL7 - dkms
baseurl=http://download.zfsonlinux.org/epel/7.9/$basearch/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux

[zfs-kmod]
name=OpenZFS for EL7 - kmod
baseurl=http://download.zfsonlinux.org/epel/7.9/kmod/$basearch/
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux

[zfs-source]
name=OpenZFS for EL7 - Source
baseurl=http://download.zfsonlinux.org/epel/7.9/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux

[zfs-next]
name=OpenZFS for EL7 - dkms - Next upcoming version
baseurl=http://download.zfsonlinux.org/epel-next/7.9/$basearch/
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux

[zfs-testing]
name=OpenZFS for EL7 - dkms - Testing
baseurl=http://download.zfsonlinux.org/epel-testing/7.9/$basearch/
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux

[zfs-testing-kmod]
name=OpenZFS for EL7 - kmod - Testing
baseurl=http://download.zfsonlinux.org/epel-testing/7.9/kmod/$basearch/
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux

[zfs-testing-source]
name=OpenZFS for EL7 - Testing Source
baseurl=http://download.zfsonlinux.org/epel-testing/7.9/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux

結論:nameが変わっていた。

CentOS7 で RTL8125B を使えるようにした

comfastというメーカーのネットワークボードを購入し、
Windowsでは問題なく動作したのですが、CentOSの端末にさしても認識してなかったので対応を行いました。

まず、公式のドライバを入れようとしてみましたが、
./autorun.sh を実行するとエラーが発生してうまくいかないため、
ELRepoから入れることに。
(最初から表示されてるのは、M/B上の今まで使用していたものです)

# nmcli device
DEVICE     TYPE      STATE      CONNECTION
enp0sxxxx  ethernet  connected  enp0sxxxx
lo         loopback  unmanaged  --
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
# sudo yum install kmod-r8125
# reboot

インストールができたので一旦リブート

# nmcli device
DEVICE     TYPE      STATE        CONNECTION
enp0sxxxx  ethernet  connected    enp0sxxxx
enp6sxxxx  ethernet  unavailable  --
lo         loopback  unmanaged    --
# nmcli connection add type ethernet ifname enp6sxxxx con-name enp6sxxxx
# vi /etc/sysconfig/network-scripts/ifcfg-enp6sxxxx #好みに編集
# reboot

私はここでケーブルの繋ぎ変えを行いました。

# nmcli device
DEVICE     TYPE      STATE      CONNECTION
enp6sxxxx  ethernet  connected  enp6sxxxx
enp0sxxxx  ethernet  connected  enp0sxxxx
lo         loopback  unmanaged  --

ということで、正常につながりました。
よかったよかった。

WindowsでIMEの切り替えショートカットが利かなくなった

Windowsのアップデートの影響か、元々[Shift]+[Space]でやっていた切り替えが最近できなくなったので、メモを兼ねて

結論から言うと、下画像のキーの割り当てがオフの状態になっていた。
その下の設定もデフォルトでは何か違うことになっていた。

英語キーボードなので、無変換とか変換キーとかそもそも物理的に存在しないので、
デフォルトそのまま。

Raid Zのディスクが異常になったので交換した

root からのメール

11/23

CurrentPendingSector

Device: /dev/sdd [SAT], 8 Currently unreadable (pending) sectors
OfflineUncorrectableSector

Device: /dev/sdd [SAT], 8 Offline uncorrectable sectors

11/24

FailedReadSmartData

Device: /dev/sdd [SAT], failed to read SMART Attribute Data

12/3

CurrentPendingSector

Device: /dev/sdd [SAT], 16 Currently unreadable (pending) sectors
OfflineUncorrectableSector

Device: /dev/sdd [SAT], 16 Offline uncorrectable sectors

12/4

FailedReadSmartData

Device: /dev/sdd [SAT], failed to read SMART Attribute Data

ZFS の状況確認

# zpool status
  pool: tank
 state: DEGRADED
status: One or more devices has been removed by the administrator.
        Sufficient replicas exist for the pool to continue functioning in a
        degraded state.
action: Online the device using 'zpool online' or replace the device with
        'zpool replace'.
  scan: resilvered 55.5G in 0 days 00:15:39 with 0 errors on Thu Dec  3 16:27:00 2020
config:

        NAME                                 STATE     READ WRITE CKSUM
        tank                                 DEGRADED     0     0     0
          raidz1-0                           DEGRADED     0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX1  ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX2  REMOVED      0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX3  ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX4  ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XXr  ONLINE       0     0     0

errors: No known data errors

隔離されてる。
2年半使っていて保証切れてるし、交換(4TB->8TB)することに。
まずは注文

SEAGATE 3.5インチ内蔵HDD8TB ST8000DM004 (8TB SATA) 代理店保証1年
価格:13816円(税込、送料別) (2020/12/9時点)楽天で購入

届いたら、電源を切り、HDD入れ替え
IDを確認

# ls -lh /dev/disk/by-id/

zpoolの状況を確認

$ zpool status
  pool: tank
 state: DEGRADED
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: http://zfsonlinux.org/msg/ZFS-8000-4J
  scan: resilvered 55.5G in 0 days 00:15:39 with 0 errors on Thu Dec  3 16:27:00 2020
config:

        NAME                                 STATE     READ WRITE CKSUM
        tank                                 DEGRADED     0     0     0
          raidz1-0                           DEGRADED     0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX1  ONLINE       0     0     0
            9999999999999994100              UNAVAIL      0     0     0  was /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN15XX2-part1
            ata-ST4000DM004-2CV104_ZFN15XX3  ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX4  ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX5  ONLINE       0     0     0

errors: No known data errors

差し替え

# zpool replace tank ata-ST4000DM004-2CV104_ZFN15XX2 ata-ST8000DM004-2CX188_ZCTXXXXX

再同期中の様子

# zpool status
  pool: tank
 state: DEGRADED
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 Tue Dec  8 17:23:26 2020
        186G scanned at 9.80G/s, 9.62M issued at 519K/s, 12.3T total
        0B resilvered, 0.00% done, no estimated completion time
config:

        NAME                                   STATE     READ WRITE CKSUM
        tank                                   DEGRADED     0     0     0
          raidz1-0                             DEGRADED     0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX1    ONLINE       0     0     0
            replacing-1                        DEGRADED     0     0     0
              9999999999999994100              UNAVAIL      0     0     0  was /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN15XX2-part1
              ata-ST8000DM004-2CX188_ZCTXXXXX  ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX3    ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX4    ONLINE       0     0     0
            ata-ST4000DM004-2CV104_ZFN15XX5    ONLINE       0     0     0

errors: No known data errors

今現在、22時間経っていますが、半分くらいの時間は書き込みも読み込みも行っており、
こんな感じで半分が進んだ程度。

$ zpool status
  pool: tank
 state: DEGRADED
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 Tue Dec  8 17:23:26 2020
        8.79T scanned at 116M/s, 8.37T issued at 110M/s, 12.3T total
        1.67T resilvered, 68.11% done, 0 days 10:22:24 to go

その後、再同期完了後にpoolを確認すると、エラーの表示が

$ zpool status -x
  pool: tank
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://zfsonlinux.org/msg/ZFS-8000-9P
  scan: resilvered 2.43T in 1 days 07:34:55 with 0 errors on Thu Dec 10 00:58:21 2020

エラーをclearすることに

$ sudo zpool clear tank
$ zpool status -x
all pools are healthy

一回再起動しとこう。。