HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error in removing volume group.
Operating System - HP-UX
1837920
Members
5488
Online
110124
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-12-2006 10:57 PM
11-12-2006 10:57 PM
Error in removing volume group.
Hi
I accidently removed a volume group directory and group file without first doing a vgremove /dev/vg05. Now I cant do anything with this disk because the /etc/lvmtab is saying it is still recorded there.
How can I remove this disk in the lvmtab cleanly so that I can reuse it elsewhere.
Kind Regards
Debbie
I accidently removed a volume group directory and group file without first doing a vgremove /dev/vg05. Now I cant do anything with this disk because the /etc/lvmtab is saying it is still recorded there.
How can I remove this disk in the lvmtab cleanly so that I can reuse it elsewhere.
Kind Regards
Debbie
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 11:06 PM
11-12-2006 11:06 PM
Re: Error in removing volume group.
Debbie,
have you looked at:
"man vgexport"
"man vgscan"
Read all the info first, before attempting corrective action.
have you looked at:
"man vgexport"
"man vgscan"
Read all the info first, before attempting corrective action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 11:33 PM
11-12-2006 11:33 PM
Re: Error in removing volume group.
Hello Debbie!
You can recover from this sitution by the below steps:
1) First you rename your existing /etc/lvmtab file to old file
# mv /etc/lvmtab /etc/lvmtab.old
2) Next we will recreate the /etc/lvmtab by vgscan -a command
#vgscan -a
This command will recreate the /etc/lvmtab by scanning all disks in your system for LVM VG's & match with group device files in /dev directory.
3) THe VG's whose group file was deleted will not be included in NEW /etc/lvmtab file.
For this you will get a message like below
"Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c......
/dev/dsk/c......"
4) you can import the VG as below
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport /dev/vg01 /dev/dsk/c...... /dev/dsk/c......
I hope this should solve your problem.
Thanks n Regards,
Nishith.
You can recover from this sitution by the below steps:
1) First you rename your existing /etc/lvmtab file to old file
# mv /etc/lvmtab /etc/lvmtab.old
2) Next we will recreate the /etc/lvmtab by vgscan -a command
#vgscan -a
This command will recreate the /etc/lvmtab by scanning all disks in your system for LVM VG's & match with group device files in /dev directory.
3) THe VG's whose group file was deleted will not be included in NEW /etc/lvmtab file.
For this you will get a message like below
"Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c......
/dev/dsk/c......"
4) you can import the VG as below
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport /dev/vg01 /dev/dsk/c...... /dev/dsk/c......
I hope this should solve your problem.
Thanks n Regards,
Nishith.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP