Operating System - HP-UX
1834752 Members
2837 Online
110070 Solutions
New Discussion

missing volume groups and the file systems are mounted

 
SOLVED
Go to solution
Shawn Miller_2
Frequent Advisor

missing volume groups and the file systems are mounted

My lvmtab became corrupted. I made a backup, removed it, and then ran vgscan -v. This cleared up some things but now I have other problems. For example I have some file systems mounted to logical volumes that are part of vg_l01. If you do a vgdisplay, you will be advised it does not exist in lvmtab. If you run vgdisplay, you will get a bunch of warnings such as : couldn't query all of the physical volumes, coulnt't query physical volume "/dev/dsk/c18t1d4". That device happens to correspond to what I would expect vg_l01 to be associated with. There are others as well.

I have the mapfiles so can I import that volume group again to the particular physical device. Keep in mind if you do a bdf the volume group is already there and the file systems are mounted and currently being used. I do not want to be disruptive.
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: missing volume groups and the file systems are mounted

Since you have a maps file the proper course of action is vgimport.'

If memory serves you can probably get away with doing that with the filesystems mounted.

Though I'm sure you know this, this is a pretty high priority issue because those filesystems won't mount at next boot until this is fixec.

Also, make sure all your disks are present and accoutned for. My weapon of choice is cstm or mstm or xstm.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Shawn Miller_2
Frequent Advisor

Re: missing volume groups and the file systems are mounted

Any other method would be appreciated. Right now I can not import since the volume group will show active. Even though it is not in lvmtab. Of course I could umount all the file systems, deactivate, and then try and re-import (or at the least export and import back). However, I was looking at a solution that could be done while the volume group is active and the file systems are mounted and actively being used.
Geoff Wild
Honored Contributor

Re: missing volume groups and the file systems are mounted

Have a look at vgcfgrestore

Methinks you will need to un mount...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Simeon Harwood
Regular Advisor

Re: missing volume groups and the file systems are mounted

You might have a bad disk, try:-
ioscan -fnC disk |grep -i ctd
(where X are the numbers for that disk)
then
diskkinfo /dev/rdsk/ctd
also
pvdisplay /dev/dsk/ctd

If you get any errors, then it might be a bad disk.
You never had this problem with a pencil and paper!
Andrew Fong
Advisor

Re: missing volume groups and the file systems are mounted

Sorry to say that you will not be able to run vgimport without vg_101 deactivated. I would suggest that you take a backup of all FS on vg_101 before running the vgexport and vgimport to correct the lvmtab problem.

Rgds..Andrew
How are you ?