<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: journalling issue -- plz help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489014#M16366</link>
    <description>Hi Maaz,&lt;BR /&gt;&lt;BR /&gt;Vi uses a sort of temporary file mechanism. For example : open a new file with vi, then without saving open another command-line console and type : &lt;BR /&gt;   ls -al .*swp&lt;BR /&gt;&lt;BR /&gt;If the system crashes (or is rebooted) while still running vi, the .swp file remains.&lt;BR /&gt;&lt;BR /&gt;Gedit does not use this mechanism.&lt;BR /&gt;&lt;BR /&gt;Now about ext3 : this is actually a journalled filesystem. The journalling mechanism is not at application-level (ex: vi or gedit), but at filesystem level. To understand, you need to know what is a transaction.&lt;BR /&gt;&lt;BR /&gt;To simplify, let's say that to create a new file, you have to store 1/ the content of the file, 2. the information that a new file have been created. The constraint here is the following : you must either complete 1/ and 2/ , or nothing. You cannot have 1/ completed without 2/ or vice-versa.&lt;BR /&gt;The sequence of action 1/ and action 2/ is called a transaction. To guarantee the "atomicity" of a transaction (= completing 1/ and 2/ or nothing), filesystem mechanism implements a journal that record intermediate steps of the transaction.&lt;BR /&gt;To simplify : &lt;BR /&gt;&lt;BR /&gt;=&amp;gt; Log : "I'm starting a new transaction"&lt;BR /&gt;=&amp;gt; Log : "I'm going to perform 1/"&lt;BR /&gt;=&amp;gt; Do 1/&lt;BR /&gt;=&amp;gt; Log : "1/ completed"&lt;BR /&gt;=&amp;gt; Log : "I'm going to perform 2/"&lt;BR /&gt;=&amp;gt; Do 2/&lt;BR /&gt;=&amp;gt; Log : "2/ completed"&lt;BR /&gt;=&amp;gt; Log : "Transaction completed"&lt;BR /&gt;&lt;BR /&gt;If the system crashes, the filesystem check (fsck) on a journalled filesystem verifies the journal (the log) and seek for transactions started but not completed, in order to either un-do intermediate steps, or go forward and terminate the transaction.&lt;BR /&gt;&lt;BR /&gt;Hope this is clear. Of course, this is very simplified, compared to the complexity of a real filesystem journalling mechanism.&lt;BR /&gt;&lt;BR /&gt;Good lcuk,&lt;BR /&gt;Kodjo&lt;BR /&gt;</description>
    <pubDate>Sat, 19 Feb 2005 12:46:37 GMT</pubDate>
    <dc:creator>Kodjo Agbenu</dc:creator>
    <dc:date>2005-02-19T12:46:37Z</dc:date>
    <item>
      <title>journalling issue -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489012#M16364</link>
      <description>Dea Gurus &lt;BR /&gt;&lt;BR /&gt;OS: rhl 9.0&lt;BR /&gt;fs: ext3&lt;BR /&gt;#cat /etc/fstab&lt;BR /&gt;LABEL=/tmp  /tmp  ext3 default 1 1&lt;BR /&gt;&lt;BR /&gt;i created a file via touch&lt;BR /&gt;#touch /tmp/test.txt&lt;BR /&gt;then&lt;BR /&gt;#vi /tmp/test.txt and did some editing, but without saving the data, i myself reboot my system, and did&lt;BR /&gt;#vi -r /tmp/test.txt, and i found all my un-save data.. great :)&lt;BR /&gt;So i wana know that is it due to journalling filesystem i.e. ext3, or is it simple the text editor(vi/vim) feature ?&lt;BR /&gt;&lt;BR /&gt;i think its simply the vi feature, bcause when i did the same ... but the text editor was 'gedit' intead of vim.. my all un-save data was lost.&lt;BR /&gt;&lt;BR /&gt;one more question is ext3 not a journalling fs ? if its a journalling fs then why unsave data lost ?&lt;BR /&gt;&lt;BR /&gt;I even use the option in fstab as:&lt;BR /&gt;LABEL=/tmp /tmp ext3 data=journal,default 1 1&lt;BR /&gt;and&lt;BR /&gt;LABEL=/tmp /tmp ext3 data=writeback,default 1 1&lt;BR /&gt;but if i unsave my data, and reboot the system, and open the file with gedit(gui), i didnt found the unsave data&lt;BR /&gt;&lt;BR /&gt;Hope you people will help me in this matter&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Feb 2005 14:23:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489012#M16364</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2005-02-18T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: journalling issue -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489013#M16365</link>
      <description>Unsaved data is, well not safe on disk ;-)&lt;BR /&gt;&lt;BR /&gt;The vi editor apparently does its own journalling and it makes sure that the data really is on the disk.&lt;BR /&gt;&lt;BR /&gt;Having a journalling file system (FS) mostly means that the FS tracks which meta data changes have been in process when the system went down. This allows a fast rollback of the FS into a consistent state and saves you from waiting a long time for a full file system check to complete.</description>
      <pubDate>Sat, 19 Feb 2005 06:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489013#M16365</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-02-19T06:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: journalling issue -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489014#M16366</link>
      <description>Hi Maaz,&lt;BR /&gt;&lt;BR /&gt;Vi uses a sort of temporary file mechanism. For example : open a new file with vi, then without saving open another command-line console and type : &lt;BR /&gt;   ls -al .*swp&lt;BR /&gt;&lt;BR /&gt;If the system crashes (or is rebooted) while still running vi, the .swp file remains.&lt;BR /&gt;&lt;BR /&gt;Gedit does not use this mechanism.&lt;BR /&gt;&lt;BR /&gt;Now about ext3 : this is actually a journalled filesystem. The journalling mechanism is not at application-level (ex: vi or gedit), but at filesystem level. To understand, you need to know what is a transaction.&lt;BR /&gt;&lt;BR /&gt;To simplify, let's say that to create a new file, you have to store 1/ the content of the file, 2. the information that a new file have been created. The constraint here is the following : you must either complete 1/ and 2/ , or nothing. You cannot have 1/ completed without 2/ or vice-versa.&lt;BR /&gt;The sequence of action 1/ and action 2/ is called a transaction. To guarantee the "atomicity" of a transaction (= completing 1/ and 2/ or nothing), filesystem mechanism implements a journal that record intermediate steps of the transaction.&lt;BR /&gt;To simplify : &lt;BR /&gt;&lt;BR /&gt;=&amp;gt; Log : "I'm starting a new transaction"&lt;BR /&gt;=&amp;gt; Log : "I'm going to perform 1/"&lt;BR /&gt;=&amp;gt; Do 1/&lt;BR /&gt;=&amp;gt; Log : "1/ completed"&lt;BR /&gt;=&amp;gt; Log : "I'm going to perform 2/"&lt;BR /&gt;=&amp;gt; Do 2/&lt;BR /&gt;=&amp;gt; Log : "2/ completed"&lt;BR /&gt;=&amp;gt; Log : "Transaction completed"&lt;BR /&gt;&lt;BR /&gt;If the system crashes, the filesystem check (fsck) on a journalled filesystem verifies the journal (the log) and seek for transactions started but not completed, in order to either un-do intermediate steps, or go forward and terminate the transaction.&lt;BR /&gt;&lt;BR /&gt;Hope this is clear. Of course, this is very simplified, compared to the complexity of a real filesystem journalling mechanism.&lt;BR /&gt;&lt;BR /&gt;Good lcuk,&lt;BR /&gt;Kodjo&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Feb 2005 12:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489014#M16366</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2005-02-19T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: journalling issue -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489015#M16367</link>
      <description>Dear Uwe Zessin, I m highly thankful to u for the reply/help. Nice Help.&lt;BR /&gt;&lt;BR /&gt;Dear Kodjo Agbenu, u provide a marvelous help. I m highly Thankful to u for such a Marvelous, Nice and Great help&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Sun, 20 Feb 2005 01:42:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/journalling-issue-plz-help/m-p/3489015#M16367</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2005-02-20T01:42:22Z</dc:date>
    </item>
  </channel>
</rss>

