<?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 Problem restoring a replaced disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828352#M611468</link>
    <description>I only do this once every 4 or 5 years, so I have to start over every time.&lt;BR /&gt;&lt;BR /&gt;We just replaced a failed disk.  I'm using the "When Good Disks Go Bad" doc from HP.&lt;BR /&gt;&lt;BR /&gt;So far, I have&lt;BR /&gt;#vgcfgrestore -n /dev/vgfam /dev/rdsk/c9t5d0&lt;BR /&gt; - - OK&lt;BR /&gt;#vgchange -a y /dev/vfam&lt;BR /&gt; - - OK&lt;BR /&gt;but&lt;BR /&gt;#mount /data05&lt;BR /&gt; - - not a hfs file system&lt;BR /&gt;OK - that probably means the disk wasn't initialized.  So I tried&lt;BR /&gt;#newfs -F hfs /dev/rdsk/c9t5d0&lt;BR /&gt; - -  /dev/rdsk/c9t5d0 is a logical volume device&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;#pvcreate /dev/rdsk/c9t5d0&lt;BR /&gt; - - already belongs to a VG&lt;BR /&gt;&lt;BR /&gt;#vgreduce /dev/vgfam /dev/dsk/c9t5d0&lt;BR /&gt; - - could not be removed ... some of its physical extents are still in use &lt;BR /&gt;&lt;BR /&gt;I'm in single-user mode, the FS are not mounted on c9t5d0.&lt;BR /&gt;&lt;BR /&gt;pvdisplay shows extents are there for all the FS that should be.&lt;BR /&gt;&lt;BR /&gt;#vgdisplay shows the lvols in that VG as "available/syncd", and size not zero.&lt;BR /&gt;&lt;BR /&gt;I'm probably overlooking some small but essential step, but I don't know what it is.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 21 Jul 2006 13:21:14 GMT</pubDate>
    <dc:creator>Michael D. Zorn</dc:creator>
    <dc:date>2006-07-21T13:21:14Z</dc:date>
    <item>
      <title>Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828352#M611468</link>
      <description>I only do this once every 4 or 5 years, so I have to start over every time.&lt;BR /&gt;&lt;BR /&gt;We just replaced a failed disk.  I'm using the "When Good Disks Go Bad" doc from HP.&lt;BR /&gt;&lt;BR /&gt;So far, I have&lt;BR /&gt;#vgcfgrestore -n /dev/vgfam /dev/rdsk/c9t5d0&lt;BR /&gt; - - OK&lt;BR /&gt;#vgchange -a y /dev/vfam&lt;BR /&gt; - - OK&lt;BR /&gt;but&lt;BR /&gt;#mount /data05&lt;BR /&gt; - - not a hfs file system&lt;BR /&gt;OK - that probably means the disk wasn't initialized.  So I tried&lt;BR /&gt;#newfs -F hfs /dev/rdsk/c9t5d0&lt;BR /&gt; - -  /dev/rdsk/c9t5d0 is a logical volume device&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;#pvcreate /dev/rdsk/c9t5d0&lt;BR /&gt; - - already belongs to a VG&lt;BR /&gt;&lt;BR /&gt;#vgreduce /dev/vgfam /dev/dsk/c9t5d0&lt;BR /&gt; - - could not be removed ... some of its physical extents are still in use &lt;BR /&gt;&lt;BR /&gt;I'm in single-user mode, the FS are not mounted on c9t5d0.&lt;BR /&gt;&lt;BR /&gt;pvdisplay shows extents are there for all the FS that should be.&lt;BR /&gt;&lt;BR /&gt;#vgdisplay shows the lvols in that VG as "available/syncd", and size not zero.&lt;BR /&gt;&lt;BR /&gt;I'm probably overlooking some small but essential step, but I don't know what it is.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jul 2006 13:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828352#M611468</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2006-07-21T13:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828353#M611469</link>
      <description>Is it an HFS or a VxFS filesystem?&lt;BR /&gt;&lt;BR /&gt;What if you do:&lt;BR /&gt;&lt;BR /&gt;mount -F vxfs /data05&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jul 2006 13:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828353#M611469</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-07-21T13:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828354#M611470</link>
      <description>It is a hfs sytem.&lt;BR /&gt;It's also HP-UX 10.02, so 'pvchange' doesn't have '-a'&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jul 2006 13:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828354#M611470</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2006-07-21T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828355#M611471</link>
      <description>hello Micheal,&lt;BR /&gt;&lt;BR /&gt;Can you post the following&lt;BR /&gt;&lt;BR /&gt;# vgdisplay -v &lt;BR /&gt;# strings /etc/lvmtab&lt;BR /&gt;# vgcfgbackup -f /tmp/vgfam.conf /dev/vgfam&lt;BR /&gt;# vgcfgrestore -l -f /tmp/vgfam.conf&lt;BR /&gt;# vgcfgrestore -l -f /etc/lvmconf/vgfam.conf&lt;BR /&gt;# cat /etc/fstab&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so that we get a good idea of the current scenario and help you with the disk replacement.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;albert&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jul 2006 23:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828355#M611471</guid>
      <dc:creator>Albert_31</dc:creator>
      <dc:date>2006-07-21T23:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828356#M611472</link>
      <description>I assume the disk was not mirrored.&lt;BR /&gt;&lt;BR /&gt;If you replaced the disk and the config was restored to it (vgcfgrestore), don't do a pvcreate!&lt;BR /&gt;&lt;BR /&gt;After the vgchange command, just create a new file system and mount it. Now you should restore the data from the backup.</description>
      <pubDate>Sat, 22 Jul 2006 06:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828356#M611472</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-07-22T06:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828357#M611473</link>
      <description>"#mount /data05&lt;BR /&gt;- - not a hfs file system&lt;BR /&gt;OK - that probably means the disk wasn't initialized. So I tried&lt;BR /&gt;#newfs -F hfs /dev/rdsk/c9t5d0&lt;BR /&gt;- - /dev/rdsk/c9t5d0 is a logical volume device"&lt;BR /&gt;&lt;BR /&gt;You have "newfs'ed" the physical volume no the logicel volume.&lt;BR /&gt;&lt;BR /&gt;the process is&lt;BR /&gt;&lt;BR /&gt;pvcreate -f  /dev/rdsk/cXtXd0&lt;BR /&gt;&lt;BR /&gt;Restore the volume group information.&lt;BR /&gt;vgcfgrestore -n  /dev/vgXX  /dev/rdsk/cXtXd0 &lt;BR /&gt;&lt;BR /&gt;Activate the volume group with the new disk.&lt;BR /&gt;vgchange -a y /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;Make a new file system on the associated lvols on the volume group.&lt;BR /&gt;newfs -F vxfs /dev/vgXX/rlovlX (JFS file system) &lt;BR /&gt;&lt;BR /&gt;Mount the file system or systems.&lt;BR /&gt;mount  -a&lt;BR /&gt;&lt;BR /&gt;Do a pvdisplay /dev/dsk/c9t5d0 to see what is on the disk. You will see the locical volumes that you restored using vgrestore. Your newfs of the disk  "/dev/rdsk/c9t5d0" has probably trashed it.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jul 2006 03:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828357#M611473</guid>
      <dc:creator>Michael Duthie</dc:creator>
      <dc:date>2006-07-24T03:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828358#M611474</link>
      <description>&lt;!--!*#--&gt;Torsten says don't do a pvcreate if I ran vgcfgrestore - I did...  Michael Duthie says do - I assume he means if I didn't.&lt;BR /&gt;&lt;BR /&gt;I think what may be getting me in trouble is that /etc/fstab has entries for the FS that were on the disk.  /etc/mnttab does not.&lt;BR /&gt;&lt;BR /&gt;Albert asks for output from volume mgmnt commands - I'll attach it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jul 2006 22:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828358#M611474</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2006-07-24T22:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828359#M611475</link>
      <description>You do not need to be in troule about fstab and mnttab, fstab is used to mount file system automatically when boot system,and mnttab will display which file system is being mounted currently, so pls do according to Tosten's advice, and make sure the lv name and mount point is same as /etc/lvmtab, then run mount all</description>
      <pubDate>Mon, 24 Jul 2006 22:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828359#M611475</guid>
      <dc:creator>rayche</dc:creator>
      <dc:date>2006-07-24T22:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828360#M611476</link>
      <description>Hello Michael,&lt;BR /&gt;&lt;BR /&gt;Checked the data collected and agree with Torsten.. the volume group vgfam is not mirrored and all logical volumes which have their LE/PE's on the disk c9t5d0, have they data lost and you need to restore them.&lt;BR /&gt;&lt;BR /&gt;You can check this using the &lt;BR /&gt;&lt;BR /&gt;# lvdisplay -v /dev/vgfam/&lt;LVOLNAME&gt; | more&lt;BR /&gt;&lt;BR /&gt;You will notice that all LVOL's which have LE/PE on the c9t5d0 will not be mountable or accessible.&lt;BR /&gt;&lt;BR /&gt;So basically we have to follow the data restoratin steps &lt;BR /&gt;&lt;BR /&gt;# vgcfgrestore -n /dev/vgfam /dev/rdsk/c9t5d0&lt;BR /&gt;This will put the LVM headers and LV configs onto the disk. Next you have to do the newfs followed by mounting the LV on the mount points and then restoring data.&lt;BR /&gt;&lt;BR /&gt;# newfs -F &lt;CHECK the="" fs="" type=""&gt; -o &lt;OPTIONS if="" required=""&gt; /dev/vgfam/r&lt;LVOL&gt;&lt;BR /&gt;&lt;BR /&gt;# restore the data from backup.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Albert&lt;/LVOL&gt;&lt;/OPTIONS&gt;&lt;/CHECK&gt;&lt;/LVOLNAME&gt;</description>
      <pubDate>Mon, 24 Jul 2006 22:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828360#M611476</guid>
      <dc:creator>Albert_31</dc:creator>
      <dc:date>2006-07-24T22:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828361#M611477</link>
      <description>"Torsten says don't do a pvcreate if I ran vgcfgrestore - I did...  Michael Duthie says do - I assume he means if I didn't."&lt;BR /&gt;&lt;BR /&gt;Torsten mean dont pvcreate after a vgrestore, you will blow away what you have just restored.&lt;BR /&gt;&lt;BR /&gt;can you attached a pvdisplay of the disk, all looks in order. a "newfs /dev/vgfam/rlvol3", 4, 5, &amp;amp; 16 may be enough to fix.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jul 2006 02:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828361#M611477</guid>
      <dc:creator>Michael Duthie</dc:creator>
      <dc:date>2006-07-25T02:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828362#M611478</link>
      <description>Exactly. If you run the pvcreate after the vgfgrestore you will overwrite the config.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know if your wrong command wrote anything&lt;BR /&gt;#newfs -F hfs /dev/rdsk/c9t5d0&lt;BR /&gt;&lt;BR /&gt;but i would try to start over beginning with the vgcfgrestore command. Make sure this time you create the filesystem on the LVOL, e.g.&lt;BR /&gt;&lt;BR /&gt;newfs -F hfs /dev/vgfam/rlvolx&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jul 2006 02:45:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828362#M611478</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-07-25T02:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828363#M611479</link>
      <description>Hello Michael,&lt;BR /&gt;&lt;BR /&gt;There is nothing to there on the disk to  be lost when you did a newfs on the disk, nothing to worry (I guess ) &lt;BR /&gt;&lt;BR /&gt;get started with.. (as a precaution..take a data backup of all data in vgfam as well, before you proceed.&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore -&amp;gt;newfs -&amp;gt; mount -&amp;gt; restore from backup..&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Albert</description>
      <pubDate>Tue, 25 Jul 2006 02:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828363#M611479</guid>
      <dc:creator>Albert_31</dc:creator>
      <dc:date>2006-07-25T02:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem restoring a replaced disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828364#M611480</link>
      <description>Thanks to all - it's finally working.&lt;BR /&gt;&lt;BR /&gt;It looks like one of my problems was that the man page for 'newfs' shows in the examples&lt;BR /&gt;&lt;BR /&gt;newfs /dev/rdsk/c1d0s2&lt;BR /&gt;&lt;BR /&gt;when I really needed to do&lt;BR /&gt;&lt;BR /&gt;newfs /dev/vgfam/rlvolN&lt;BR /&gt;&lt;BR /&gt;(That, and doing a few other things out of sequence.)&lt;BR /&gt;&lt;BR /&gt;The disk failed suddenly, over a weekend.  I didn't see anything in the syslog files.&lt;BR /&gt;&lt;BR /&gt;As usual, every time one of these things happens, I have to revise my backup plan.&lt;BR /&gt;&lt;BR /&gt;One of the benefits of having an old system (K200 PA-RISC, HP-UX 10.01) is that we have 8 small disks (2GB each), so that when one goes down, there's still a lot left.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jul 2006 13:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-restoring-a-replaced-disk/m-p/3828364#M611480</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2006-07-25T13:05:54Z</dc:date>
    </item>
  </channel>
</rss>

