<?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: Remove logical volume in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416755#M774444</link>
    <description>Funny, I have the exactly same problem!  I'm removing some old VG's (nothing system related, mind you), and the last one, an old database raw volume, has just this difficulty.&lt;BR /&gt;&lt;BR /&gt;The thing is, this LV isn't a swap volume at all.  In fact, no disk in this VG has a boot area.  It's just a normal user LV, so I can't imagine how LVM thinks it's a swap volume.  It's not in /etc/fstab, nor does lvlnboot -v know anything about it.&lt;BR /&gt;&lt;BR /&gt;Does anybody know the gimmick to shake this LV loose?  Thanks in advance. =-)&lt;BR /&gt;&lt;BR /&gt;-cheers, Craig S. Bell</description>
    <pubDate>Thu, 23 Nov 2000 00:41:25 GMT</pubDate>
    <dc:creator>June Hou</dc:creator>
    <dc:date>2000-11-23T00:41:25Z</dc:date>
    <item>
      <title>Remove logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416753#M774442</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt;When I want to remove a logical volume (HP/9000, 10.20), I get the error:&lt;BR /&gt;Couldn't remove Logical volume "/dev/vg03/lvol10"&lt;BR /&gt;You must lvrmboot -s before removing a swap device.&lt;BR /&gt;&lt;BR /&gt;When I type: lvrmboot -s /dev/vg03, I get the error:&lt;BR /&gt;No valid Boot Data Reserved Areas exist on any of the &lt;BR /&gt;Physical Volumes in the Volume Group "/dev/vg03".&lt;BR /&gt;Issue the pvcreate -B command to create a Boot Area on a Physical Volume.&lt;BR /&gt;The fstype of this volume is HFS (fstype /dev/vg03/lvol10). This file is not &lt;BR /&gt;the last file in the directory.&lt;BR /&gt;&lt;BR /&gt;Can somebody help me please?&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 15 Dec 1999 01:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416753#M774442</guid>
      <dc:creator>D. Versluis</dc:creator>
      <dc:date>1999-12-15T01:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416754#M774443</link>
      <description>From what you've said it sounds like the lvol is secondary swap. You can &lt;BR /&gt;determine this by use of the swapinfo command.&lt;BR /&gt;&lt;BR /&gt;If it is then you need to:&lt;BR /&gt;&lt;BR /&gt;Disable this swap by editing out the line in /etc/fstab&lt;BR /&gt;Reboot the machine&lt;BR /&gt;Then remove the lvol.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 15 Dec 1999 03:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416754#M774443</guid>
      <dc:creator>Chris Lonergan_1</dc:creator>
      <dc:date>1999-12-15T03:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416755#M774444</link>
      <description>Funny, I have the exactly same problem!  I'm removing some old VG's (nothing system related, mind you), and the last one, an old database raw volume, has just this difficulty.&lt;BR /&gt;&lt;BR /&gt;The thing is, this LV isn't a swap volume at all.  In fact, no disk in this VG has a boot area.  It's just a normal user LV, so I can't imagine how LVM thinks it's a swap volume.  It's not in /etc/fstab, nor does lvlnboot -v know anything about it.&lt;BR /&gt;&lt;BR /&gt;Does anybody know the gimmick to shake this LV loose?  Thanks in advance. =-)&lt;BR /&gt;&lt;BR /&gt;-cheers, Craig S. Bell</description>
      <pubDate>Thu, 23 Nov 2000 00:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416755#M774444</guid>
      <dc:creator>June Hou</dc:creator>
      <dc:date>2000-11-23T00:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416756#M774445</link>
      <description>By the way, this is HP-UX 10.20 on a two-way K420, with an 8-user license.  The last patch bundle applied was B.10.20.43 (not the latest, I know).  -cheers, CSB&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2000 00:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416756#M774445</guid>
      <dc:creator>June Hou</dc:creator>
      <dc:date>2000-11-23T00:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416757#M774446</link>
      <description>Heyyy, I answered my own question. =-) =-)&lt;BR /&gt;&lt;BR /&gt;Fortunately, I had some extra disks around (since I was removing old VG's).  To get rid of my bad volume (let's call it /dev/vg/badlv) , I made a bootable disk, and added it to the VG in question:&lt;BR /&gt;&lt;BR /&gt;# pvcreate -B newdisk&lt;BR /&gt;# mkboot newdisk&lt;BR /&gt;# vgextend vg newdisk&lt;BR /&gt;&lt;BR /&gt;Next, I moved all of the physical extents from the original disk to this new disk, and got rid of the old disk.&lt;BR /&gt;&lt;BR /&gt;# pvmove olddisk newdisk&lt;BR /&gt;# vgreduce vg olddisk&lt;BR /&gt;&lt;BR /&gt;...Now, I have a bootable disk with all of the volumes, including the troublesome one.  We can use lvlnboot to make mv bad LV a swap device, and see if that helps.&lt;BR /&gt;&lt;BR /&gt;Before we do that, we have to make a root LV.  This has to be contiguous, and can't have bad block relocation.  The alleged swap LV must be contiguous, too.  Here we go:&lt;BR /&gt;&lt;BR /&gt;# lvcreate -l 100 -n dummy_root vg&lt;BR /&gt;# lvchange -C y /dev/vg/badlv&lt;BR /&gt;# lvchange -C y /dev/vg/dummy_root&lt;BR /&gt;# lvchange -r n /dev/vg/dummy_root&lt;BR /&gt;&lt;BR /&gt;Now, I can create the root and swap flags:&lt;BR /&gt;&lt;BR /&gt;# lvlnboot -r /dev/vg/dummy_root&lt;BR /&gt;# lvlnboot -s /dev/vg/badlv&lt;BR /&gt;&lt;BR /&gt;Then, I turn right around and get rid of them:&lt;BR /&gt;&lt;BR /&gt;# lvrmboot -s vg&lt;BR /&gt;# lvrmboot -r vg&lt;BR /&gt;&lt;BR /&gt;...wow, I was able to get LVM to forget about this silly swap area business. =-)  Finally, I remove the LV's, and then get rid of the VG altogether:&lt;BR /&gt;&lt;BR /&gt;# lvremove /dev/vg/dummy_root&lt;BR /&gt;# lvremove /dev/vg/badlv&lt;BR /&gt;# vgremove vg&lt;BR /&gt;&lt;BR /&gt;...All done.  I guess there was just a bad bit in my lvmtab.  Once I was able to convince LVM that my bad LV was a legitimate swap area, it was perfectly happy to let me un-make it a swap area.&lt;BR /&gt;&lt;BR /&gt;It's probably too late to help the original poster, but here's hoping it helps the next sysadmin. =-)  -cheers, Craig S. Bell&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2000 01:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-logical-volume/m-p/2416757#M774446</guid>
      <dc:creator>June Hou</dc:creator>
      <dc:date>2000-11-23T01:31:54Z</dc:date>
    </item>
  </channel>
</rss>

