hack のためのネタ帳, etc,,,

20161214: ubuntu-zfs の migration に引き続き
ZFS root で運用しているマシンもマイグレーションしてみた。
今回の環境
$ uname -a
Linux H87Pro4 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.1 LTS
Release:	16.04
Codename:	xenial
ZFS 関連のパッケージの初期状態
$ dpkg -l | grep zfs
ii  libzfs2                                                     0.6.5.7-1~trusty                              amd64        Native OpenZFS filesystem library for Linux
ii  ubuntu-zfs                                                  8~trusty                                      amd64        Native ZFS filesystem metapackage for Ubuntu.
ii  zfs-dkms                                                    0.6.5.7-1~trusty                              amd64        Native OpenZFS filesystem kernel modules for Linux
ii  zfs-doc                                                     0.6.5.7-1~trusty                              amd64        Native OpenZFS filesystem documentation and examples.
ii  zfs-initramfs                                               0.6.5.7-1~trusty                              amd64        Native OpenZFS root filesystem capabilities for Linux
ii  zfsutils                                                    0.6.5.7-1~trusty                              amd64        Native OpenZFS management utilities for Linux
ZFS 周りをざっくり削除
$ dpkg -l| grep -i zfs | awk '{print $2}' | sudo xargs apt-get purge -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージは「削除」されます:
  libnvpair1* libuutil1* libzfs2* libzpool2* ubuntu-zfs* zfs-dkms* zfs-doc* zfs-initramfs* zfsutils*
アップグレード: 0 個、新規インストール: 0 個、削除: 9 個、保留: 0 個。
この操作後に 11.1 MB のディスク容量が解放されます。
(データベースを読み込んでいます ... 現在 269448 個のファイルとディレクトリがインストールされています。)
zfs-initramfs (0.6.5.7-1~trusty) を削除しています ...
ubuntu-zfs (8~trusty) を削除しています ...
ubuntu-zfs (8~trusty) の設定ファイルを削除しています ...
zfsutils (0.6.5.7-1~trusty) を削除しています ...
zfsutils (0.6.5.7-1~trusty) の設定ファイルを削除しています ...
dpkg: 警告: zfsutils の削除中、ディレクトリ '/etc/zfs' が空でないため削除できませんでした
libzfs2 (0.6.5.7-1~trusty) を削除しています ...
libzfs2 (0.6.5.7-1~trusty) の設定ファイルを削除しています ...
libzpool2 (0.6.5.7-1~trusty) を削除しています ...
libzpool2 (0.6.5.7-1~trusty) の設定ファイルを削除しています ...
zfs-dkms (0.6.5.7-1~trusty) を削除しています ...

-------- Uninstall Beginning --------
Module:  zfs
Version: 0.6.5.7
Kernel:  4.4.0-57-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

zavl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-57-generic/
rmdir: '' を削除できません: そのようなファイルやディレクトリはありません
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zcommon.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-57-generic/
rmdir: '' を削除できません: そのようなファイルやディレクトリはありません
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


znvpair.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-57-generic/
rmdir: '' を削除できません: そのようなファイルやディレクトリはありません
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zpios.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-57-generic/
rmdir: '' を削除できません: そのようなファイルやディレクトリはありません
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zunicode.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-57-generic/
rmdir: '' を削除できません: そのようなファイルやディレクトリはありません
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


zfs.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-57-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.6.5.7
completely from the DKMS tree.
------------------------------
Done.
libnvpair1 (0.6.5.7-1~trusty) を削除しています ...
libnvpair1 (0.6.5.7-1~trusty) の設定ファイルを削除しています ...
libuutil1 (0.6.5.7-1~trusty) を削除しています ...
libuutil1 (0.6.5.7-1~trusty) の設定ファイルを削除しています ...
zfs-doc (0.6.5.7-1~trusty) を削除しています ...
zfs-doc (0.6.5.7-1~trusty) の設定ファイルを削除しています ...
initramfs-tools (0.122ubuntu8.7) のトリガを処理しています ...
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
man-db (2.7.5-1) のトリガを処理しています ...
libc-bin (2.23-0ubuntu5) のトリガを処理しています ...
改めて、zfsutils-linux とその suggestion の zfs-initramfs を手動で指定
$ sudo apt-get install zfsutils-linux zfs-initramfs
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-zed
提案パッケージ:
  default-mta | mail-transport-agent nfs-kernel-server
