- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: Delete a Volume Group without disk
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
08-13-2012 02:56 PM
08-13-2012 02:56 PM
Hi How can I delete Volume Group that has no disk, when I run a "vgscan -a" i get this error:
server:/# vgscan -a
vgscan: The physical volume "/dev/dsk/c1t0d0s2" is already recorded in the "/etc/lvmtab" file.
The Volume Group /dev/vgtmp was not matched with any Physical Volumes.
Couldn't stat physical volume "/dev/dsk/c5t0d2":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c7t0d2":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c0t0d2":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c3t0d2":
Invalid argument
=====================
So the problem is with this VG: "/dev/vgtmp", and with this PV: /dev/dsk/c5t0d2, dev/dsk/c7t0d2,/dev/dsk/c0t0d2,/dev/dsk/c3t0d2
Now if I execute an ioscan i Get this NO_HW:
server:/# ioscan -fnC disk | grep -i no_hw
disk 5 0/4/0/0/0/0.3.0.0.0.0.2 sdisk NO_HW DEVICE HP HSV200
/dev/dsk/c5t0d2 /dev/rdsk/c5t0d2
disk 6 0/4/0/0/0/0.3.1.0.0.0.2 sdisk NO_HW DEVICE HP HSV200
/dev/dsk/c7t0d2 /dev/rdsk/c7t0d2
disk 7 0/4/0/0/0/1.4.0.0.0.0.2 sdisk NO_HW DEVICE HP HSV200
/dev/dsk/c0t0d2 /dev/rdsk/c0t0d2
disk 8 0/4/0/0/0/1.4.1.0.0.0.2 sdisk NO_HW DEVICE HP HSV200
/dev/dsk/c3t0d2 /dev/rdsk/c3t0d2
=====ioscan -m dsf
/dev/rdisk/disk211 /dev/rdsk/c5t0d2
/dev/rdsk/c7t0d2
/dev/rdsk/c0t0d2
/dev/rdsk/c3t0d2
I tried with these:
server:/# vgchange -a n /dev/vgtmp
vgchange: Volume group "/dev/vgtmp" does not exist in the "/etc/lvmtab" file.
vgchange: Volume group "/dev/vgtmp" does not exist in the "/etc/lvmtab_p" file.
server:/# vgremove /dev/vgtmp
vgremove: Volume group "/dev/vgtmp" does not exist in the "/etc/lvmtab" file.
vgremove: Volume group "/dev/vgtmp" does not exist in the "/etc/lvmtab_p" file
but dont work because the VG are not in "/etc/lvmtab"
Best Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-13-2012 06:01 PM
08-13-2012 06:01 PM
Re: Delete a Volume Group without disk
Try vgexport rather than vgremove.
Bill Hassell, sysadmin
- Tags:
- vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-13-2012 06:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-14-2012 07:26 AM
08-14-2012 07:26 AM
Re: Delete a Volume Group without disk
Hi, I execute "vgexport /dev/vgtmp" but didn't work , then I did " rm -r /dev/vgtmp" and execute the vgscan -v and the message "The Volume Group /dev/vgtmp was not matched with any Physical Volumes." has disappear, but the messages: Couldn't stat physical volume "/dev/dsk/c5t0d2".etc.. still showed..
Then I executed a rmsf -H <hw_path> on each disk that showed "NO_HW" in the ioscan -fnC disk:
e.g:
server:/# rmsf -H 0/4/0/0/0/0.3.0.0.0.0.2
server:/# rmsf -H 0/4/0/0/0/0.3.1.0.0.0.2
server:/# rmsf -H 0/4/0/0/0/1.4.0.0.0.0.2
server:/# rmsf -H 0/4/0/0/0/1.4.1.0.0.0.2
and finally execute the "vgscan -v and everything looks ok now
srver/# vgscan -v
vgscan: The physical volume "/dev/dsk/c1t0d0s2" is already recorded in the "/etc/lvmtab" file.
/dev/vgoracle
/dev/disk/disk115
/dev/vgprdap01
/dev/disk/disk116
/dev/vg00
/dev/dsk/c1t0d0s2
Scan of Physical Volumes Complete.
Scan of Physical Volumes Complete.
server:/
Thank you guys for you great help.
Best Regards
Juan Carlos Barrios
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP