Translated message

A translation of this page exists in English.

デバイスがクリーンな場合にマウントされたデバイスで 'fsck -n' を実行すると fsck が破損を表示するのはなぜですか?

Solution In Progress - Updated -

Issue

  • マウントされた使用中のデバイスに対して fsck -n を発行すると、ファイルシステムの破損が報告されますが、デバイスがマウントされていないときに fsck を実行すると、デバイスがクリーンであると報告されます。
  • マウントされたファイルシステムで fsck を実行すると、以下のようなエラーが発生します。
# fsck -n /dev/mapper/VolGroup-lv_test
 fsck from util-linux-ng 2.17.2
 e2fsck 1.41.12 (17-May-2010)
 Warning!  /dev/mapper/VolGroup-lv_test is mounted.
 Warning: skipping journal recovery because doing a read-only filesystem check.
 /dev/mapper/VolGroup-lv_test contains a file system with errors, check forced.
 Pass 1: Checking inodes, blocks, and sizes
 Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
 Block bitmap differences:  -2974075
 Fix? no

 Free blocks count wrong for group #90 (2630, counted=2629).
 Fix? no

 Free blocks count wrong (7702583, counted=7714667).
 Fix? no

 Free inodes count wrong (7285539, counted=7285465).
 Fix? no

 /dev/mapper/VolGroup-lv_test: ********** WARNING: Filesystem still has errors **********
 /dev/mapper/VolGroup-lv_test: 103645/7389184 files (0.4% non-contiguous), 21826505/29529088 blocks
  • しかし、デバイスをアンマウントすると、fsck は問題がないと報告します。
# fsck -fy /dev/mapper/VolGroup-lv_test

fsck from util-linux-ng 2.17.2
 e2fsck 1.41.12 (17-May-2010)
 Pass 1: Checking inodes, blocks, and sizes
 Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
 /dev/mapper/VolGroup-lv_test: 103645/7389184 files (0.4% non-contiguous), 21826505/29529088 blocks

Environment

  • Red Hat Enterprise Linux (RHEL)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content