[Ocfs2-users] A file was strangly truncated on OCFS2
Hi all, we've had some strange problem. It happened on Oracle VM server 2.1 platform. [EMAIL PROTECTED] ovs-agent-2.2]# cat /proc/fs/ocfs2/version OCFS2 1.2.7 Fri Nov 9 18:53:30 EST 2007 (build d443ce77532cea8d1e167ab2de51b8c8) [EMAIL PROTECTED] ovs-agent-2.2]# mount | grep OVS /dev/sda5 on /OVS type ocfs2 (rw,heartbeat=none) The problem is that one of the files for an VM image was truncated. The only thing that I currently know is that another file in the same filesystem was somehow being extended. An attempt was made to extend an image by 7GB using something similar to dd if=/dev/zero of=/OVS/file_to_be_increased oflag=append count=7000 bs=1048576 The end result is that another file (for another VM) has been truncated (strangely with 7GB). Can any of you recommend any option to debug the problem. Shall we have any hopes to eventually to recover the file? fsck didn't show any problem. Do you think that the observed situation is really possible? Is this a known problem? Best regards, . ...Mihail Daskalov . Technology Manager ._/_/_/.. TechnoLogica Ltd. ._/ _/ .._/ _/... ..._/ _/.. .._/_/_/. . ... . ___ Ocfs2-users mailing list Ocfs2-users@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-users
Re: [Ocfs2-users] ocfs2 node reboot method
http://oss.oracle.com/bugzilla/show_bug.cgi?id=838 Check out this bugzilla. Tao Ma wrote: > Hi, > > Masanari Iida wrote: >> Hello Tao and Sunil, > ]> My case, the symptom (ocfs2 failed to mount a volume using >> /etc/fstab) happend when I reboot the system. >> Even if it failed to mount (by /etc/fstab), I can mount it later >> after I login the system. So it could be some kind of timing issue. >> >> Your advice "mount and check "dmesg" ) seemed to be a manual procedure. >> I would like to know how and where can I set the "debugfs.ocfs2", >> and make it run just before the ocfs2 mount. > Are you sure your network device have been started before ocfs2? Have > you added _netdev in your fstab? > http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html > qs 41. >> >> Regards, >> >> Masanari Iida ___ Ocfs2-users mailing list Ocfs2-users@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-users
Re: [Ocfs2-users] ocfs2 node reboot method
Hi, Masanari Iida wrote: > Hello Tao and Sunil, ]> My case, the symptom (ocfs2 failed to mount a volume using > /etc/fstab) happend when I reboot the system. > Even if it failed to mount (by /etc/fstab), I can mount it later > after I login the system. So it could be some kind of timing issue. > > Your advice "mount and check "dmesg" ) seemed to be a manual procedure. > I would like to know how and where can I set the "debugfs.ocfs2", > and make it run just before the ocfs2 mount. Are you sure your network device have been started before ocfs2? Have you added _netdev in your fstab? http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html qs 41. > > Regards, > > Masanari Iida ___ Ocfs2-users mailing list Ocfs2-users@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-users
Re: [Ocfs2-users] ocfs2 node reboot method
Hello Tao and Sunil, On Wed, Aug 6, 2008 at 1:07 AM, Sunil Mushran <[EMAIL PROTECTED]> wrote: > I believe 1.2.5-SLES-r2997 is the version of the fs and not the > tools. Meaning, an upgrade is required to the latest kernel > that is shipping 1.2.9. > OK > As far as failure to mount goes, one reason could be that the > default timeout (10 secs) could be low. See if increasing to the > new default of 30 secs helps. > I think you are talking about following timeout setting, and it has already extended to 30sec. O2CB_IDLE_TIMEOUT_MS=3 >>> I would like to catch some useful information for troubleshooting. >>> Do you think tcpdump may catch something? >>> Or Do I need to use debug.ocfs2? >>> If latter case, what is the right option? >>> >> >> debugfs.ocfs2 -l CONN DLM_DOMAIN TCP allow >> mount and check "dmesg". >> My case, the symptom (ocfs2 failed to mount a volume using /etc/fstab) happend when I reboot the system. Even if it failed to mount (by /etc/fstab), I can mount it later after I login the system. So it could be some kind of timing issue. Your advice "mount and check "dmesg" ) seemed to be a manual procedure. I would like to know how and where can I set the "debugfs.ocfs2", and make it run just before the ocfs2 mount. Regards, Masanari Iida ___ Ocfs2-users mailing list Ocfs2-users@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-users