- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remove a ghost disc from a vg
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
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
03-13-2003 07:52 AM
03-13-2003 07:52 AM
the vg has two discs. one is the mirror of the other. good disc is c1t6d0. bad disc is c1t4d0.
I'm following the instruction for removing a ghost disc from the hp-ux software recovery handbook vers. 7.2
I've been able to reduce all of the lvols just fine using the lvreduce -k option.
but when i do a vgreduce -f /dev/vg01 i get:
vgreduce: Couldn't query physical volume /dev/dsk/c1t4d0
the specified path does not corespond to physical vloume attached to the volume group
then the prompt returns. I don't get the rest of the suggested output:
pv with key 0 (for my disc it is 1) sucessfully deleted from vg vg01
...etc
a vgdisplay still shows the ghost disc.
should I proceed with updating lvmtab and the vg01.conf files or is some other action called for before doing so?
my latest lvm cumlative patch is PHCO_24437 and the OS is 11.0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 07:59 AM
03-13-2003 07:59 AM
Re: remove a ghost disc from a vg
Yes, just mv or rm /etc/lvmtab & run
vgscan -av
To recreate the lvmtab file.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 08:00 AM
03-13-2003 08:00 AM
Re: remove a ghost disc from a vg
All you should have to do now is rebuild the lvmtab.
# mv /etc/lvmtab /etc/lvmtab.safe
# vgscan -a -p -v (optional step to ensure it would build what you would expect)
# vgscan -a -v
I think this backs up the VG configuration but you can run vgcfgbackup manually if not.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 08:18 AM
03-13-2003 08:18 AM
Re: remove a ghost disc from a vg
when i do a vgcfgbackup i get:
lvmtab is out of date with the running kernel
kernel indicates 2 disks and lvmtab has 1.
cannot proceed with backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 08:48 AM
03-13-2003 08:48 AM
Re: remove a ghost disc from a vg
# vgchange -a n /dev/vg01
# vgexport -m /tmp/vg01map /dev/vg01
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x0x0000
==> minor number 0x0000 must be unique.
# vgimport -m /tmp/vg01map /dev/vg01 /dev/dsk/c1t6d0
Befrore you do all the above take note of the minor number because we want to re-use the same minor number during the mknod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 09:28 AM
03-13-2003 09:28 AM
Re: remove a ghost disc from a vg
warning: volume group belongs to a different cpu id
can dtermine if volume group is in use another system
continuing
warning: volume groupcontains 2 pv, 1 specified continuing
etc.
vgdisplay still shows a ghost disc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 09:35 AM
03-13-2003 09:35 AM
Re: remove a ghost disc from a vg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 09:39 AM
03-13-2003 09:39 AM
Re: remove a ghost disc from a vg
You may have to put a new disk in the slot of the bad one, vgcfgrestore to it and vgreduce it from the volume group.
Normally if you get a disk failure you would replace the disk, run a vgcfgrestore and vgsync which will sync all the mirrors again. Still, what you are doing is supported and the steps you have taken are correct so this shouldn't be causing you these problems.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 09:39 AM
03-13-2003 09:39 AM
Re: remove a ghost disc from a vg
Can you post these ..
# strings /etc/lvmtab
# vgdisplay -v vg01
For each og the lv in vg01..
# lvdisplay -v /dev/vg01/lvolX
At least the first 30 lines from that output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 09:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 09:49 AM
03-13-2003 09:49 AM
Re: remove a ghost disc from a vg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 10:05 AM
03-13-2003 10:05 AM
Re: remove a ghost disc from a vg
following though with recreating lvmtab with vgscan and vgcfgbackup has saved the new configuration. and vgdisplay no longer shows a ghost disc