1833059 Members
2483 Online
110049 Solutions
New Discussion

lvmtab problems

 
SOLVED
Go to solution
Scott Dunkley
Regular Advisor

lvmtab problems

Hi all,

I am trying to do some admin on VG00 but keep getting the message that it doesnt exist in the lvmtab. I tried remiving the lvmtab and running vgscan but the entry that gets put back in the lvmtab looks like this:

/dev/
/dev/dsk/c0t5d0
/dev/dsk/c0t15d0

I would have expected it to have stated /dev/vg00. This is stopping me do lvm commands against this VG? Why would this happen and how do I rectify it?
Better to regret something you have done, than something you havn't
14 REPLIES 14
Elmar P. Kolkman
Honored Contributor

Re: lvmtab problems

Please check in /dev for a special file called group. Perhaps this has been moved from /dev/vg00 to /dev ?
Every problem has at least one solution. Only some solutions are harder to find.
Scott Dunkley
Regular Advisor

Re: lvmtab problems

firstly why would this have been moved? It hasnt anyway and if it wasnt there then the file systems would work correctly anyway would they?

crw-r----- 1 root sys 64 0x000000 Apr 6 17:34 group
Better to regret something you have done, than something you havn't
Michael Tully
Honored Contributor

Re: lvmtab problems

The output in your first posting was it?

# strings /etc/lvmtab

or something else?
What does vgdisplay -v /dev/vg00 say?
What LVM commands are you trying to do?
Does /dev/root appear in the bdf output?
Anyone for a Mutiny ?
Scott Dunkley
Regular Advisor

Re: lvmtab problems

yes the output was from a strings of the lvmtab. bdf shows:

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 86016 55890 28294 66% /
/dev/vg00/lvol1 47829 30798 12248 72% /stand
/dev/vg00/lvol8 614400 496812 111317 82% /var
/dev/vg00/lvol7 819200 541901 260014 68% /usr
/dev/vg00/lvol4 32768 6513 24672 21% /tmp
/dev/vg00/lvol6 438272 289637 139378 68% /opt
/dev/vg00/lvol5 20480 1109 18168 6% /home

If I try any lvm commands against VG00 I get the message that VG00 is not in the lvmtab.

Have tried, lvreduce, lvdisplay, vgdisplay and all return the same message.
Better to regret something you have done, than something you havn't
Shaikh Imran
Honored Contributor

Re: lvmtab problems

Hi,
Have you tried this :
rename the lvmtab file and run
#vgscan -v
and then you got this error ?

Regards
I'll sleep when i am dead.
Scott Dunkley
Regular Advisor

Re: lvmtab problems

yes I removed the lvmtab and ran vgscan and it still appears as /dev not /dev/vg00.

Admitidley I didnt use -v but thats only going to show me more output.
Better to regret something you have done, than something you havn't
Robert-Jan Goossens
Honored Contributor

Re: lvmtab problems

Hi Scott,

Could you check minor and major numbers of vg00 with this command.

# cd /dev
# find . -exec ll {} \; | grep 0x000000 | grep 64
crw-r----- 1 root sys 64 0x000000 May 18 2000 group
crw-r----- 1 root sys 64 0x000000 May 18 2000 ./vg00/group

Regards,
Robert-Jan
Scott Dunkley
Regular Advisor

Re: lvmtab problems

Hi robert,

i was thinking along the same lines and looking for a rogue group file in /dev. Couldnt find one. Anyway I have run the find command and recieved the following output:

crw-rw---- 1 root root 64 0x000000 Apr 13 1999 slvmvg
crw-rw---- 1 root root 64 0x000000 Apr 13 1999 ./slvmvg
crw-r----- 1 root sys 64 0x000000 Apr 6 17:34 group
crw-r----- 1 root sys 64 0x000000 Apr 6 17:34 ./vg00/group

This doesnt look right to me but i dont know why?
Better to regret something you have done, than something you havn't
Scott Dunkley
Regular Advisor

Re: lvmtab problems

what is slvmg?
Better to regret something you have done, than something you havn't
Robert-Jan Goossens
Honored Contributor
Solution

Re: lvmtab problems

Bingo :-)

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072837857

Document description: vg00 is missing in /etc/lvmtab
Document id: KBRC00012975

Check if you can open the above doc.

Robert-Jan

(if not drop a message)

Re: lvmtab problems

hi
maybe you did vgexport ??
Scott Dunkley
Regular Advisor

Re: lvmtab problems

Hi robert,

thanks for that, just the ticket. Makes sense as well after reading the note you posted.

i am giving it a go now. If I dont report back you can take it that it worked ok.

Cheers,

Scott.
Better to regret something you have done, than something you havn't
Pete Randall
Outstanding Contributor

Re: lvmtab problems

Scott,

The problem is that you've got duplicate minor numbers on vg00 and slvmvg. They both have 0x000000 and the first two characters after the x are the minor number. You need to track down this slvmvg and change it's minor number, probably by exporting it with vgexport, creating a new group file with a correct minor number, and then re-importing it.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: lvmtab problems

The slvmvg is from ServiceGuard:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=63637

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=36375

According to Robert-Jan's doc, it would seem that you can safely get rid of it and it will be re-created properly later on.


Pete


Pete