Operating System - HP-UX
1834645 Members
2872 Online
110069 Solutions
New Discussion

Re: /etc/lvmtab and kernel do not agree

 
Alan Riggs
Honored Contributor

Re: /etc/lvmtab and kernel do not agree

Well -- considering the lack of process indicated it is possible that the lvol entries still exist in /dev/vg30/. Have you checked? Sometimes you get lucky relying on the bad habits of those who came before.
Rick Garland
Honored Contributor

Re: /etc/lvmtab and kernel do not agree

Done that - can't find the additional lvol that were a part of the VG. The vgdisplay says that there are 14 total even though 10 are open. If I use the -v switch, only 10 lvols show up. Know where else I can find this information - vgdisplay is not showing it.
Dave Wherry
Esteemed Contributor

Re: /etc/lvmtab and kernel do not agree

Rick,
I agree with most everything that has been posted here. vgreduce and exports and imports and all should have worked. I had the same problem and they did not work for me either.
More specifically my problem related to alternate links. When I tried to add an alternate link with vgextend, it did not get recognized as a link, rather it showed up as another disk. Therefore I had the difference between physical disks and what lvmtab thought I had. I worked with HP on this for days and we could not find a solution. Here's what worked and I don't know why.
If you have any more unused disks, add them to the volume group. Then, if you have MirrorDisk, mirror all of your logical volumes to the new disks. Then reduce the mirrors from the old disks. Then do a vgreduce to remove the old disks and I think everything will clear up.
I then added the old disks back into the volume group. Mirrored back to those disks, reduced the mirrors from the new disks and vgreduced the new drives out. I was back to normal. I have no idea why it worked, but, it did.
Victor BERRIDGE
Honored Contributor

Re: /etc/lvmtab and kernel do not agree

I agree with Dave,
As I mentionned previously, well ok I put down alternate path instead of link, and the same: instead of a link it showed up another disk...I believe Dave understood me, since I was in a new config situation I had no valuable data to save yet nor mirror-ux. The one thing Im sure of is you have to remove ALL the old disks to clear up (vgreduce...) and put everything back again.
Regards
Victor
Rick Garland
Honored Contributor

Re: /etc/lvmtab and kernel do not agree

It is reassuring that I am not the only one who has encountered this problem. Not that I wish it on anybody but having voices from experience helps a lot.

Gonna be trying these suggestions over the weekend. After the full backup is completed.

Again, many thanks. I will assign points when I get the issue resolved and know what the cure was.