<?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: Cant remove a logical volume in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912798#M630345</link>
    <description>using lsof or fuser check if there are any processes attached to it.&lt;BR /&gt;&lt;BR /&gt;after lvchange -a n check lvdisplay. &lt;BR /&gt;&lt;BR /&gt;Then lvremove should work.</description>
    <pubDate>Tue, 25 Feb 2003 16:28:06 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2003-02-25T16:28:06Z</dc:date>
    <item>
      <title>Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912796#M630343</link>
      <description>I have been trying for about an hour or so now to remove a logical volume from our HP K class (now running HP-UX 11i).&lt;BR /&gt;&lt;BR /&gt;Each time I try to remove it using either SAM or from the command line&lt;BR /&gt;(lvremove -f /dev/testvg/lvol1)&lt;BR /&gt;I get 'can not delete the logical volume - the volume is open or a sparing operation is in progress'&lt;BR /&gt;&lt;BR /&gt;I have unmounted the filesystem and ran lvchange -a n /dev/testvg/lvol1 first but this has made no difference.&lt;BR /&gt;&lt;BR /&gt;What gives ? ?&lt;BR /&gt;&lt;BR /&gt;Also I have an o.s. upgrade looming on our L class this weekend, prior to which we plan to split the mirrored root volumes and prove that we can reboot the box from the mirror disk if necessary.&lt;BR /&gt;&lt;BR /&gt;I have a (very vague) idea of the procedure for this but if anybody has any pointers they would be much appreciated.</description>
      <pubDate>Tue, 25 Feb 2003 16:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912796#M630343</guid>
      <dc:creator>Ian Foster</dc:creator>
      <dc:date>2003-02-25T16:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912797#M630344</link>
      <description>Check if any process is still trying get hold of the file system. You can use fuser, lsof or ps commands to check it. Check the output of lvdisplay and see the LV status.</description>
      <pubDate>Tue, 25 Feb 2003 16:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912797#M630344</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-02-25T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912798#M630345</link>
      <description>using lsof or fuser check if there are any processes attached to it.&lt;BR /&gt;&lt;BR /&gt;after lvchange -a n check lvdisplay. &lt;BR /&gt;&lt;BR /&gt;Then lvremove should work.</description>
      <pubDate>Tue, 25 Feb 2003 16:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912798#M630345</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-02-25T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912799#M630346</link>
      <description>For the OS upgrade question, this thread was very useful for me:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf1c5a2db8513d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf1c5a2db8513d6118ff40090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Tue, 25 Feb 2003 16:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912799#M630346</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-02-25T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912800#M630347</link>
      <description>Thanks for the prompt responses guys.&lt;BR /&gt;&lt;BR /&gt;Unfortunately I have not been able to resolve this yet. I can not identify anything which may be trying to access the volume using fuser, and lvdisplay shows it as unavailable following the status change using lvchange.&lt;BR /&gt;&lt;BR /&gt;Any more ideas ?</description>
      <pubDate>Tue, 25 Feb 2003 16:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912800#M630347</guid>
      <dc:creator>Ian Foster</dc:creator>
      <dc:date>2003-02-25T16:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912801#M630348</link>
      <description>You don't need to change the LV status with lvchange for removing a LV. Make it available for operation and try removing it.&lt;BR /&gt;&lt;BR /&gt;Another good possibily can be the patches. Are you up to date with patches? what about LVM patches</description>
      <pubDate>Tue, 25 Feb 2003 17:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912801#M630348</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-02-25T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912802#M630349</link>
      <description>Also, can you post the error message you are getting and the command you applied?</description>
      <pubDate>Tue, 25 Feb 2003 17:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912802#M630349</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-02-25T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912803#M630350</link>
      <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt;Please do following that might helps.&lt;BR /&gt;&lt;BR /&gt;1. activate your lv. (make the sattus of LV vailable.)&lt;BR /&gt;2. If you have mirrored this LV , please remove the mirror copy.&lt;BR /&gt;3. Try to remove the LV using simple lvremove command.&lt;BR /&gt;4. If you are unable to do so, please post the vgdisplay -v out put and lvdisplay -v output to understand your problem in better way.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-pap&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Feb 2003 18:19:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912803#M630350</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2003-02-25T18:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912804#M630351</link>
      <description>Hi Ian,&lt;BR /&gt;If at all you are not able to remove the LV from VG01 , I suggest to boot the system  into lvm maintenance mode and perform following actions :&lt;BR /&gt;&lt;BR /&gt;ISL&amp;gt; hpux -lm &lt;BR /&gt;&lt;BR /&gt;# vgchange -a y vg00 &lt;BR /&gt;# mount -a &lt;BR /&gt;# vgchange -a y /dev/testvg&lt;BR /&gt;# umount /dev/testvg/lvol1&lt;BR /&gt;# lvremove /dev/testvg/lvol1&lt;BR /&gt;&lt;BR /&gt;I am sure that will work.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-pap</description>
      <pubDate>Tue, 25 Feb 2003 18:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912804#M630351</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2003-02-25T18:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912805#M630352</link>
      <description>Hi Ian,&lt;BR /&gt;If at all you are not able to remove the LV from TESTVG , I suggest to boot the system  into lvm maintenance mode and perform following actions :&lt;BR /&gt;&lt;BR /&gt;ISL&amp;gt; hpux -lm &lt;BR /&gt;&lt;BR /&gt;# vgchange -a y vg00 &lt;BR /&gt;# mount -a &lt;BR /&gt;# vgchange -a y /dev/testvg&lt;BR /&gt;# umount /dev/testvg/lvol1&lt;BR /&gt;# lvremove /dev/testvg/lvol1&lt;BR /&gt;&lt;BR /&gt;I am sure that will work.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-pap</description>
      <pubDate>Tue, 25 Feb 2003 18:28:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912805#M630352</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2003-02-25T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912806#M630353</link>
      <description>All good suggestions. I have tried them all (except booting to LVM maintenance mode - this will have to wait until I can get on-site with the machine and schedule an outage on the server). Problem still remains so I am inclined to think maybe there might be a patching issue as suggested. I have checked that volume is not mirrored. The output is attached FYI.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Feb 2003 10:47:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912806#M630353</guid>
      <dc:creator>Ian Foster</dc:creator>
      <dc:date>2003-02-26T10:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912807#M630354</link>
      <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt;Just a thought, why not remove the volume group, noticed that you have only one lvol in this group.&lt;BR /&gt;&lt;BR /&gt;# vgexport testvg&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Wed, 26 Feb 2003 10:53:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912807#M630354</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-02-26T10:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912808#M630355</link>
      <description>Check who keeps the lvol open:&lt;BR /&gt;&lt;BR /&gt;# fuser /dev/testvg/rlvol1&lt;BR /&gt;# ps -fp&lt;PID&gt;&lt;BR /&gt;end the process which keeps the file open&lt;BR /&gt;&lt;BR /&gt;Please also check if the newest VxFS patch is installed on the system, for HP-UX 11.00 min. PHKL_27212&lt;BR /&gt;&lt;BR /&gt;&lt;/PID&gt;</description>
      <pubDate>Wed, 26 Feb 2003 11:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912808#M630355</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2003-02-26T11:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912809#M630356</link>
      <description>Nice idea, Robert-Jan. Unfortunately this wouldn't work either :&lt;BR /&gt;&lt;BR /&gt;# vgexport /dev/testvg&lt;BR /&gt;vgexport: Volume group "/dev/testvg" is still active.&lt;BR /&gt;vgexport: Couldn't export volume group "/dev/testvg".&lt;BR /&gt;&lt;BR /&gt;# vgchange -a n /dev/testvg&lt;BR /&gt;vgchange: Couldn't deactivate volume group "/dev/testvg":&lt;BR /&gt;Device busy&lt;BR /&gt;&lt;BR /&gt;Good, isn't it ?!&lt;BR /&gt;&lt;BR /&gt;It would certainly appear that despite the fact the filesystem is not mounted and I can make the only remaining logical volume unavailable, the system thinks that testvg or the underlying disk is busy, though I'll be damned if I can see why ! Maybe a reboot will cure it ?</description>
      <pubDate>Wed, 26 Feb 2003 11:05:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912809#M630356</guid>
      <dc:creator>Ian Foster</dc:creator>
      <dc:date>2003-02-26T11:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912810#M630357</link>
      <description>Use fuser command over lv name to get the proccess running on it.&lt;BR /&gt;Then you can kill the process on lv.&lt;BR /&gt;&lt;BR /&gt;I hope this help you.&lt;BR /&gt;&lt;BR /&gt;Juanma.</description>
      <pubDate>Wed, 26 Feb 2003 11:10:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912810#M630357</guid>
      <dc:creator>Juan Manuel López</dc:creator>
      <dc:date>2003-02-26T11:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912811#M630358</link>
      <description>Yes, a reboot will help here, but in my mind you should find the process which keeps the lvol open with fuser command and if you stop/kill this process you should be able to remove the lvol without reboot.&lt;BR /&gt;&lt;BR /&gt;Regards ...&lt;BR /&gt;Armin</description>
      <pubDate>Wed, 26 Feb 2003 11:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912811#M630358</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2003-02-26T11:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912812#M630359</link>
      <description>Armin, output as suggested :&lt;BR /&gt;&lt;BR /&gt;# fuser /dev/testvg/lvol1&lt;BR /&gt;/dev/testvg/lvol1: &lt;BR /&gt;&lt;BR /&gt;# fuser /dev/testvg &lt;BR /&gt;/dev/testvg: &lt;BR /&gt;&lt;BR /&gt;# fuser /dev/dsk/c2t4d0&lt;BR /&gt;/dev/dsk/c2t4d0: &lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;ie. no output.&lt;BR /&gt;&lt;BR /&gt;It looks more like a case for a reboot or some LVM patches.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ian.</description>
      <pubDate>Wed, 26 Feb 2003 11:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912812#M630359</guid>
      <dc:creator>Ian Foster</dc:creator>
      <dc:date>2003-02-26T11:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912813#M630360</link>
      <description>Please use the raw lvol&lt;BR /&gt;&lt;BR /&gt;# fuser /dev/testvg/rlvol1&lt;BR /&gt;                    &lt;BR /&gt;to find the process. Also you should check for the newest VxFS patch, I know a problem without having this patch.&lt;BR /&gt;&lt;BR /&gt;If fuser didn't find the process, you have to reboot ;-(((&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Feb 2003 11:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912813#M630360</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2003-02-26T11:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912814#M630361</link>
      <description>Shiju,&lt;BR /&gt;&lt;BR /&gt;The thread for the upgrade/mirroring question looks useful, thanks.&lt;BR /&gt;&lt;BR /&gt;I have a question relating to this though :&lt;BR /&gt;&lt;BR /&gt;When rebooting from the mirror disk (assuming the mirror has been split prior to the shutdown) is there an issue with /etc/fstab or will all the filesystems mount as normal ?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ian.</description>
      <pubDate>Wed, 26 Feb 2003 11:23:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912814#M630361</guid>
      <dc:creator>Ian Foster</dc:creator>
      <dc:date>2003-02-26T11:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cant remove a logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912815#M630362</link>
      <description>Armin,&lt;BR /&gt;&lt;BR /&gt;The fuser did not find anything on the raw device either unfortunately :&lt;BR /&gt;&lt;BR /&gt;# fuser /dev/testvg/rlvol1&lt;BR /&gt;/dev/testvg/rlvol1: &lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Time to check patches and possibly reboot, I think.&lt;BR /&gt;&lt;BR /&gt;Thanks for all your suggestions.&lt;BR /&gt;&lt;BR /&gt;Ian.</description>
      <pubDate>Wed, 26 Feb 2003 11:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-remove-a-logical-volume/m-p/2912815#M630362</guid>
      <dc:creator>Ian Foster</dc:creator>
      <dc:date>2003-02-26T11:26:46Z</dc:date>
    </item>
  </channel>
</rss>

