<?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: recreate /var !!! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552467#M225166</link>
    <description>did you try a full fsck ?: &lt;BR /&gt;&lt;BR /&gt;# fsck -F vxfs -o full /dev/vg00/lvol8&lt;BR /&gt;</description>
    <pubDate>Thu, 26 May 2005 09:42:09 GMT</pubDate>
    <dc:creator>Henk Geurts</dc:creator>
    <dc:date>2005-05-26T09:42:09Z</dc:date>
    <item>
      <title>recreate /var !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552465#M225164</link>
      <description>Hi Forum,&lt;BR /&gt;in a Lclass1000 hpux11.00 we changed a crashed disk&lt;BR /&gt;&lt;BR /&gt;it was a operating system disk, mirrored.&lt;BR /&gt;I found in the lvdisplay -v /dev/vg00/lovl8&lt;BR /&gt;some ??? instead rhe special file of the disk.&lt;BR /&gt;in the mirrored too!!!&lt;BR /&gt;&lt;BR /&gt;infact I can't mount /var.. and I can't do fsck&lt;BR /&gt;&lt;BR /&gt;so, yesterady HP changed the disk.. and they did the sync of the vg00.....&lt;BR /&gt;now... I want to recreate /var&lt;BR /&gt;I guess to do the following steps:&lt;BR /&gt;&lt;BR /&gt; - lvreduce -m 0 /dev/vg00/lvol8 /dev/dsk/cxtxdx&lt;BR /&gt; - lvremove /dev/vg00/lvol8&lt;BR /&gt; - lvcreate -L xx /dev/vg00/lvol8&lt;BR /&gt; - newfs -F vxfs /dev/vg00/rlvol8&lt;BR /&gt; - mount /dev/vg00/lvol8 /var&lt;BR /&gt;&lt;BR /&gt;We have a tape with the bkup of /var&lt;BR /&gt;I can use it or I need the make_tape_recovery cassette?&lt;BR /&gt;&lt;BR /&gt;I know about the command "mt" but can you help to perform this activity&lt;BR /&gt;Thanks for help&lt;BR /&gt;L.F&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2005 09:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552465#M225164</guid>
      <dc:creator>Lorenzo Facello</dc:creator>
      <dc:date>2005-05-26T09:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: recreate /var !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552466#M225165</link>
      <description>Your steps look correct. Once you have the new /var mounted you can restore from the tape.&lt;BR /&gt;&lt;BR /&gt;Once you have completed the restore, recreate the mirror so you can get the /var back over there as well.&lt;BR /&gt;&lt;BR /&gt;If all else fails, you do have the make_recovery tape. To get just the /var off of it, mt -f /dev/rmt/0m fsf 1 (Assuming the tape device is 0m)&lt;BR /&gt;&lt;BR /&gt;Skip ahead 1 file mark off the make_recovery tape and then you can use the tar command. Remember the tar tape has saved in absolute path, be careful you only get the /var info.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2005 09:41:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552466#M225165</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-05-26T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: recreate /var !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552467#M225166</link>
      <description>did you try a full fsck ?: &lt;BR /&gt;&lt;BR /&gt;# fsck -F vxfs -o full /dev/vg00/lvol8&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2005 09:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552467#M225166</guid>
      <dc:creator>Henk Geurts</dc:creator>
      <dc:date>2005-05-26T09:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: recreate /var !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552468#M225167</link>
      <description>Your steps look OK to me.  If your backup of /var is recent - you should be able to just recover that part alone.  Just to be safe, I'd be in single user mode before you do it, and then reboot afterwards back to your default init level.</description>
      <pubDate>Thu, 26 May 2005 09:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552468#M225167</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-05-26T09:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: recreate /var !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552469#M225168</link>
      <description>hey guys,&lt;BR /&gt;do you think I can use simply the tar command to restor /var?&lt;BR /&gt;from /&lt;BR /&gt;tar xvf ./var/*&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2005 09:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552469#M225168</guid>
      <dc:creator>Lorenzo Facello</dc:creator>
      <dc:date>2005-05-26T09:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: recreate /var !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552470#M225169</link>
      <description>Don't forget the device file&lt;BR /&gt;&lt;BR /&gt;tar xvf /dev/rmt/0m var&lt;BR /&gt;&lt;BR /&gt;Depends on how the tar command was used to back up var in the first place. If you do a&lt;BR /&gt;&lt;BR /&gt;tar vft /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;or whatever your tape drive, see if it lists files as&lt;BR /&gt;&lt;BR /&gt;/file&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;file&lt;BR /&gt;&lt;BR /&gt;Then recover by using&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;tar xvf /dev/rmt/0m var&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;tar xvf /dev/rmt/0m /var&lt;BR /&gt;&lt;BR /&gt;as appropriate</description>
      <pubDate>Thu, 26 May 2005 10:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552470#M225169</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-05-26T10:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: recreate /var !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552471#M225170</link>
      <description>FWIW - Stephen's post addresses your last question perfectly.</description>
      <pubDate>Thu, 26 May 2005 11:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-var/m-p/3552471#M225170</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-05-26T11:23:03Z</dc:date>
    </item>
  </channel>
</rss>