以下のパッケージが新たにインストールされます:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-initramfs zfs-zed zfsutils-linux
アップグレード: 0 個、新規インストール: 8 個、削除: 0 個、保留: 0 個。
901 kB のアーカイブを取得する必要があります。
この操作後に追加で 2,928 kB のディスク容量が消費されます。
続行しますか? [Y/n] 
取得:1 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 zfs-doc all 0.6.5.6-0ubuntu15 [49.9 kB]
取得:2 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 libuutil1linux amd64 0.6.5.6-0ubuntu15 [27.4 kB]
取得:3 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 libnvpair1linux amd64 0.6.5.6-0ubuntu15 [23.4 kB]
取得:4 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 libzpool2linux amd64 0.6.5.6-0ubuntu15 [384 kB]
取得:5 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 libzfs2linux amd64 0.6.5.6-0ubuntu15 [106 kB]
取得:6 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 zfsutils-linux amd64 0.6.5.6-0ubuntu15 [276 kB]
取得:7 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/universe amd64 zfs-initramfs all 0.6.5.6-0ubuntu15 [4,130 B]
取得:8 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial-updates/main amd64 zfs-zed amd64 0.6.5.6-0ubuntu15 [29.6 kB]
901 kB を 1秒 で取得しました (540 kB/s)
以前に未選択のパッケージ zfs-doc を選択しています。
(データベースを読み込んでいます ... 現在 268759 個のファイルとディレクトリがインストールされています。)
.../zfs-doc_0.6.5.6-0ubuntu15_all.deb を展開する準備をしています ...
zfs-doc (0.6.5.6-0ubuntu15) を展開しています...
以前に未選択のパッケージ libuutil1linux を選択しています。
.../libuutil1linux_0.6.5.6-0ubuntu15_amd64.deb を展開する準備をしています ...
libuutil1linux (0.6.5.6-0ubuntu15) を展開しています...
以前に未選択のパッケージ libnvpair1linux を選択しています。
.../libnvpair1linux_0.6.5.6-0ubuntu15_amd64.deb を展開する準備をしています ...
libnvpair1linux (0.6.5.6-0ubuntu15) を展開しています...
以前に未選択のパッケージ libzpool2linux を選択しています。
.../libzpool2linux_0.6.5.6-0ubuntu15_amd64.deb を展開する準備をしています ...
libzpool2linux (0.6.5.6-0ubuntu15) を展開しています...
以前に未選択のパッケージ libzfs2linux を選択しています。
.../libzfs2linux_0.6.5.6-0ubuntu15_amd64.deb を展開する準備をしています ...
libzfs2linux (0.6.5.6-0ubuntu15) を展開しています...
以前に未選択のパッケージ zfsutils-linux を選択しています。
.../zfsutils-linux_0.6.5.6-0ubuntu15_amd64.deb を展開する準備をしています ...
zfsutils-linux (0.6.5.6-0ubuntu15) を展開しています...
以前に未選択のパッケージ zfs-initramfs を選択しています。
.../zfs-initramfs_0.6.5.6-0ubuntu15_all.deb を展開する準備をしています ...
zfs-initramfs (0.6.5.6-0ubuntu15) を展開しています...
以前に未選択のパッケージ zfs-zed を選択しています。
.../zfs-zed_0.6.5.6-0ubuntu15_amd64.deb を展開する準備をしています ...
zfs-zed (0.6.5.6-0ubuntu15) を展開しています...
libc-bin (2.23-0ubuntu5) のトリガを処理しています ...
initramfs-tools (0.122ubuntu8.7) のトリガを処理しています ...
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
man-db (2.7.5-1) のトリガを処理しています ...
systemd (229-4ubuntu13) のトリガを処理しています ...
ureadahead (0.100.0-19) のトリガを処理しています ...
ureadahead will be reprofiled on next reboot
zfs-doc (0.6.5.6-0ubuntu15) を設定しています ...
libuutil1linux (0.6.5.6-0ubuntu15) を設定しています ...
libnvpair1linux (0.6.5.6-0ubuntu15) を設定しています ...
libzpool2linux (0.6.5.6-0ubuntu15) を設定しています ...
libzfs2linux (0.6.5.6-0ubuntu15) を設定しています ...
zfsutils-linux (0.6.5.6-0ubuntu15) を設定しています ...
zfs-import-cache.service is a disabled or a static unit, not starting it.
zfs-import-scan.service is a disabled or a static unit, not starting it.
zfs-mount.service is a disabled or a static unit, not starting it.
initramfs-tools (0.122ubuntu8.7) のトリガを処理しています ...
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
zfs-zed (0.6.5.6-0ubuntu15) を設定しています ...
zed.service is a disabled or a static unit, not starting it.
zfs-initramfs (0.6.5.6-0ubuntu15) を設定しています ...
libc-bin (2.23-0ubuntu5) のトリガを処理しています ...
systemd (229-4ubuntu13) のトリガを処理しています ...
ureadahead (0.100.0-19) のトリガを処理しています ...
initramfs-tools (0.122ubuntu8.7) のトリガを処理しています ...
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
更新後の状態
$ dpkg -l | grep zfs
ii  libzfs2linux                                                0.6.5.6-0ubuntu15                             amd64        Native OpenZFS filesystem library for Linux
ii  zfs-doc                                                     0.6.5.6-0ubuntu15                             all          Native OpenZFS filesystem documentation and examples.
ii  zfs-initramfs                                               0.6.5.6-0ubuntu15                             all          Native OpenZFS root filesystem capabilities for Linux
ii  zfs-zed                                                     0.6.5.6-0ubuntu15                             amd64        OpenZFS Event Daemon (zed)
ii  zfsutils-linux                                              0.6.5.6-0ubuntu15                             amd64        Native OpenZFS management utilities for Linux

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます