- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to remove a disk from a VG (/etc/lvmtab)?
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
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
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-24-2004 02:12 AM
02-24-2004 02:12 AM
How to remove a disk from a VG (/etc/lvmtab)?
I was configuring a new disk and adding it to a VGroup when my session got disconnected right in the midle of this process... (I know my fault for trusting the network... grrrr)
However ... now I'm stucked I can't activate the vgroup neither remove the vgroup or execute pvremove as you may see:
hp3(root):/dev # pvremove /dev/rdsk/c2t6d0
pvremove: The physical volume "/dev/rdsk/c2t6d0" belongs to volume group "/dev/vg01".
pvremove: Couldn't remove physical volume "/dev/rdsk/c2t6d0".
hp3(root):/dev # vgchange -a e /dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t6d0":
Cross-device link
vgchange: Activation mode requested for the volume group "/dev/vg01" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t6d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
hp3(root):/dev # vgremove /dev/vg0x
vgremove: Volume group not activated.
Would someone know a way to clear nicelly the entries of vg01 and c2t6d0 from /etc/lvmtab? Many thanks
Regards,
Miguel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:15 AM
02-24-2004 02:15 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
Do a vgexport /dev/vg01
then a strings /etc/lvmtab, all references to /dev/vg01 should be gone.
If that fails then you should do a vgscan.
1) mv /etc/lvmtab /etc/lvmtab.sav
2) vgscan -a
This will recreate you lvmtab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:15 AM
02-24-2004 02:15 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
# vgexport /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:16 AM
02-24-2004 02:16 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
Try moving /etc/lvmtab to /etc/lvmtab.save and running vgscan -av.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:17 AM
02-24-2004 02:17 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
Start by activating the vg01
vgchange -a y (vgchange -a e is for mc/sg disks vgchange -c y/n to activate deactivate)
then make sure the disk is not used in a lvol. ( lvdisplay command ) if so use lvreduce command
If the disk is no longer used by an lvol you can vgreduce the disk from the vg.
This is all.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:19 AM
02-24-2004 02:19 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:41 AM
02-24-2004 02:41 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
the vgexport worked and the lvmtab is now cleared from vg01 and c2t6d0 entries
The vg01 is removed however when I type pvremove /dev/rdsk/c2t6d0 I get the following:
hp3(root):/dev # pvremove /dev/rdsk/c2t6d0
pvremove: The physical volume "/dev/rdsk/c2t6d0" belongs to an exported volume group.
pvremove: Couldn't remove physical volume "/dev/rdsk/c2t6d0".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:44 AM
02-24-2004 02:44 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
In this case, I don't think you need to pvremove it - just proceed on and redefine it with pvcreate.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:45 AM
02-24-2004 02:45 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
I've restart the server ... I tried to execute pvcreate and it worked :)
problem solved :)
Many thanks to all for your useful help :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:45 AM
02-24-2004 02:45 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
That can be done on the command line or with sam.
Then destory the logical volumes with the lvremove command
then
vgreduce /dev/vg01 /dev/dsk/c1t1d0
adjust the command for the actual disk name.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2004 02:46 AM
02-24-2004 02:46 AM
Re: How to remove a disk from a VG (/etc/lvmtab)?
If all you want to do is clear the LVM structure off the disk - use pvcreate
pvcreate -f /dev/rdsk/c2t6d0
That will initialize it & allow you to create a new LVM structure on it.
BE VERY CAREFUL typing the device name - you get no 2nd chance IF you direct this to the wrong device.
HTH,
Jeff