Operating System - HP-UX
1833758 Members
2361 Online
110063 Solutions
New Discussion

invalid information in /etc/lvmtab

 
SOLVED
Go to solution
Ulrich Tehrani
Advisor

invalid information in /etc/lvmtab

Hello,

a few days ago i started to work at a new company.

First i run some scripts to get several information about the systems:

I found out that in the /etc/lvmtab there are several information about disks that don't exists on the system anynmore.

ioscan -funC disk
show different disks, also in the /etc/lvmtab

Is vgexport /dev/vg0x the best way to get rid of this information ?

Thanks in advance

Uli Tehrani
10 REPLIES 10
Ian Dennison_1
Honored Contributor

Re: invalid information in /etc/lvmtab

If the lvmtab is invalid, regenerate it.

mv /etc/lvmtab /etc/lvmtab.prev

vgscan -a -v

strings /etc/lvmtab

Share and Enjoy! Ian
Building a dumber user
Michael Steele_2
Honored Contributor

Re: invalid information in /etc/lvmtab

Use:

vgscan -a -v -p (* preview new /etc/lvmtab *)

This will list all disk that respond.

-a (* check all controllers *)

Cross reference with vgdisplay -v | grep -i pv.

Vgdisplay is the key since some disks may not be allocated. You may have unused disks that don't belong to any vg.

Once your happy :

vgscan -a -v (* will update your lvmtab *)
Support Fatherhood - Stop Family Law
Michael Duthie
Trusted Contributor

Re: invalid information in /etc/lvmtab

Uli

Do as suggested above but vgscan -p first.

This will do a preview of the command before writing a new /etc/lvmtab. Make sure it picks up all the required disks for your vgs.
Ulrich Tehrani
Advisor

Re: invalid information in /etc/lvmtab

 
James R. Ferguson
Acclaimed Contributor

Re: invalid information in /etc/lvmtab

Hi:

If you are going to recreate your '/etc/lvmtab' be sure update your boot information afterwards ('lvlnboot -R') and "rebalance" any pv_links to load-balance I/O among controllers. A primary link to a physical disk is nothing more than the *first* pv_link as defined in 'etc/lvmtab'. This order is thus dependent on the discovery order during a 'vgscan' which may or may not be what you desire.

Regards!

...JRF...
Ulrich Tehrani
Advisor

Re: invalid information in /etc/lvmtab

Is vgexport /dev/vg01 - /dev/vg04

not a good solution?


Uli
Michael Duthie
Trusted Contributor

Re: invalid information in /etc/lvmtab

Uli,

vgchange -a n vg01 to 4

vgexport vg01 to 4

should work, if it complains use the vgscan option.

Mike
Michael Duthie
Trusted Contributor
Solution

Re: invalid information in /etc/lvmtab

Uli,

vgchange -a n vg01 to 4

vgexport vg01 to 4

should work, if it complains use the vgscan option.

Mike
Ulrich Tehrani
Advisor

Re: invalid information in /etc/lvmtab

Hi Mike,

lvlnboot -v show me that the are not activated..


lvlnboot: Volume group not activated.
Cannot display volume group "/dev/vg01".
lvlnboot: Volume group not activated.
Cannot display volume group "/dev/vg02".
lvlnboot: Volume group not activated.
Cannot display volume group "/dev/vg03".
lvlnboot: Volume group not activated.
Cannot display volume group "/dev/vg04".
Current path "/dev/dsk/c8t0d1" is an alternate link, skip.
Current path "/dev/dsk/c11t0d2" is an alternate link, skip.
Current path "/dev/dsk/c8t0d3" is an alternate link, skip.

Uli
Michael Duthie
Trusted Contributor

Re: invalid information in /etc/lvmtab

Did the vgexport work ?