- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cant remove a logical volume
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 08:12 AM
тАО02-25-2003 08:12 AM
Each time I try to remove it using either SAM or from the command line
(lvremove -f /dev/testvg/lvol1)
I get 'can not delete the logical volume - the volume is open or a sparing operation is in progress'
I have unmounted the filesystem and ran lvchange -a n /dev/testvg/lvol1 first but this has made no difference.
What gives ? ?
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.
I have a (very vague) idea of the procedure for this but if anybody has any pointers they would be much appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 08:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 08:28 AM
тАО02-25-2003 08:28 AM
Re: Cant remove a logical volume
after lvchange -a n check lvdisplay.
Then lvremove should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 08:29 AM
тАО02-25-2003 08:29 AM
Re: Cant remove a logical volume
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf1c5a2db8513d6118ff40090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 08:36 AM
тАО02-25-2003 08:36 AM
Re: Cant remove a logical volume
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.
Any more ideas ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 09:14 AM
тАО02-25-2003 09:14 AM
Re: Cant remove a logical volume
Another good possibily can be the patches. Are you up to date with patches? what about LVM patches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 09:29 AM
тАО02-25-2003 09:29 AM
Re: Cant remove a logical volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 10:19 AM
тАО02-25-2003 10:19 AM
Re: Cant remove a logical volume
Please do following that might helps.
1. activate your lv. (make the sattus of LV vailable.)
2. If you have mirrored this LV , please remove the mirror copy.
3. Try to remove the LV using simple lvremove command.
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.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 10:27 AM
тАО02-25-2003 10:27 AM
Re: Cant remove a logical volume
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 :
ISL> hpux -lm
# vgchange -a y vg00
# mount -a
# vgchange -a y /dev/testvg
# umount /dev/testvg/lvol1
# lvremove /dev/testvg/lvol1
I am sure that will work.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 10:28 AM
тАО02-25-2003 10:28 AM
Re: Cant remove a logical volume
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 :
ISL> hpux -lm
# vgchange -a y vg00
# mount -a
# vgchange -a y /dev/testvg
# umount /dev/testvg/lvol1
# lvremove /dev/testvg/lvol1
I am sure that will work.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 02:47 AM
тАО02-26-2003 02:47 AM
Re: Cant remove a logical volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 02:53 AM
тАО02-26-2003 02:53 AM
Re: Cant remove a logical volume
Just a thought, why not remove the volume group, noticed that you have only one lvol in this group.
# vgexport testvg
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:03 AM
тАО02-26-2003 03:03 AM
Re: Cant remove a logical volume
# fuser /dev/testvg/rlvol1
# ps -fp
end the process which keeps the file open
Please also check if the newest VxFS patch is installed on the system, for HP-UX 11.00 min. PHKL_27212
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:05 AM
тАО02-26-2003 03:05 AM
Re: Cant remove a logical volume
# vgexport /dev/testvg
vgexport: Volume group "/dev/testvg" is still active.
vgexport: Couldn't export volume group "/dev/testvg".
# vgchange -a n /dev/testvg
vgchange: Couldn't deactivate volume group "/dev/testvg":
Device busy
Good, isn't it ?!
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:10 AM
тАО02-26-2003 03:10 AM
Re: Cant remove a logical volume
Then you can kill the process on lv.
I hope this help you.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:11 AM
тАО02-26-2003 03:11 AM
Re: Cant remove a logical volume
Regards ...
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:12 AM
тАО02-26-2003 03:12 AM
Re: Cant remove a logical volume
# fuser /dev/testvg/lvol1
/dev/testvg/lvol1:
# fuser /dev/testvg
/dev/testvg:
# fuser /dev/dsk/c2t4d0
/dev/dsk/c2t4d0:
#
ie. no output.
It looks more like a case for a reboot or some LVM patches.
Cheers,
Ian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:21 AM
тАО02-26-2003 03:21 AM
Re: Cant remove a logical volume
# fuser /dev/testvg/rlvol1
to find the process. Also you should check for the newest VxFS patch, I know a problem without having this patch.
If fuser didn't find the process, you have to reboot ;-(((
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:23 AM
тАО02-26-2003 03:23 AM
Re: Cant remove a logical volume
The thread for the upgrade/mirroring question looks useful, thanks.
I have a question relating to this though :
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 ?
Cheers,
Ian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:26 AM
тАО02-26-2003 03:26 AM
Re: Cant remove a logical volume
The fuser did not find anything on the raw device either unfortunately :
# fuser /dev/testvg/rlvol1
/dev/testvg/rlvol1:
#
Time to check patches and possibly reboot, I think.
Thanks for all your suggestions.
Ian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2003 03:28 AM
тАО02-26-2003 03:28 AM
Re: Cant remove a logical volume
bad luck ;-( Yes, please check for patches and reboot. Wish good luck in the future.
Regards ...
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 05:53 AM
тАО03-03-2003 05:53 AM
Re: Cant remove a logical volume
check that there isn't another LVOL created with the same major & minor number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2003 05:07 AM
тАО08-15-2003 05:07 AM
Re: Cant remove a logical volume
Try the following:
fuser -ku /dev/testvg/lvol1
This kills all process that has open files on this volume.
And then do your removal:
lvremove -f /dev/testvg/lvol1
Regards,
Jemmy Lai