<?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 Remove Duplicate LVs? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701550#M58019</link>
    <description>&lt;BR /&gt;A while back we had some problems after upgrading to HP/UX 11.00 where one of our VG was gone after the upgrade. It was recreated twice, once with the correct LV names and once with random lvol# names.&lt;BR /&gt;&lt;BR /&gt;What it looks like is the correct LV names and the incorrect lvol# names seem to be pointing to the same data. Only the correct LV names are being used.&lt;BR /&gt;&lt;BR /&gt;Any ways I did not realize this until a week or two as the correct LV names were being used the application.&lt;BR /&gt;&lt;BR /&gt;My question is, can I simply remove the random lvol#'s without causing any problem to the actaul data that they point to?&lt;BR /&gt;&lt;BR /&gt;# lvremove /dev/vgname/lvol#&lt;BR /&gt;Where lvol# is the lvol with it's number.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 11 Apr 2002 13:52:47 GMT</pubDate>
    <dc:creator>Justin Willoughby</dc:creator>
    <dc:date>2002-04-11T13:52:47Z</dc:date>
    <item>
      <title>Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701550#M58019</link>
      <description>&lt;BR /&gt;A while back we had some problems after upgrading to HP/UX 11.00 where one of our VG was gone after the upgrade. It was recreated twice, once with the correct LV names and once with random lvol# names.&lt;BR /&gt;&lt;BR /&gt;What it looks like is the correct LV names and the incorrect lvol# names seem to be pointing to the same data. Only the correct LV names are being used.&lt;BR /&gt;&lt;BR /&gt;Any ways I did not realize this until a week or two as the correct LV names were being used the application.&lt;BR /&gt;&lt;BR /&gt;My question is, can I simply remove the random lvol#'s without causing any problem to the actaul data that they point to?&lt;BR /&gt;&lt;BR /&gt;# lvremove /dev/vgname/lvol#&lt;BR /&gt;Where lvol# is the lvol with it's number.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2002 13:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701550#M58019</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2002-04-11T13:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701551#M58020</link>
      <description>Opps, probably should have posted this to the LVM group... I thought about that after I hit the 'SUBMIT' button... Sorry.&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2002 13:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701551#M58020</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2002-04-11T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701552#M58021</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lvremove will destroy all data on the filesystem.&lt;BR /&gt;guess you'd better take a look at lvreduce and see if you can acomplish what you want with it.&lt;BR /&gt;&lt;BR /&gt;grt, E</description>
      <pubDate>Thu, 11 Apr 2002 13:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701552#M58021</guid>
      <dc:creator>Emiel van Grinsven</dc:creator>
      <dc:date>2002-04-11T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701553#M58022</link>
      <description>Hi Justin:&lt;BR /&gt;&lt;BR /&gt;Do *not* use 'lvremove' unless you want to destroy the logical volume!&lt;BR /&gt;&lt;BR /&gt;You can simply 'rm' the files 'dev/vgxx/yyy' that represent the erroneous names.&lt;BR /&gt;&lt;BR /&gt;It sounds like you didn't 'vgimport' with a mapfile after your cold installtion.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Apr 2002 13:56:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701553#M58022</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-04-11T13:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701554#M58023</link>
      <description>It sounds like you don't need to remove the lvol#'s, but to rename them the right way. If you need to do this, then you can just change the references in /etc/fstab.&lt;BR /&gt;&lt;BR /&gt;Otherwise, the lvremove command should not work on any device that is currently mounted, so you should be safe. Just make sure that your backus are good ;-)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;James</description>
      <pubDate>Thu, 11 Apr 2002 13:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701554#M58023</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2002-04-11T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701555#M58024</link>
      <description>NO, do not use the lvmremove command!!!!! It could be pointing to a GOOD LV.&lt;BR /&gt;&lt;BR /&gt;Just cd to the /dev/vg## directory and "rm" the BAD LV device files!!!&lt;BR /&gt;&lt;BR /&gt;Do and "ls -l" from the /dev/vg## directory and check the LV's MINOR numbers to see what is pointing to what.&lt;BR /&gt;&lt;BR /&gt;You might also need to rename the lvmtab file and do a vgscan.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 11 Apr 2002 13:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701555#M58024</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-11T13:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701556#M58025</link>
      <description>Hi You can do one thing .&lt;BR /&gt;&lt;BR /&gt;first try to check the used data in LV using lvdisplay.&lt;BR /&gt;Also try to mount any one of the random lv to a directory. IF it is mounted and you can see the contents that is not required, then you can use "lvremove" to remove the logical volume. &lt;BR /&gt;Before doing removal operation it is better to take full backup of the system.&lt;BR /&gt;&lt;BR /&gt;-pap</description>
      <pubDate>Thu, 11 Apr 2002 13:59:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701556#M58025</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2002-04-11T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701557#M58026</link>
      <description>Justin,&lt;BR /&gt;&lt;BR /&gt;DONOT remove the LV with 'lvremove' if you have data on that. That will erase the data and the LV. If you just want to get rid of the lvnames, do 'rm' on /dev/vgxx.&lt;BR /&gt;&lt;BR /&gt;Also check 'rmsf' command too.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 11 Apr 2002 14:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701557#M58026</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-11T14:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701558#M58027</link>
      <description>&lt;BR /&gt;Let's say you have these LV's:&lt;BR /&gt;&lt;BR /&gt;brw-r-----   1 root       sys         64 0x00000a Sep  4  2001 lvol1&lt;BR /&gt;brw-r-----   1 root       sys         64 0x00000a Aug 13  2001 lvol9&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and lvol9 is the one you know is bad. THEY BOTH POINT TO THE SAME AREA (64 0x00000a) IN THE VG!!!! So if you do a lvmreduce or lvmremove you will TOAST lvol1 also!!!!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2002 14:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701558#M58027</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-11T14:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701559#M58028</link>
      <description>They are raw LVs so I can???t mount them plus they are being used.&lt;BR /&gt;&lt;BR /&gt;Sounds like I should just be able to rm the duplicate names right? Do I need to do any thing else to let the system know these are gone or is rm'ing them enough?&lt;BR /&gt;&lt;BR /&gt;Thanks for everyone's replies so far!&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2002 14:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701559#M58028</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2002-04-11T14:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701560#M58029</link>
      <description>Hi Justin,&lt;BR /&gt;&lt;BR /&gt;Just want to be sure the LVs are really duplicates.  How did you determine that?  Does lvdisplay -v /dev/vgname/lvol# show the same extents being used are lvdisplay -v on the correct lv?&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 11 Apr 2002 14:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701560#M58029</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-11T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701561#M58030</link>
      <description>Hi Justin,&lt;BR /&gt;&lt;BR /&gt;Just 'rm' will be fine. You don't need to do anything else. Make sure that you are not removing anything which is used now.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 11 Apr 2002 14:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701561#M58030</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-11T14:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701562#M58031</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;if you can see the data as you have said I would backup to tape. zap the lv's then rebuild newones and restore from tape.&lt;BR /&gt;&lt;BR /&gt;This way you dont risk loosing the data.&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;John.</description>
      <pubDate>Thu, 11 Apr 2002 14:09:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701562#M58031</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-11T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701563#M58032</link>
      <description>Darrell,&lt;BR /&gt;&lt;BR /&gt;I know they are duplicates because there should not be any LVs named lvol# in this VG. They only showed up after the upgrade when the vendor was trying to fix the problem with the VG being gone. They must have done some thing wrong and then fixed it. This left the wrong named LVs there.&lt;BR /&gt;&lt;BR /&gt;In addition, in GlancePlus I see two LV's with the same IO, so that makes me belive they are pointint to the same extents. The lvol#s should not be in use, but the data they point to is/should.&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2002 14:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701563#M58032</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2002-04-11T14:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701564#M58033</link>
      <description>Attached is the output from vgdisplay -v venvg&lt;BR /&gt;&lt;BR /&gt;venvg is used in place of the actaul vg name.&lt;BR /&gt;&lt;BR /&gt;I am sure if you add up all the lvol#'s and all the dbname lv's you will see it is twice the about for the vg.&lt;BR /&gt;&lt;BR /&gt;Will just rm's the files get rid of them from showing up with vgdisplay or is more needed?&lt;BR /&gt;&lt;BR /&gt;Can what is needed be done online while the system is running and applicaton(s) are accessing the correct /dev/venvg/dbname.* LVs?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;- Justin</description>
      <pubDate>Thu, 11 Apr 2002 14:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701564#M58033</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2002-04-11T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701565#M58034</link>
      <description>I'd feel better knowing you've followed up on Harry's suggestion to check minor numbers on the device files.  Try:&lt;BR /&gt;ll | grep ^b | sort -k6,6&lt;BR /&gt;&lt;BR /&gt;If you see duplicates, then you chould be able to delete the dups.  And for each block special file you delete, delete the character one also.&lt;BR /&gt;&lt;BR /&gt;I've never had this type problem before.  I wonder if the VGRA on the disks in your vg are okay?&lt;BR /&gt;&lt;BR /&gt;Anyone know how to verify the VGRA?&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 11 Apr 2002 14:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701565#M58034</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-11T14:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701566#M58035</link>
      <description>I assume you are already having the map file for that Volume Group. &lt;BR /&gt;&lt;BR /&gt;Do a vgexport for that volume group and then again do vgimport with the map file. When you do vgexport all of your entry will go and when you do vgimport with the map file, it will bring back the original name.&lt;BR /&gt;&lt;BR /&gt;Again, you should have the original mapfile before doing this.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Thu, 11 Apr 2002 15:14:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701566#M58035</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-04-11T15:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701567#M58036</link>
      <description>Darrell,&lt;BR /&gt;&lt;BR /&gt;Yes there is duplicates (block numbers), see attached file.&lt;BR /&gt;&lt;BR /&gt;- Justin</description>
      <pubDate>Thu, 11 Apr 2002 15:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701567#M58036</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2002-04-11T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701568#M58037</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;As info, I can't open your attachment.&lt;BR /&gt;&lt;BR /&gt;As others have said, I believe it is okay to simply rm the duplicate special files.&lt;BR /&gt;&lt;BR /&gt;I haven't found how to verify the VGRA on the disks but if vgdisplay -v venvg (which I believe looks at /etc/lvmtab but not the VGRA on your disks) looks good after removing the special files, I'd suggest doing the following to ensure the vg info on the disks is okay:&lt;BR /&gt;vgcfgbackup venvg&lt;BR /&gt;vgcfgrestore -n venvg /dev/rdsk/c0t4d0&lt;BR /&gt;vgcfgrestore -n venvg /dev/rdsk/c1t5d0&lt;BR /&gt;&lt;BR /&gt;As a precaution, make a backup of /etc/lvmtab and the /etc/lvmconf directory.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 11 Apr 2002 19:01:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701568#M58037</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-11T19:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate LVs?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701569#M58038</link>
      <description>I can't open the attachment either... That's odd, I thought I was able to yesterday.. Lets try it again...&lt;BR /&gt;&lt;BR /&gt;I guess I will just rm the files and see if that works. Can I do the vgcfgbackup and &lt;BR /&gt;vgcfgrestore while the vg is being used? I assume I can do the vgcfgbackup while the vg is being used but I am wondering about the vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;- Justin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Apr 2002 11:00:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-lvs/m-p/2701569#M58038</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2002-04-12T11:00:30Z</dc:date>
    </item>
  </channel>
</rss>

