Debian 8
- Microsoft Windows Server 2012 R2
- Hyper-V
- Debian 8.2 jessie
- Use iSCSI hard disk
特定の操作を実行すると、下記の警告がカーネルのメッセージバッファに出力され、その後ハードディスクが read-only でリマウントされてしまうため。
参考URL:https://lists.debian.org/debian-kernel/2015/07/msg00178.html
# dmesg
[3207336.832154] hv_storvsc vmbus_0_1: cmd 0x35 scsi status 0x2 srb status 0x82
[3207336.832158] hv_storvsc vmbus_0_1: stor pkt ffff880037390ac0 autosense data valid - len 18
[3207336.832160] storvsc: Sense Key : Unit Attention [current]
[3207336.832162] storvsc: Add. Sense: Changed operating definition
[3207336.832168] sd 2:0:0:0: Warning! Received an indication that the operating parameters on this target have changed. The Linux SCSI layer does not automatically adjust these parameters.
[3207336.832174] end_request: I/O error, dev sda, sector 4569656
[3207336.832203] Aborting journal on device sda1-8.
[3207336.837614] EXT4-fs error (device sda1): ext4_journal_check_start:56: Detected aborted journal
[3207336.837644] EXT4-fs (sda1): Remounting filesystem read-only
- 稼働しているアプリケーションを停止
- Hyper-V 上の仮想マシンにチェックポイントを作成
- カーネルのバージョンを確認
# uname -a
Linux debian8 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
パッケージの取得元に backports リポジトリを追加します。
Добавьте репозиторий Backports в качестве источника пакетов.
# joe /etc/apt/sources.list.d/sources.list
deb http://http.debian.net/debian jessie-backports main
deb-src http://http.debian.net/debian jessie-backports main
パッケージリストを更新し、各種パッケージ(ディストリビューション)もついでに最新にしておきます。
Обновить список пакетов
# apt-get update
# apt-get dist-upgrade
最新版のカーネルをインストールします。
Установите ядро последней версии.
# apt-cache search linux-image
linux-headers-3.16.0-4-amd64 - Header files for Linux 3.16.0-4-amd64
linux-image-3.16.0-4-amd64 - Linux 3.16 for 64-bit PCs
linux-image-3.16.0-4-amd64-dbg - Debugging symbols for Linux 3.16.0-4-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
linux-headers-4.8.0-0.bpo.2-amd64 - Header files for Linux 4.8.0-0.bpo.2-amd64
linux-headers-4.8.0-0.bpo.2-rt-amd64 - Header files for Linux 4.8.0-0.bpo.2-rt-amd64
linux-headers-4.9.0-0.bpo.1-amd64 - Header files for Linux 4.9.0-0.bpo.1-amd64
linux-headers-4.9.0-0.bpo.1-rt-amd64 - Header files for Linux 4.9.0-0.bpo.1-rt-amd64
linux-image-4.8.0-0.bpo.2-amd64-dbg - Debugging symbols for Linux 4.8.0-0.bpo.2-amd64
linux-image-4.8.0-0.bpo.2-amd64-unsigned - Linux 4.8 for 64-bit PCs
linux-image-4.8.0-0.bpo.2-rt-amd64-dbg - Debugging symbols for Linux 4.8.0-0.bpo.2-rt-amd64
linux-image-4.8.0-0.bpo.2-rt-amd64-unsigned - Linux 4.8 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-0.bpo.1-amd64-dbg - Debugging symbols for Linux 4.9.0-0.bpo.1-amd64
linux-image-4.9.0-0.bpo.1-amd64-unsigned - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-0.bpo.1-rt-amd64-dbg - Debugging symbols for Linux 4.9.0-0.bpo.1-rt-amd64
linux-image-4.9.0-0.bpo.1-rt-amd64-unsigned - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-headers-4.8.0-2-grsec-amd64 - Header files for Linux 4.8.0-2-grsec-amd64
linux-image-4.8.0-2-grsec-amd64 - Linux 4.8 for 64-bit PCs, Grsecurity protection
linux-image-grsec-amd64 - Linux image meta-package, grsec featureset
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package)
linux-image-4.8.0-0.bpo.2-amd64 - Linux 4.8 for 64-bit PCs (signed)
linux-image-4.8.0-0.bpo.2-rt-amd64 - Linux 4.8 for 64-bit PCs, PREEMPT_RT (signed)
linux-image-4.9.0-0.bpo.1-amd64 - Linux 4.9 for 64-bit PCs (signed)
linux-image-4.9.0-0.bpo.1-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT (signed)
# apt-get install -t jessie-backports linux-image-amd64
インストールに使用したアーカイブファイルを削除し、OS を再起動します。
Удалить файл архива и перегрузиться
# apt-get clean
# nester
カーネルのバージョンを確認します。
$ uname -a
Linux proxy 4.9.0-0.bpo.1-amd64 #1 SMP Debian 4.9.2-2~bpo8+1 (2017-01-26) x86_64 GNU/Linux
- アプリケーションを開始し動作に問題がないことを確認
- Hyper-V 上の仮想マシンのチェックポイントを削除
- Hyper-V 上の仮想マシンをエクスポートしてバックアップ