This can happen when a space reservation is set on the file in question.
du and ls can differ because setext was used to pre-allocate or reserve space for a file and how to use setext-r to resolve the difference.ls and du . Note that both commands show 0 bytes:#touch test # ls-l test -rw------- 1 root other 0 Jun 11 16:01test # du-k test 0 test setext to pre allocate space for the file and check ls and du again. Note this time du shows 1024 Kbytes allocated to the file while ls still shows 0 bytes:#/usr/lib/fs/vxfs/bin/setext -r 1024k test # du-k test 1024 test # ls-l test -rw------- 1 root other 0 Jun 11 16:01test getext command can be used to check the space reservation of a file:#/usr/lib/fs/vxfs/bin/getext test test: Bsize 1024 Reserve 1024 ExtentSize 0 setext command also can be used to clear a space reservation for a file:#/usr/lib/fs/vxfs/bin/setext -r 0 test #/usr/lib/fs/vxfs/bin/getext test test: Bsize 1024 Reserve 0 ExtentSize 0 # du-k test 0 test qiomkfile will have a space reservation associated with it. Even if this file is converted to a regular VERITAS FileSystem (VxFS) file, the space reservation will persist. However, a file that is converted from a regular VxFS file to Quick I/O manually or using the conversion script will not have a space reservation associated with it.