<?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: Replace Disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752090#M70488</link>
    <description>Assuming there is no mirroring involved. First you need to find out which LVs resides on the faulty disk. With that you would determine which filesystems are involved. Perform full backup on those FS and then these would be the steps to replace the disk ..(assuming the disk is c2t3d0)&lt;BR /&gt;  &lt;BR /&gt;o Shutdown system and replace defective disk.&lt;BR /&gt;o Boot up in single user mode ..&lt;BR /&gt;ISL&amp;gt; hpux -is&lt;BR /&gt;o Prepare the new disk in LVM ..&lt;BR /&gt;# pvcreate -f /dev/rdsk/c2t3d0&lt;BR /&gt;# vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t3d0&lt;BR /&gt;# vgchange -a y /dev/vg01&lt;BR /&gt;# newfs -F vxfs /dev/vg02/rlvolX         &lt;BR /&gt;==&amp;gt; You have to now newfs all the LVs involved. The above assumes vxfs.&lt;BR /&gt;# mount -a&lt;BR /&gt;o Restore data from backup.&lt;BR /&gt;# shutdown -r 0&lt;BR /&gt;&lt;BR /&gt;Everything should be back in business. The vgcfgrestore command simply restore the LVM header information back to the new disk. It's not doing the actual data restore.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 25 Jun 2002 20:04:01 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-06-25T20:04:01Z</dc:date>
    <item>
      <title>Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752088#M70486</link>
      <description>I've read the numerous entries in the forum and the knowledge base, but I am more confused.&lt;BR /&gt;I have a non-root disk in vg01 that I have to replace.  I believe I must backup the filesystems on that disk.  I am confused about vgcfgbackup, lifo etc.&lt;BR /&gt;I have two disks in the vg01.  So I'm not sure how this works.  I'd appreciate any help.  &lt;BR /&gt;Also, this is 10.20 on an R380 and external disks (JBOD).  Thanks in advance...</description>
      <pubDate>Tue, 25 Jun 2002 19:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752088#M70486</guid>
      <dc:creator>Majick Mann</dc:creator>
      <dc:date>2002-06-25T19:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752089#M70487</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What do you mean by Replacing the Disk ? &lt;BR /&gt;&lt;BR /&gt;Is the disk working or not. Are you trying to replace the currently working disk with one of higher capacity ?.&lt;BR /&gt;&lt;BR /&gt;Try this manual on the various system administation related tasks.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 20:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752089#M70487</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-06-25T20:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752090#M70488</link>
      <description>Assuming there is no mirroring involved. First you need to find out which LVs resides on the faulty disk. With that you would determine which filesystems are involved. Perform full backup on those FS and then these would be the steps to replace the disk ..(assuming the disk is c2t3d0)&lt;BR /&gt;  &lt;BR /&gt;o Shutdown system and replace defective disk.&lt;BR /&gt;o Boot up in single user mode ..&lt;BR /&gt;ISL&amp;gt; hpux -is&lt;BR /&gt;o Prepare the new disk in LVM ..&lt;BR /&gt;# pvcreate -f /dev/rdsk/c2t3d0&lt;BR /&gt;# vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t3d0&lt;BR /&gt;# vgchange -a y /dev/vg01&lt;BR /&gt;# newfs -F vxfs /dev/vg02/rlvolX         &lt;BR /&gt;==&amp;gt; You have to now newfs all the LVs involved. The above assumes vxfs.&lt;BR /&gt;# mount -a&lt;BR /&gt;o Restore data from backup.&lt;BR /&gt;# shutdown -r 0&lt;BR /&gt;&lt;BR /&gt;Everything should be back in business. The vgcfgrestore command simply restore the LVM header information back to the new disk. It's not doing the actual data restore.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 20:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752090#M70488</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-25T20:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752091#M70489</link>
      <description>do you have mirror-ux licensed? that so the easies way to replace a disk and where vgcfgbackup really helps out&lt;BR /&gt;&lt;BR /&gt;If you do not have Mirror and want to replace the disk via backup restore ... one big problem depends on whats on the disk ..if you a running an oracle database you have a lot more issues ..&lt;BR /&gt;&lt;BR /&gt;so&lt;BR /&gt;&lt;BR /&gt;do you have mirror?&lt;BR /&gt;if no, whats on the disk?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Tue, 25 Jun 2002 20:05:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752091#M70489</guid>
      <dc:creator>James Odak</dc:creator>
      <dc:date>2002-06-25T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752092#M70490</link>
      <description>HI&lt;BR /&gt;Check following link also.&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3936-90024/B3936-90024_top.html&amp;amp;con=/hpux/onlinedocs/B3936-90024/00/00/52-con.html&amp;amp;toc=/hpux/onlinedocs/B3936-90024/00/00/52-toc.html&amp;amp;searchterms=mirror%7cdisk%7creplacing&amp;amp;queryid=20020625-141221" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3936-90024/B3936-90024_top.html&amp;amp;con=/hpux/onlinedocs/B3936-90024/00/00/52-con.html&amp;amp;toc=/hpux/onlinedocs/B3936-90024/00/00/52-toc.html&amp;amp;searchterms=mirror%7cdisk%7creplacing&amp;amp;queryid=20020625-141221&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If this vg01 is not mirrored, you will have to restore your data from backups once disk is replaced.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Tue, 25 Jun 2002 20:06:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752092#M70490</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2002-06-25T20:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752093#M70491</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can run a &lt;BR /&gt;&lt;BR /&gt;#vgcfgbackup -p -s -m mapfile /dev/vg01&lt;BR /&gt;This will backup the volume group configuration.&lt;BR /&gt;&lt;BR /&gt;This command will just backup the vg01 configuration and not your data.&lt;BR /&gt;&lt;BR /&gt;After replacing the disk /dev/dsk/c1t2d0 you can issue &lt;BR /&gt;&lt;BR /&gt;# pvcreate -f /dev/rdsk/c1t2d0 ( New Disk )&lt;BR /&gt;#vgcfgrestore -s -m mapfile /dev/vg01 /dev/dsk/c1t2d0&lt;BR /&gt;&lt;BR /&gt;#vgchange -a y /dev/vg01&lt;BR /&gt;Create a new filesystem on the lost lvol&lt;BR /&gt;&lt;BR /&gt;#newfs -F vxfs /dev/vg01/rlvol2&lt;BR /&gt;&lt;BR /&gt;Mount the new filesytem.&lt;BR /&gt;&lt;BR /&gt;Reboot the system in single user mode and perform the above commands.&lt;BR /&gt;&lt;BR /&gt;Piyush&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 20:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752093#M70491</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-06-25T20:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752094#M70492</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;After you create the filesystem and mount it, you can restore the data from the backup.&lt;BR /&gt;&lt;BR /&gt;Piyush</description>
      <pubDate>Tue, 25 Jun 2002 20:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752094#M70492</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-06-25T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752095#M70493</link>
      <description>This may be teaching your grandmother to suck eggs so apologies if it does but I would suggest that before you do anything you use something nice and basic such as tar or fbackup to backup your filesystems that way you should be able to get your data back into a new vg01 if something goes wrong. see the relevant man pages.</description>
      <pubDate>Tue, 25 Jun 2002 20:21:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752095#M70493</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-06-25T20:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752096#M70494</link>
      <description>Thanks for the quick responses.  The disk is failing and must be replaced.  It will be replaced with same size and make of drive.  Sanjay, I will certainly download manual.&lt;BR /&gt;I don't see mirror when doing vgdisplay -v vg01. The root drives (vg00) are mirrored, but not the data disks.  But, I believe the two disks in vg01, c0t2d0 and c1t2d0, are striped.  Will that make any difference to your instructions, S.K.?&lt;BR /&gt;No database, just files.&lt;BR /&gt;Thanks...&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 20:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752096#M70494</guid>
      <dc:creator>Majick Mann</dc:creator>
      <dc:date>2002-06-25T20:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752097#M70495</link>
      <description>If you have other available disk space and the disk has not failed yet, mirror it!&lt;BR /&gt;&lt;BR /&gt;replace the disk&lt;BR /&gt;&lt;BR /&gt;then as shown above&lt;BR /&gt;&lt;BR /&gt;# pvcreate -f /dev/rdsk/c2t3d0 &lt;BR /&gt;# vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t3d0 &lt;BR /&gt;# vgchange -a y /dev/vg01 &lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;# vgsync /dev/vg01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;one thing no one has mentioned about restoring from tape, if this disk contains only a part of a database, most databases have to be restored as a whole, restoring only a part will result in the database not coming up.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 20:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752097#M70495</guid>
      <dc:creator>James Odak</dc:creator>
      <dc:date>2002-06-25T20:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752098#M70496</link>
      <description>oh when i say mirror it, i mean the logical volume(s) the disk is a part of not the disk</description>
      <pubDate>Tue, 25 Jun 2002 20:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752098#M70496</guid>
      <dc:creator>James Odak</dc:creator>
      <dc:date>2002-06-25T20:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752099#M70497</link>
      <description>No difference.</description>
      <pubDate>Tue, 25 Jun 2002 20:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752099#M70497</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-25T20:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752100#M70498</link>
      <description>Thanks to all for your responses and advice.  I followed procedures as outlined by S.K.  Except for a minor error or two (operator headspace and timing), all went well.&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Wed, 26 Jun 2002 12:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2752100#M70498</guid>
      <dc:creator>Majick Mann</dc:creator>
      <dc:date>2002-06-26T12:18:55Z</dc:date>
    </item>
  </channel>
</rss>

