<?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: Replacing a boot disk with LVM in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578589#M647296</link>
    <description>Hi Kurt:&lt;BR /&gt;&lt;BR /&gt;The following procedure applies:&lt;BR /&gt;&lt;BR /&gt;# Shutdown your system and replace the disk that is failing. &lt;BR /&gt;&lt;BR /&gt;# Boot into single user mode and override the quorum, as: &lt;BR /&gt;&lt;BR /&gt;# ISL&amp;gt; hpux -is -lq /stand/vmunix &lt;BR /&gt;&lt;BR /&gt;# vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtYdZ &lt;BR /&gt;&lt;BR /&gt;# mkboot /dev/rdsk/cXtYdZ &lt;BR /&gt;&lt;BR /&gt;# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/CXtYdZ &lt;BR /&gt;&lt;BR /&gt;# lvlnboot -R &lt;BR /&gt;&lt;BR /&gt;# lvlnboot -v #...to verify all is as desired... &lt;BR /&gt;&lt;BR /&gt;# vgchange -a y /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;# vgsync /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;# shutdown -ry 0 &lt;BR /&gt;&lt;BR /&gt;With regard to your other questions:&lt;BR /&gt;&lt;BR /&gt;(1) I'd wait until your reconstruction is complete before removing "lvol9".  The less LVM maintenance done while your configuration is brittle, the better.&lt;BR /&gt;&lt;BR /&gt;(2) You will manually remove the "lvol9" mountpoint from /etc/fstab.  You do not modify /etc/mnttab.  This occurs naturally as a consequence of mounting and unmounting filesystems.&lt;BR /&gt;&lt;BR /&gt;(3/4) The 'lvlnboot -R' updates the BDRA of each bootable disk.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 12 Sep 2001 20:21:55 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-09-12T20:21:55Z</dc:date>
    <item>
      <title>Replacing a boot disk with LVM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578588#M647295</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;Have I/O read errors on my disk c2t6d0.  HP is coming out to replace tonight.&lt;BR /&gt;This disk participates in VG00 which has 4 physical disks, c2t3d0 thru c2t6d0. VG00 has 9 LVOLs;&lt;BR /&gt;------LVOLS----   --FS------ MIRROR  -ALLOC-&lt;BR /&gt;/dev/vg00/lvol1  /stand        1     strct/cont&lt;BR /&gt;/dev/vg00/lvol2  swap/dump     1     strct/cont&lt;BR /&gt;/dev/vg00/lvol3  /             1     strct/cont&lt;BR /&gt;/dev/vg00/lvol4  /tmp          1     strict&lt;BR /&gt;/dev/vg00/lvol5  /home         1     strict&lt;BR /&gt;/dev/vg00/lvol6  /opt          1     strict&lt;BR /&gt;/dev/vg00/lvol7  /usr          1     strict&lt;BR /&gt;/dev/vg00/lvol8  /var          1     non-strict&lt;BR /&gt;/dev/vg00/lvol9  /u09          0     non-strict&lt;BR /&gt;&lt;BR /&gt;# lvlnboot -v /dev/vg00&lt;BR /&gt;Boot Definitions for Volume Group /dev/vg00:&lt;BR /&gt;Physical Volumes belonging in Root Volume Group:&lt;BR /&gt;        /dev/dsk/c2t3d0 (10/0.3.0)&lt;BR /&gt;        /dev/dsk/c2t5d0 (10/0.5.0)&lt;BR /&gt;        /dev/dsk/c2t6d0 (10/0.6.0) -- Boot Disk&lt;BR /&gt;        /dev/dsk/c2t4d0 (10/0.4.0) -- Boot Disk&lt;BR /&gt;Boot: lvol1     on:     /dev/dsk/c2t6d0&lt;BR /&gt;                        /dev/dsk/c2t4d0&lt;BR /&gt;Root: lvol3     on:     /dev/dsk/c2t6d0&lt;BR /&gt;                        /dev/dsk/c2t4d0&lt;BR /&gt;Swap: lvol2     on:     /dev/dsk/c2t6d0&lt;BR /&gt;                        /dev/dsk/c2t4d0&lt;BR /&gt;Dump: lvol2     on:     /dev/dsk/c2t6d0, 0&lt;BR /&gt;&lt;BR /&gt;Questions:&lt;BR /&gt;&lt;BR /&gt;1) I have emptied LVOL9 and plan on removing it from the volume group.  Would it be better to first replace the disk then remove it, or should I remove it, run a vgcfgbackup, replace the disk, then vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;2) When you remove a lvol, do you have to manually remove the entries from fstab and mnttab?&lt;BR /&gt;&lt;BR /&gt;3) Since c2t6d0 is my primary boot disk, and if I read the lvlnboot above correctly, c2t4d0 is my secondary, do I have to recreate this after replacing the disk, or does the vgcfgrestore rebuild this configuration.&lt;BR /&gt;&lt;BR /&gt;4) If I need to make this a boot disk again, how?&lt;BR /&gt;&lt;BR /&gt;Nervous in Phoenix... &lt;BR /&gt;&lt;BR /&gt;Kurt</description>
      <pubDate>Wed, 12 Sep 2001 19:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578588#M647295</guid>
      <dc:creator>KURT HARLESS</dc:creator>
      <dc:date>2001-09-12T19:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk with LVM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578589#M647296</link>
      <description>Hi Kurt:&lt;BR /&gt;&lt;BR /&gt;The following procedure applies:&lt;BR /&gt;&lt;BR /&gt;# Shutdown your system and replace the disk that is failing. &lt;BR /&gt;&lt;BR /&gt;# Boot into single user mode and override the quorum, as: &lt;BR /&gt;&lt;BR /&gt;# ISL&amp;gt; hpux -is -lq /stand/vmunix &lt;BR /&gt;&lt;BR /&gt;# vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtYdZ &lt;BR /&gt;&lt;BR /&gt;# mkboot /dev/rdsk/cXtYdZ &lt;BR /&gt;&lt;BR /&gt;# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/CXtYdZ &lt;BR /&gt;&lt;BR /&gt;# lvlnboot -R &lt;BR /&gt;&lt;BR /&gt;# lvlnboot -v #...to verify all is as desired... &lt;BR /&gt;&lt;BR /&gt;# vgchange -a y /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;# vgsync /dev/vg00 &lt;BR /&gt;&lt;BR /&gt;# shutdown -ry 0 &lt;BR /&gt;&lt;BR /&gt;With regard to your other questions:&lt;BR /&gt;&lt;BR /&gt;(1) I'd wait until your reconstruction is complete before removing "lvol9".  The less LVM maintenance done while your configuration is brittle, the better.&lt;BR /&gt;&lt;BR /&gt;(2) You will manually remove the "lvol9" mountpoint from /etc/fstab.  You do not modify /etc/mnttab.  This occurs naturally as a consequence of mounting and unmounting filesystems.&lt;BR /&gt;&lt;BR /&gt;(3/4) The 'lvlnboot -R' updates the BDRA of each bootable disk.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 12 Sep 2001 20:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578589#M647296</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-09-12T20:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk with LVM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578590#M647297</link>
      <description>1. either way is fine.  This is an independent task from replacing a disk.&lt;BR /&gt;2. Yes, you need to remove the associated entry in fstab.&lt;BR /&gt;3 &amp;amp; 4). To replace a mirrored boot disk:&lt;BR /&gt;   # vgcfgrestore -n /dev/vg00 &lt;BR /&gt;   # mkboot /dev/rdsk/&lt;REPLACE disk="" device=""&gt;&lt;BR /&gt;   # mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/&lt;REPLACED disk="" device=""&gt;&lt;BR /&gt;   # lvlnboot -R&lt;BR /&gt;&lt;BR /&gt;   For older systems, you need to be in single user mode to do this - booted with no disk quorum:&lt;BR /&gt;   reboot&lt;BR /&gt;   interrupt boot sequence&lt;BR /&gt;   interact with ISL&lt;BR /&gt;   ISL&amp;gt; hpux -is -lq &lt;HW path="" of="" good="" boot="" disk=""&gt;/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;I believe the you can hot-swap boot disks in the newer N's and L's.&lt;/HW&gt;&lt;/REPLACED&gt;&lt;/REPLACE&gt;</description>
      <pubDate>Wed, 12 Sep 2001 20:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578590#M647297</guid>
      <dc:creator>Byron Myers</dc:creator>
      <dc:date>2001-09-12T20:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk with LVM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578591#M647298</link>
      <description>These forums and your answers are awesome!&lt;BR /&gt;&lt;BR /&gt;One additional dumb question;&lt;BR /&gt;&lt;BR /&gt;What is the difference between /dev/dsk &amp;amp; /dev/rdsk ?&lt;BR /&gt;&lt;BR /&gt;Thanks again, not sooooo nervous in Phoenix&lt;BR /&gt;&lt;BR /&gt;Kurt</description>
      <pubDate>Wed, 12 Sep 2001 20:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578591#M647298</guid>
      <dc:creator>KURT HARLESS</dc:creator>
      <dc:date>2001-09-12T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk with LVM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578592#M647299</link>
      <description>Hi Kurt,&lt;BR /&gt;&lt;BR /&gt;Like the other have already said,&lt;BR /&gt;&lt;BR /&gt;1.) Remove the lvol9 after your disk change and things are over.&lt;BR /&gt;&lt;BR /&gt;2.) you have to manually edit /etc/fstab and remove the entry corresponding to lvol9&lt;BR /&gt;&lt;BR /&gt;3.) after replacing the disk, boot using your second boot disk, say it is set as alt boot path&lt;BR /&gt;bo alt   'or' bo &lt;HW_PATH_OF_2ND_BOOT_DISK&gt;&lt;BR /&gt;boot in single user mode overiding the quorum.&lt;BR /&gt;ISL&amp;gt; hpux -is -lq (;0)/stand/vmunix&lt;BR /&gt;vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0&lt;BR /&gt;mkboot /dev/rdsk/c2t6d0&lt;BR /&gt;mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c2t6d0&lt;BR /&gt;lvlnboot -R&lt;BR /&gt;&lt;BR /&gt;Reboot the box, again reboot using your second disk&lt;BR /&gt;bo alt&lt;BR /&gt;Do vgsync to syncronise the data&lt;BR /&gt;vgsync /dev/vg00&lt;BR /&gt;Then reboot again using c2t6d0.&lt;BR /&gt;&lt;BR /&gt;If you are trying to do vgsync in single user mode at the first boot, you have to manually mount the rest of the filesystems, i think.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;/HW_PATH_OF_2ND_BOOT_DISK&gt;</description>
      <pubDate>Wed, 12 Sep 2001 21:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578592#M647299</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-09-12T21:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk with LVM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578593#M647300</link>
      <description>Hi Kurt,&lt;BR /&gt;&lt;BR /&gt;/dev/dsk refers to the block device , /dev/rdsk refer to the character device or the raw device.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2001 21:04:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578593#M647300</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-09-12T21:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk with LVM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578594#M647301</link>
      <description>Thanks to everyone, the operation was a complete success.&lt;BR /&gt;&lt;BR /&gt;Kurt</description>
      <pubDate>Thu, 13 Sep 2001 00:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-lvm/m-p/2578594#M647301</guid>
      <dc:creator>KURT HARLESS</dc:creator>
      <dc:date>2001-09-13T00:11:30Z</dc:date>
    </item>
  </channel>
</rss>

