Ubuntu20.04 ZFS
Ubuntu20.04をクリーンインストールしたので、再マウントしたのでメモ書き
・インストール
$ sudo apt install zfsutils-linux |
・確認
$ sudo zpool status |
no pools available |
当然無いので、次
$ sudo zpool import |
pool: zfs_pool id: hogehogehogehoge state: ONLINE status: Some supported features are not enabled on the pool. action: The pool can be imported using its name or numeric identifier, though some features will not be available without an explicit ‘zpool upgrade’.config:zfs_pool ONLINE raidz2-0 ONLINE disk1 ONLINE disk2 ONLINE disk3 ONLINE disk4 ONLINE disk5 ONLINE |
と表示されていたので、
$ sudo zpool upgrade |
This system supports ZFS pool feature flags. All pools are formatted using feature flags. Every feature flags pool has all supported features enabled. |
モジュールの有効化
$ sudo modprobe zfs |
プールのインポート
$ sudo zpool import zfs_pool #zfs_poolはプール名 |
cannot import ‘zfs_pool’: pool was previously in use from another system. Last accessed by <unknown> (hostid=0) at Sun Aug 16 16:29:25 2020 The pool can be imported, use ‘zpool import -f’ to import the pool. |
と出たので、
$ sudo zpool import -f zfs_pool |
マウントされたことを確認
再起動しても、マウント状態を確認