Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Tue, 17 Apr 2007 23:43:17 +0000 (23:43 +0000)
committeradilger <adilger>
Tue, 17 Apr 2007 23:43:17 +0000 (23:43 +0000)
commit9b6f9d17a35188f5f4dbfae840164b999a7a78a2
tree3cf99a6596a4e293eafc0dc46bf8db6f5e99ba08
parent6460bf8893d551b552c5c37493a332018bc07a03
Branch HEAD
Description: data loss for recently-modified files
Details    : In some cases it is possible that recently written or created
     files may not be written to disk in a timely manner (this should
     normally be within 30s unless client IO load is very high).
     The problem appears as zero-length files or files that are a
     multiple of 1MB in size after a client crash or client eviction
     that are missing data at the end of the file.

     This problem is more likely to be hit on clients where files are
     repeatedly created and unlinked in the same directory, clients
     have a large amount of RAM, have many CPUs, the filesystem has
     many OSTs, the clients are rebooted frequently, and/or the files
     are not accessed by other nodes after being written.

     The presence of the problem can be detected by looking at
     /proc/sys/fs/inode-state.  If the first number (nr_inodes) is
     smaller than the second (nr_unused) then dirty files will not
     be flushed automatically to disk.  "sync; sleep 10" should be
     run several times on the node before unmounting it to update
     Lustre (this is also safe to run on nodes without this problem).

     There is also a related kernel bug in the RHEL4 4 2.6.9 kernel
     that can cause this same problem, so customers using that kernel
     also need to update the kernel in addition to Lustre.  In order
     to properly fix this bug, the RHEL3 2.4.21 kernel is also updated.

     It is normal that files written just before a client crash (less
     than 30s) may not yet have been flushed to disk, even for local
     filesystems.
i=green(original patch), i=shadow
b=12181, b=12203
lustre/ChangeLog
lustre/autoconf/lustre-version.ac
lustre/kernel_patches/patches/inode-nr_unused-2.6.9-rhel4.patch [new file with mode: 0644]
lustre/kernel_patches/patches/vfs_intent-2.4.21-rhel.patch
lustre/llite/namei.c