<?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: removing root mirror in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608697#M645372</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here's another rendition:&lt;BR /&gt;&lt;BR /&gt;Make sure that the mirrors are the same on&lt;BR /&gt;both disks by using the below, this is to &lt;BR /&gt;make sure that the mirrors are consistant.&lt;BR /&gt;Your must be 'root' to do the lvreduce and the vgreduce commands.&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/lvdisplay -v /dev/vg00/lv*&lt;BR /&gt;&lt;BR /&gt;Then to remove the mirror&lt;BR /&gt;&lt;BR /&gt;# for LVOL in /dev/vg00/lv*&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; echo $LVOL&lt;BR /&gt;&amp;gt; /usr/sbin/lvremove -m 0 $LVOL&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;Then to remove the disk from volume group&lt;BR /&gt;# /usr/sbin/vgreduce /dev/vg00 /dev/dsk/c1t5d0&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
    <pubDate>Wed, 07 Nov 2001 01:45:27 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2001-11-07T01:45:27Z</dc:date>
    <item>
      <title>removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608692#M645367</link>
      <description>I see that this has been posted, but the answer is not apparent.&lt;BR /&gt;&lt;BR /&gt;I have two disks that are in the same volume group but I want to remove the second one.&lt;BR /&gt;&lt;BR /&gt;I have tried to lvreduce /dev/vg00 /dev/dsk/c1t5d0 but no go.&lt;BR /&gt;&lt;BR /&gt;I need to remove this drive, c1t5d0 from the volume group and ensure that it is not mirrored from c1t6d0.&lt;BR /&gt;&lt;BR /&gt;Suggestions?</description>
      <pubDate>Wed, 07 Nov 2001 01:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608692#M645367</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2001-11-07T01:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608693#M645368</link>
      <description>Hi Nick:&lt;BR /&gt;&lt;BR /&gt;First, you need to 'lvreduce' the mirror copies you no longer want, as for instance:&lt;BR /&gt;&lt;BR /&gt;# for N in 1 2 3 4 5 6 7 8 &lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; lvreduce -m 0 /dev/vg00/lvol${N} /dev/dsk/cXtYdZ&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;...where cXtYdZ is the disk you no longer want.&lt;BR /&gt;&lt;BR /&gt;Then:&lt;BR /&gt;&lt;BR /&gt;# vgreduce /dev/vg00 /dev/dsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 01:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608693#M645368</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-07T01:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608694#M645369</link>
      <description>Hi Nick,&lt;BR /&gt;&lt;BR /&gt;what you need to do is first reduce the mirror and then reduce the disk from the VG.&lt;BR /&gt;&lt;BR /&gt;to reduce the mirror do "lvreduce -m 0 /dev/vg00/lvol_name /dev/dsk/cxtydz"&lt;BR /&gt;&lt;BR /&gt;Here lvol_name is the name of the volume for which you are reducing the mirror and /dev/dsk/cxtydz is the device from which you are removing the mirror. In your case cxtydz is c1t5d0. Once you have done this, do a "lvlnboot" for the root, swap and the boot volume. then do a "lvlnboot -R" to confirm the BRDA is okay and "lvlnboot -v" to check the disk boot info's are correctly displayed. Then go a "vgreduce" to remove the disk from the root VG. &lt;BR /&gt;&lt;BR /&gt;You should now have what you wanted.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 01:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608694#M645369</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-11-07T01:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608695#M645370</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c1t5d0 produced this error.&lt;BR /&gt;&lt;BR /&gt;In fact, it appeared for all lvols.&lt;BR /&gt;&lt;BR /&gt;lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";&lt;BR /&gt;therefore no mirrors are removed.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 01:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608695#M645370</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2001-11-07T01:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608696#M645371</link>
      <description>Apparently the stuff in this VG is not mirrored.  That is why you got that error.&lt;BR /&gt;&lt;BR /&gt;Do a 'vgdisplay -v /dev/vg00'  This will show you whether the LVOLS are mirrored or not.&lt;BR /&gt;&lt;BR /&gt;You can also do a 'pvdisplay -v /dev/dsk/c1t5d0' and see what specific LVOLS are on that disk.&lt;BR /&gt;&lt;BR /&gt;If there are none, you can do a vgreduce to reduce that disk out of vg00</description>
      <pubDate>Wed, 07 Nov 2001 01:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608696#M645371</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-11-07T01:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608697#M645372</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here's another rendition:&lt;BR /&gt;&lt;BR /&gt;Make sure that the mirrors are the same on&lt;BR /&gt;both disks by using the below, this is to &lt;BR /&gt;make sure that the mirrors are consistant.&lt;BR /&gt;Your must be 'root' to do the lvreduce and the vgreduce commands.&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/lvdisplay -v /dev/vg00/lv*&lt;BR /&gt;&lt;BR /&gt;Then to remove the mirror&lt;BR /&gt;&lt;BR /&gt;# for LVOL in /dev/vg00/lv*&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; echo $LVOL&lt;BR /&gt;&amp;gt; /usr/sbin/lvremove -m 0 $LVOL&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;Then to remove the disk from volume group&lt;BR /&gt;# /usr/sbin/vgreduce /dev/vg00 /dev/dsk/c1t5d0&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Wed, 07 Nov 2001 01:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608697#M645372</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-07T01:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608698#M645373</link>
      <description>Hi Nick:&lt;BR /&gt;&lt;BR /&gt;Given the error you report, you do not have the corresponding logical volume mirrored.  If you do:&lt;BR /&gt;&lt;BR /&gt;# lvdisplay -v /dev/vg00/lvol${N}|more&lt;BR /&gt;&lt;BR /&gt;Note the line "Mirror copies".  It will show &amp;lt;1&amp;gt; if you have a mirrored copy (1) otherwise zero (0). You should see zero based on your error.&lt;BR /&gt;&lt;BR /&gt;In addition, under the heading "Distribution of logical volume" you will see the number of extents for every physical disk comprising the volume group.  *If* you don't see any extents for any logical volume (1-N) on the disk (cXtydZ) that you want to 'vgreduce' then you may safely 'vgreduce' it.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;If you do:&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 01:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608698#M645373</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-07T01:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608699#M645374</link>
      <description>In the output of 'vgdisplay -v /dev/vg00' if&lt;BR /&gt;the disk has the same number of Free PE's as&lt;BR /&gt;the total of PE's that would also indicate&lt;BR /&gt;that there is nothing on the disk. If there&lt;BR /&gt;is a difference there is something on the disk.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt; --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c1t6d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4340    &lt;BR /&gt;   Free PE                     2791    &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c2t6d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4340    &lt;BR /&gt;   Free PE                     4340    &lt;BR /&gt;   Autoswitch                  On      &lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Wed, 07 Nov 2001 01:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608699#M645374</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-07T01:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608700#M645375</link>
      <description>Hi,&lt;BR /&gt;Why you want to remove c1t5d0 ?Is it a bad disk ?If it is the case then use these steps to un-mirror the Logical Volume:&lt;BR /&gt;&lt;BR /&gt;     1. lvdisplay -k -v /dev/vg00/lvol6 | more&lt;BR /&gt;&lt;BR /&gt;        Note: You are looking for the pvkey value of the missing disk.&lt;BR /&gt;              This value is located in the 'PV' column.&lt;BR /&gt;&lt;BR /&gt;     2. lvreduce -k pvkey_value -m 0 /dev/vg00/lvol6&lt;BR /&gt;&lt;BR /&gt;        Note: This command un-mirrors the missing disk.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Animesh</description>
      <pubDate>Wed, 07 Nov 2001 01:58:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608700#M645375</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-11-07T01:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: removing root mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608701#M645376</link>
      <description>Thanks to all for your inputs.&lt;BR /&gt;&lt;BR /&gt;Information from several posts were used and helped,&lt;BR /&gt;thanks</description>
      <pubDate>Wed, 07 Nov 2001 14:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-root-mirror/m-p/2608701#M645376</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2001-11-07T14:38:01Z</dc:date>
    </item>
  </channel>
</rss>

