Operating System - HP-UX
1756033 Members
3968 Online
108839 Solutions
New Discussion юеВ

vgscan doesn't update lvmtab correctly

 
SOLVED
Go to solution
Tim Leong_1
Advisor

vgscan doesn't update lvmtab correctly

When I remove the current lvmtab and run vgscan -av, the new lvmtab doesn't show any information about vg00, which contains my root filesystem.

Is there anyway that I can update the lvmtab file to contain data about vg00?
19 REPLIES 19
Sanjay_6
Honored Contributor

Re: vgscan doesn't update lvmtab correctly

Hi Tim,

Do you have Service Guard on the system ?

Regds
Tim Leong_1
Advisor

Re: vgscan doesn't update lvmtab correctly

No, I don't.
Jeff Schussele
Honored Contributor

Re: vgscan doesn't update lvmtab correctly

Hi Tim,

Could it be possible that the system was brought up in LVM maintenance mode & then not rebooted but instead init 3 was run?
If that's the case /dev/vg00 could be designated as /dev/root instead.
Is /dev/root listed in lvmtab now?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sanjay_6
Honored Contributor
Solution

Re: vgscan doesn't update lvmtab correctly

Do a ll in /dev and see if there is a device file with the same minor no as /dev/vg00/group. Also do a ll /dev/*/group to see that there are no duplicate groups with the same minor number,

ll /dev |grep "0x000000"
ll /dev/*/group

Hope this helps.

Regds
Tim Leong_1
Advisor

Re: vgscan doesn't update lvmtab correctly

Jeff,
There is no /dev/root entry in lvmtab. But root is mounted from /dev/root.

Sanjay,
Lots of the same minor numbers in /dev, no same major numbers though. All of the group files have different minor numbers.
Sanjay_6
Honored Contributor

Re: vgscan doesn't update lvmtab correctly

Hi Tim,

Try this,

cd /dev
ll |grep "0x000000" |grep "64"

Hope this helps.

Regds
Tim Leong_1
Advisor

Re: vgscan doesn't update lvmtab correctly

Returns nothing...
Sanjay_6
Honored Contributor

Re: vgscan doesn't update lvmtab correctly

Hi,

Can you post your bdf output ?.

Regds
Tim Leong_1
Advisor

Re: vgscan doesn't update lvmtab correctly

/dev/root 143360 92469 48118 66% /
/dev/vg00/lvol1 83733 43404 31955 58% /stand
/dev/vg00/lvol7 1048576 169928 831122 17% /var
/dev/vg00/lvol6 1048576 954265 90692 91% /usr
/dev/vg00/lvol5 524288 16965 476092 3% /tmp
/dev/vg00/lvol4 1548288 1338397 196780 87% /opt
/dev/vg04/lvol 87947160 56113656 23038784 71% /disk3
/dev/vg03/lvol 87947160 59156088 19996352 75% /disk2
/dev/vg02/lvol 8847360 7304150 1496146 83% /apps