<div dir="ltr">In reply to Graham<br><br>&gt; The zero byte file is going to be an entry in an existing inode (or equivalent for jfs), and<br>
&gt; the file with contents is going to require the allocation of new space for the contents.<br>
&gt; From memory (and its been a long time since I used jfs) it keeps a log of the available<br>
&gt; spaces on the disk, so if that log is inaccessible (or locked) for some reason, then<br>
&gt; attempting to allocate new space will have exactly the impact you&#39;re seeing.<br>Thank you for the explanation.<br><br>&gt; Those would certainly have caused the corruption, but in theory once the fsck was complete,<br>




&gt; it should be &quot;ok&quot; again. &nbsp;If you reboot and then try and create that 10M file without doing<br>
&gt; anything else first, does that bomb out still?<br>No.<br>After each reboot, it works for a while and then &quot;bomb out&quot; when moving files.<br><br>&gt; That (and the lack of errors) implies that it&#39;s not actually a hardware problem.<br>



Couldn&#39;t it be random memory error ?<br><br>&gt; One last check (that will probably take quite a while) would be to attempt to read the block<br>
&gt; device using dd - that&#39;ll tell you if the problem is with jfs or at a lower level. &nbsp;Just &quot;dd<br>
&gt; if=&lt;block device&gt; of=/dev/null bs=16M&quot; and leave it running overnight ;)<br>I had the same idea and made dd if=&lt;block device&gt; of=/dev/null on all the partitions involved in the filesystem and works fine.<br>



<br>&gt; If the reboot doesn&#39;t fix it (and possibly even if it does) it may make sense to stop<br>
&gt; everything and force a full fsck (even if the OS thinks the partition is clean). Unmount it,<br>
&gt; and then &quot;fsck.jfs -v -f &lt;device&gt; | tee /tmp/fsck_log&quot;. &nbsp;That&#39;ll log to a file as well as<br>
&gt; chucking it to the screen, which may be of use to someone that knows JFS well.<br>The reboot fix the problem but I &quot;fsck&quot; the filesystem as you adviced. Here is the result :<br><br>fsck.jfs version 1.1.11, 05-Jun-2006<br>



processing started: 8/21/2008 13.13.32<br>The current device is:&nbsp; /dev/mapper/vgmythtv01-lvmythtv3<br>Open(...READ/WRITE EXCLUSIVE...) returned rc = 0<br>Primary superblock is valid.<br>The type of file system for the device is JFS.<br>



Block size in bytes:&nbsp; 4096<br>Filesystem size in blocks:&nbsp; 263344128<br>**Phase 0 - Replay Journal Log<br>LOGREDO:&nbsp; Log already redone!<br>logredo returned rc = 0<br>**Phase 1 - Check Blocks, Files/Directories, and&nbsp; Directory Entries<br>



**Phase 2 - Count links<br>**Phase 3 - Duplicate Block Rescan and Directory Connectedness<br>**Phase 4 - Report Problems<br>**Phase 5 - Check Connectivity<br>**Phase 6 - Perform Approved Corrections<br>**Phase 7 - Rebuild File/Directory Allocation Maps<br>



**Phase 8 - Rebuild Disk Allocation Maps<br>Filesystem Summary:<br>Blocks in use for inodes:&nbsp; 992<br>Inode count:&nbsp; 7936<br>File count:&nbsp; 3113<br>Directory count:&nbsp; 128<br>Block count:&nbsp; 263344128<br>Free block count:&nbsp; 44005953<br>



1053376512 kilobytes total disk space.<br>&nbsp;&nbsp;&nbsp;&nbsp; 1104 kilobytes in 128 directories.<br>877154816 kilobytes in 3113 user files.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 kilobytes in extended attributes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 kilobytes in access control lists<br>



&nbsp;&nbsp; 198988 kilobytes reserved for system use.<br>176023812 kilobytes are available for use.<br>Filesystem is clean.<br>All observed inconsistencies have been repaired.<br>Filesystem has been marked clean.<br>**** Filesystem was modified. ****<br>



processing terminated:&nbsp; 8/21/2008 13:13:49&nbsp; with return code: 0&nbsp; exit code: 0.<br><br>I already have manually applied fsck on the fs before it &quot;bomb out&quot;.<br><br>Kind regards.<br></div>