1848080 Members
7912 Online
104022 Solutions
New Discussion

Re: Problem with LVM

 
Daniel Duarte
Frequent Advisor

Problem with LVM

All

I have a problem to include the disk in VG00.

# vgextend /dev/vg00 /dev/dsk/c3t6d0
Volume group "/dev/vg00" has been successfully extended.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 9 disks for "/dev/vg00"; /etc/lvmtab has 8 disks.
Cannot proceed with backup.

Someone can help-me ?

Thanks
8 REPLIES 8
Jeff Schussele
Honored Contributor

Re: Problem with LVM

Hi Daniel,

The problem, I suspect, is in the lvmtab file itself.
Move it out of /etc and run
vgscan -av

Make sure it is no longer in /etc or the vgscan command will reference it while working.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Uday_S_Ankolekar
Honored Contributor

Re: Problem with LVM

I guess you have corrupted lvmtab. Move current lvmtab from /etc and run vgscan -av to recreate new lvmtab.

-USA..
Good Luck..
HGN
Honored Contributor

Re: Problem with LVM

Hi

This looks like a corrupted lvmtab file,it is better to move to a differnt name and run vgscan -av which will create it back like other mentioned here.

Rgds

HGN
Daniel Duarte
Frequent Advisor

Re: Problem with LVM

Create lvmtab wich VGSCAN -AV

Following the command bellow

[/] # lvlnboot -R
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 9 disks for "/dev/vg00"; /etc/lvmtab has 8 disks.
Cannot proceed with backup.
[/] # lvlnboot -v
lvlnboot: Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t3d0 (10/0.3.0)
/dev/dsk/c3t4d0 (10/0.4.0)
/dev/dsk/c3t5d0 (10/0.5.0)
/dev/dsk/c3t6d0 (10/0.6.0) -- Boot Disk
/dev/dsk/c4t3d0 (10/8.3.0)
/dev/dsk/c4t4d0 (10/8.4.0) -- Boot Disk
/dev/dsk/c4t5d0 (10/8.5.0)
/dev/dsk/c4t6d0 (10/8.6.0)
Boot: lvol1 on: /dev/dsk/c4t4d0
Root: lvol3 on: /dev/dsk/c4t4d0
Swap: lvol2 on: /dev/dsk/c4t4d0
Dump: lvol7 on: /dev/dsk/c3t5d0, 0

Daniel Duarte
Frequent Advisor

Re: Problem with LVM

The problem, I have 8 disks and no 9 disks.
Florian Heigl (new acc)
Honored Contributor

Re: Problem with LVM

If the number of disks is verified to be 8 - that means You're dead sure that all disks that ought to be available are available, then the command vgreduce -f /dev/vg00 will solve this issue. (the kernel will be told to listen to /etc/lvmtab, not to the voices in his head)

please first do
strings /etc/lvmtab and check through the list of disks, there's no easy turning back.
yesterday I stood at the edge. Today I'm one step ahead.
Dietmar Konermann
Honored Contributor

Re: Problem with LVM

Daniel,

the kernel thinks the VG has 9 PVs, but your lvmtab only contains 8. Normally vgreduduce -f vg00 should resolve this, UNLESS there are still extents allocated from the "phantom" PV.

Pls check with lvdisplay -v all your LVs and look if there are any "???" LEs listed. If this is the case then you would need to reduce them from the lvol to free these extents (using -k option).

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
T G Manikandan
Honored Contributor

Re: Problem with LVM