1751879 Members
5247 Online
108782 Solutions
New Discussion юеВ

LVM issue in hp-ux 11.00

 
rajasekar.m
Advisor

LVM issue in hp-ux 11.00

Hi,

I am LVM issue while rescan the entire vg00.

Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument
Physical Volume "/dev/dsk/c16t1d2" contains no LVM information
Physical Volume "/dev/dsk/c16t1d3" contains no LVM information
Physical Volume "/dev/dsk/c16t1d4" contains no LVM information

vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg00 failed.



Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c16t0d0
/dev/dsk/c16t0d4
/dev/dsk/c16t0d5


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c16t0d1




Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c16t0d2
/dev/dsk/c16t0d3



Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c16t0d6
/dev/dsk/c16t0d7



Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c16t1d0
/dev/dsk/c16t1d1



Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c16t1d7
/dev/dsk/c16t2d0

The Volume Group /dev/vgbck was not matched with any Physical Volumes.
*** LVMTAB has been created successfully.
*** If PV links are configured in the system.
*** Do the following to resync information on disk.
*** #1. vgchange -a y
*** #2. lvlnboot -R
======
Also while taking backup of vg00

$ sudo vgcfgbackup /dev/vg00
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/vg00"; /etc/lvmtab has 3 disks.
Cannot proceed with backup.

Your answer is really appriciated.
4 REPLIES 4
Vijaykumar_1
Valued Contributor

Re: LVM issue in hp-ux 11.00

What operation are you doing with VG00..Replacing a disk ?

Make sure the PV is not used by any other VG.

Check the o/p of vgdisplay command.The no. of pv's displayed..

You can even remove the /etc/lvmtba file and recreate it with vgscan, provided your VG consists of the right disks to add..

#cp /etc/lvmtab /etc/lvmtab.bkp
#rm /etc/lvmtab
#vgscan
#vgchange -a y vg00


This should work definitely..
Sunny123_1
Esteemed Contributor

Re: LVM issue in hp-ux 11.00

Hi


Firstly take the copy of /etc/lvmtab then delete it and then do the vgscan..



Regards
Sunny
Steven E. Protter
Exalted Contributor

Re: LVM issue in hp-ux 11.00

Shalom,

ioscan -fnCdisk
# To get a good list of disks.

vgreduce -l
# Can correct the problem with the kernel seeing 4 disks and the system 3.

If there are disks in ioscan with no lvm information pvcreate can be used to change that situation.

Note 11.00 is out of support and I'm not sure my vgreduce command option will work. You will need to check the man page.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
nightwich
Valued Contributor

Re: LVM issue in hp-ux 11.00

Hi Raj

The message:

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c16t1d7
/dev/dsk/c16t2d0

Means that you have disk that are not assign to any VG. This is no problem.

The message:
$ sudo vgcfgbackup /dev/vg00
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/vg00"; /etc/lvmtab has 3 disks.

or vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg00 failed.

is a problem.

Post the vgdisplay -v vg00

see if any disk in unclaimed for vg00.

vg00 is mirrored ?.


Any messages in syslog about the disks ?.

Regards.