- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remove 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
Forums
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
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
тАО11-25-2002 04:35 AM
тАО11-25-2002 04:35 AM
Remove logical volume
How can i remove logical volume if the disk has been removed.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 09:57 AM
тАО11-25-2002 09:57 AM
Re: Remove logical volume
I am assuming you mean you want to remove any/all system information for a LV that resided on a disk that has been removed. I had a similar issue when I created vg01 with lvol1 on a non-root disk. After removing/replacing the disk, the system complained that it couldn't find any information about vg01/lvol1, and if I attempted to remove it via SAM, it failed too. I was successful in manually editing the lvmconf files, and the device files, such that SAM was able to recreate a new volume group/logical volume.
Under /etc/lvmconf there are configuration files for volume groups and logical volumes on the system. You can remove all information pertaining to your removed LV, also, check the /device files for that particular LV (/dev/vg01/lvol1, for example).
Be sure to check /etc/fstab and update accordingly.
Good luck,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 10:15 AM
тАО11-25-2002 10:15 AM
Re: Remove logical volume
HTH
MArty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 10:22 AM
тАО11-25-2002 10:22 AM
Re: Remove logical volume
Have you replaced a mirrored disk?
What is the output of
lvdisplay -kv /dev/vg##/lvol# (pick an lvol you want to remove)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 12:21 PM
тАО11-25-2002 12:21 PM
Re: Remove logical volume
if you do
lvdisplay -kv /dev/vg00/lvol1
for each lvol you want to remove (substitute your values, of course), you'll see something like
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t2d0 25 25
/dev/dsk/c2t2d0 25 25
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
0000 0 0000 current 1 0000 current
0001 0 0001 current 1 0001 current
and so on. (This assumes mirroring - otherwise you should just have 1 PV)
Check the PV# -- NOT the PE#
Repeat the lvdisplay for all lvols in question, and be sure they're all on the same PV# (they should be).
This example is from a good box - you should see stale, or some other error.
If status is stale (or you're sure of the one to remove), you can
lvreduce -k PV# -m 0 /dev/vg##/lvol# for each lvol.
You may also need to
vgreduce -f /dev/vg## (if vgdisplay still "sees" the removed disk)
and if you swapped (not just removed a disk), you can
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v ----- recreate lvmtab.
# vgchange -a y
# ll /etc/lvmtab ------ make sure the date is current.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 05:22 AM
тАО11-27-2002 05:22 AM
Re: Remove logical volume
I don't have a mirror. I had a disk with one volume group vg02, na logical volume lvol1. I've remove disk from machine, and now i can't remove vg02 and lvol1.
Can You help me?
Rgds.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 05:25 AM
тАО11-27-2002 05:25 AM
Re: Remove logical volume
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 05:58 AM
тАО11-27-2002 05:58 AM
Re: Remove logical volume
Isn't this really the same question/problem you started in this thread?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x86993a1c04ffd61190050090279cd0f9,00.html
If so, see my suggestion there.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 06:02 AM
тАО11-27-2002 06:02 AM
Re: Remove logical volume
vgexport vg02
Volume group "vg02" is still active.
vgexport: Couldn't export volume group "vg02".
But when i tried:
vgchange -s n vg02
and then
vgexport vg02
and it launched
Thanks for help.
Best regards.