<?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: fsck in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448502#M208428</link>
    <description>If you have hfs, the "fsck -F hfs /dev/vg00/rlvol12" (or whatever) will either finish quickly and report something like "file system clean", or it will go into a sequence of error messages, after each one, "CLEAR?" or "FIX" (or something like that).  Reply "y" to each.  Don't forget the "r" in "rlvolNN"&lt;BR /&gt;&lt;BR /&gt;The worst case is when it says "bad superblock - try another one".  You can try "-b 16" (that's our usual default alternate superblock), but even if that works, it's not really reliable (my experience).&lt;BR /&gt;&lt;BR /&gt;Sometimes there will be hundreds of the "CLEAR?" (or "FIX?") messsages.  If you find more than a dozen or so, run fsck with "-y" (reply Y to all of them).  This is sort of a last resort.  I used it a while ago ; the fsck ran overnight (probably 6 to 8 hours), and when it was done, a regular fsck reported OK, but the data was gone.  &lt;BR /&gt;&lt;BR /&gt;In that case, it would have been quicker to do a newfs followed by a restore.&lt;BR /&gt;&lt;BR /&gt;I hope you can recover to where you can do a regular "shutdown"</description>
    <pubDate>Thu, 23 Dec 2004 15:24:01 GMT</pubDate>
    <dc:creator>Michael D. Zorn</dc:creator>
    <dc:date>2004-12-23T15:24:01Z</dc:date>
    <item>
      <title>fsck</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448497#M208423</link>
      <description>Hi, I need to take the system down into sigle mode. When I do that I need to run fsck on the /var and /usr. Since the only way to do that is to crash the system (the story is long why) what is the correct syntax for the fsck command to recover  /var and /usr. THX Otto</description>
      <pubDate>Tue, 21 Dec 2004 19:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448497#M208423</guid>
      <dc:creator>Otto Folprecht</dc:creator>
      <dc:date>2004-12-21T19:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: fsck</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448498#M208424</link>
      <description>fsck -F {filesystem_type} -o {options} /dev/vg??/lvol??&lt;BR /&gt;&lt;BR /&gt;Assuming your /var was /dev/vg00/lvol7, is a vxfs filesystem and you wanted to do a full check.&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs -o full -y /dev/vg00/lvol7&lt;BR /&gt;&lt;BR /&gt;The -y assumes a yes response to any prompts that would be flagged.&lt;BR /&gt;&lt;BR /&gt;try man fsck to see the full list of options.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Tue, 21 Dec 2004 20:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448498#M208424</guid>
      <dc:creator>Paul Eadington_1</dc:creator>
      <dc:date>2004-12-21T20:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: fsck</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448499#M208425</link>
      <description>Well, the first thing to do is a 'bdf' command to identify the devices associated with those filesystems or do a cat /etc/fstab. The cat /etc/fstab should also tell you the type of filesystem: vxfs (most likely) or hfs.&lt;BR /&gt;&lt;BR /&gt;Here is an example:&lt;BR /&gt;fsck -F vxfs -y /dev/vg00/rlvol7&lt;BR /&gt;&lt;BR /&gt;man mount_vxfs for details.&lt;BR /&gt;&lt;BR /&gt;I assume you have lost the root passwd.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Dec 2004 21:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448499#M208425</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-12-21T21:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: fsck</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448500#M208426</link>
      <description>Hi Otto&lt;BR /&gt;You can follow these steps:&lt;BR /&gt;&lt;BR /&gt;1. mount -v&lt;BR /&gt;Start this command to determine which file systems are mounted where.&lt;BR /&gt;For example:&lt;BR /&gt;/dev/vg00/lvol8 on /var type vxfs delaylog on Sun Dec 19 03:39:02 2003&lt;BR /&gt;/dev/vg00/lvol7 on /usr type vxfs delaylog on Sun Dec 19 03:39:02 2003&lt;BR /&gt;&lt;BR /&gt;2. umount /dev/vg00/filesystem&lt;BR /&gt;umount /dev/vg00/lvol8&lt;BR /&gt;umount /dev/vg00/lvol7&lt;BR /&gt;fsck should be run on quiescent file systems; unmount the file system before proceeding.&lt;BR /&gt;3. fsck -F -y vxfs /dev/vg00/lvol8&lt;BR /&gt;   or : fsck -F -y hfs /dev/vg00/lvol7&lt;BR /&gt;   This depend on what kind of your filesystem...&lt;BR /&gt;&lt;BR /&gt;4. Remount the filesystem&lt;BR /&gt;   mount /dev/vg00/lvol8&lt;BR /&gt;   mount /dev/vg00/lvol7&lt;BR /&gt;Once fsck completes, remount the file system(s).&lt;BR /&gt;5. Restore any corrupted files.&lt;BR /&gt;In order to fix file system corruption, fsck may have to remove one or more files. Watch for "REMOVE" messages in the fsck output, and be sure to restore the affected files from tape.fsck may also RECONNECT orphaned files. If you see any RECONNECT messages, check the file systemâ  s lost+found directory. The next slide discusses the lost+found directory in greater detail.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;regard,&lt;BR /&gt;HoangChiC</description>
      <pubDate>Tue, 21 Dec 2004 22:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448500#M208426</guid>
      <dc:creator>Hoang Chi Cong_1</dc:creator>
      <dc:date>2004-12-21T22:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: fsck</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448501#M208427</link>
      <description>Full syntax of fsck is&lt;BR /&gt;/usr/sbin/fsck [-F FSType] [-m] [-V] [special ...]&lt;BR /&gt; /usr/sbin/fsck [-F FSType] [-o FSspecific-options] [-V] [special ...]&lt;BR /&gt;   In order to determine FStype you check&lt;BR /&gt; #cat /etc/fstab&lt;BR /&gt;  [ipcaspa:/] cat /etc/fstab&lt;BR /&gt;/dev/vg00/lvol3 / vxfs delaylog 0 1&lt;BR /&gt;/dev/vg00/lvol1 /stand hfs defaults 0 1&lt;BR /&gt;/dev/vg00/lv_swap1 ... swap pri=0 0 0&lt;BR /&gt;/dev/vg00/lvol4 /tmp vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol5 /home vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol6 /opt vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol7 /usr vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol8 /var vxfs delaylog 0 2&lt;BR /&gt;#/dev/vg00/lvtux /home/tux6.5 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2&lt;BR /&gt;/dev/vg00/lvora /home/oracle vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2&lt;BR /&gt;/dev/vg00/lvkeb /keb vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2&lt;BR /&gt;/dev/vg00/lv_swap2 ... swap pri=0 0 2&lt;BR /&gt; -m : sanity check only&lt;BR /&gt; In order to get special you pay attention on first field of /etc/fstab&lt;BR /&gt;2. You want fsck check /var. just type (/var must not be mounted)&lt;BR /&gt;#fsck -F vxfs -m /dev/vg00/lvol8</description>
      <pubDate>Tue, 21 Dec 2004 22:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448501#M208427</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2004-12-21T22:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: fsck</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448502#M208428</link>
      <description>If you have hfs, the "fsck -F hfs /dev/vg00/rlvol12" (or whatever) will either finish quickly and report something like "file system clean", or it will go into a sequence of error messages, after each one, "CLEAR?" or "FIX" (or something like that).  Reply "y" to each.  Don't forget the "r" in "rlvolNN"&lt;BR /&gt;&lt;BR /&gt;The worst case is when it says "bad superblock - try another one".  You can try "-b 16" (that's our usual default alternate superblock), but even if that works, it's not really reliable (my experience).&lt;BR /&gt;&lt;BR /&gt;Sometimes there will be hundreds of the "CLEAR?" (or "FIX?") messsages.  If you find more than a dozen or so, run fsck with "-y" (reply Y to all of them).  This is sort of a last resort.  I used it a while ago ; the fsck ran overnight (probably 6 to 8 hours), and when it was done, a regular fsck reported OK, but the data was gone.  &lt;BR /&gt;&lt;BR /&gt;In that case, it would have been quicker to do a newfs followed by a restore.&lt;BR /&gt;&lt;BR /&gt;I hope you can recover to where you can do a regular "shutdown"</description>
      <pubDate>Thu, 23 Dec 2004 15:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fsck/m-p/3448502#M208428</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2004-12-23T15:24:01Z</dc:date>
    </item>
  </channel>
</rss>

