Operating System - HP-UX
1838678 Members
3709 Online
110128 Solutions
New Discussion

Re: Issue with /etc/lvmtab

 
OLIVA_1
Regular Advisor

Issue with /etc/lvmtab

Hello,

When I launch this command : vgdisplay -v | more

All my VGs configuration are displayed but I have this error :

vgdisplay: Volume group "/dev" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/".

I have try to rebuild /etc/lvmtab file but this action remove /dev/vg00 from /etc/lvmtab...

My current /etc/lvmtab :
#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/vgp30arch
/dev/dsk/c7t13d0
/dev/vgp30data
/dev/dsk/c7t8d0
/dev/dsk/c7t9d0
/dev/dsk/c7t10d0
/dev/dsk/c7t11d0
/dev/dsk/c7t12d0

/etc/lvmtab after vgscan -av command :
#strings /etc/lvmtab
/dev/
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/vgp30arch
/dev/dsk/c7t13d0
/dev/vgp30data
/dev/dsk/c7t8d0
/dev/dsk/c7t9d0
/dev/dsk/c7t10d0
/dev/dsk/c7t11d0
/dev/dsk/c7t12d0


vgscan command remove /dev/vg00 which exist and all /dev/vg00 LVs are mounted...

Somenone can help me to solve this isue ?

Thanks,
11 REPLIES 11
Jaime Bolanos Rojas.
Honored Contributor

Re: Issue with /etc/lvmtab

Oliva, before you run the vgscan, did you rename the /etc/lvmtab?

please run this command to see if you get any errors:

# lvlnboot -v


Regards,

jaime.
Work hard when the need comes out.
OLIVA_1
Regular Advisor

Re: Issue with /etc/lvmtab

Sure I have renamed /etc/lvmtab before performing vgscan.

lvlnboot result :

#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0

lvlnboot: Volume group "/dev" does not exist in the "/etc/lvmtab" file.
DCE
Honored Contributor

Re: Issue with /etc/lvmtab


Oliva,

Have you had a a disk from VG00 go off line, even temporarily? (there should be a SCSI error message in syslog).

If this is the case, then the easiest way I found to correct the problem (if the disk is back on line) is to reboot the server.

HTH
Dave
OLIVA_1
Regular Advisor

Re: Issue with /etc/lvmtab

No, I have just checked and I don't have any SCSI error or disks issue...
Mridul Shrivastava
Honored Contributor

Re: Issue with /etc/lvmtab

Have you checked the disk using dd command:

Try using dd for both the disk...

dd if=/dev/dsk/c1t2d0 of=/dev/null block=1024k count=10

Doesn it show any error message.

Time has a wonderful way of weeding out the trivial
Bill Hassell
Honored Contributor

Re: Issue with /etc/lvmtab

Something appears to be corrupted in /dev. Start with a check for bad files:

find /dev -type f -exec ls -lb {} \;

(there should be nothing found)
Also check for bad names in /dev:

ls -lb /dev

A bad name is one that shows up with \### in the name using the -b option. Check for links:

find /dev -type l -exec ls -lb {} \;

There will be a few links for things like:
/dev/lan /dev/snap /dev/inet_cots /dev/inet_clts /dev/dtremote

but no links to /dev/rdsk or /dev/dsk directories.


Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: Issue with /etc/lvmtab

Any output from vgscan?
Use vgscan -apv.
Do you have a group file directly in /dev?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sandman!
Honored Contributor

Re: Issue with /etc/lvmtab

See if you have a file named "/dev/slvmvg"

# ll /dev/slvmvg
OLIVA_1
Regular Advisor

Re: Issue with /etc/lvmtab

Yes I have a file named /etc/slvmvg

frrou01:(/dev)(root)# ll /dev/slvmvg
crw-rw---- 1 root root 64 0x000000 Dec 2 2002 /dev/slvmvg
frrou01:(/dev)(root)#
Torsten.
Acclaimed Contributor

Re: Issue with /etc/lvmtab

Same problem in this thread:

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

Looks like you need to install the latest LVM patches from http://www.itrc.com

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sandman!
Honored Contributor

Re: Issue with /etc/lvmtab

> frrou01:(/dev)(root)# ll /dev/slvmvg
> crw-rw---- 1 root root 64 0x000000 Dec 2 2002 /dev/slvmvg

This file shares the same minor number, 0x000000, as vg00 hence the error in /etc/lvmtab. When the timestamp of /dev/slvmvg is older than /dev/vg00, the error you're talking about occurs.

You can "touch" /dev/slvmvg updating its timestamp to be newer than /dev/vg00.
OR
Remove /dev/slvmvg since MC/SG will recreate it as the node joins the cluster.

To fix this error permanently you need to apply one of the patches listed below (depending on whether your system is 11.0 or 11i):

PHCO_24437 - 11.00 LVM commands cumulative patch
PHCO_24809 - 11.11 LVM commands cumulative patch

http://www1.itrc.hp.com/service/patch/mainPage.do

~hope it helps