1833065 Members
2747 Online
110049 Solutions
New Discussion

lvcreate error using SAM

 
SOLVED
Go to solution
Kenn Chen
Advisor

lvcreate error using SAM

I have fresh install my OS and get below error when i create new LV and VG in SAM.

The command used to create logical volumes, /sbin/lvcreate, has ^ ?? ??
?? ???? failed. The stderr output from the command is shown below. The ?? ??
?????????? logical volume has not been created. ??????????
?? ???? ?? ????
?? ???? lvcreate: Warning: couldn't query physical volume ?? ????
?? C???? "/dev/dsk/disk_query": ?? ????
?? ???? Block device required ?? ????
?? ???? lvcreate: Warning: couldn't query all of the physical volumes. ?? ????
?? ???? vgcfgbackup: Warning: couldn't query physical volume ?? ????
?? ???? "/dev/dsk/disk_query": ?? ????
?? ???? Block device required ?? ????
?????????? vgcfgbackup: Warning: couldn't query all of the physical volumes. ??????????
?? [???? vgcfgbackup: Couldn't query physical volume "/dev/dsk/disk_query": ?? ????
?????????? Block device required ??????????
???? ???? vgcfgbackup: /etc/lvmtab is out of date with the running ?? ??
???? ???? kernel:Kernel indicates 2 disks for "/dev/vg01"; /etc/lvmtab has 3 ?? ??
???? ???? disks.
Cyber Zen
4 REPLIES 4
Jerome Baron
Respected Contributor
Solution

Re: lvcreate error using SAM

Hi,

Have you the last sam and LVM patches ?
Does the command line work ?

For your problem with lvmtab you can move /etc/lvmtab to lvmtab.old and recreate it
by vgscan.

Regards,
Jerome
Jean-Louis Phelix
Honored Contributor

Re: lvcreate error using SAM

Hello,

First try a vgreduce -f vg01

Regards,

Jean-Louis.
It works for me (© Bill McNAMARA ...)
T G Manikandan
Honored Contributor

Re: lvcreate error using SAM

First do a
vgdisplay -v /dev/vg01
to find out the
value of CurPV and Act PV
If the value differ then you have to do a

vgreduce -f /dev/vg01
to reduce the missing physical volumes.

Else just move your /etc/lvmtab file and do a vgscan
to create a new /etc/lvmtab file.
Also do a ioscan and check whether all the disks are in the CLAIMED state.


Thanks
Hamdy Al-Sebaey
Regular Advisor

Re: lvcreate error using SAM

I think that your lvmtab corrupt is, so you need to rename lvmtab to lvmtab.old en then vgscan to create a new one, just read man vgscan.
Regards,
Hamdy
Thanks for sharing knowledge