1827738 Members
3507 Online
109969 Solutions
New Discussion

pb LVM

 
SOLVED
Go to solution
Gerald_13
Frequent Advisor

pb LVM

Hi,
I have a probleme with the lvm HP.
I have exported/imported a volume group and now I see : vgdisplay vg01
--- Volume groups ---
VG Name /dev/vg01
...
Cur PV 5
Act PV 3
....
how can I restore the 3 disks in the Cur PV ?

when I do a vgcfgbackup : vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 5 disks for "/dev/vg01"; /etc/lvmtab has 3 disks.
Cannot proceed with backup.

thanks very much for your help.
8 REPLIES 8
Bharat Katkar
Honored Contributor
Solution

Re: pb LVM

Hi
Use "vgscan -a" and update your /etc/lvmconf file.
Regards,
You need to know a lot to actually know how little you know
Gerald_13
Frequent Advisor

Re: pb LVM

hi,
it's don't work... it's same pb.
thanks
regards,
Gerald
Bharat Katkar
Honored Contributor

Re: pb LVM

Hi,
Can you post "vgdisplay -v vg01" and "strings /etc/lvmconf" output here.
Regards,
You need to know a lot to actually know how little you know
Gerald_13
Frequent Advisor

Re: pb LVM

file attached: vgdisplay -v vg01 and /etc/lvmtab
thanks
Gerald
Bharat Katkar
Honored Contributor

Re: pb LVM

Hi,
Actually "vgchange" should have worked for you !!
When did this problem occur? Were you using 5 PV (disk) for vg01 and when did it become 3 and how?

Regards,
You need to know a lot to actually know how little you know
Gerald_13
Frequent Advisor

Re: pb LVM

It's between the vgexport and the vgimport, a disk crach and after replace the disk I do the import and the vgextend with the repared disk. not good !!
Thanks very much for your help!!
regard,
Gerald
Gerald_13
Frequent Advisor

Re: pb LVM

whitch option can i do with the vgchange.
Thanks again.
Gerald
Bharat Katkar
Honored Contributor

Re: pb LVM

Hi Gerald,
Did you try "vgcfgrestore" using old vg01.conf file.

look for VG01 configuration file in /etc/lvmconf

# /usr/sbin/vgcfgrestore -n vg_name -l
This will list the information for VG01, see if it is correct ... then

# vgcfgrestore -n /dev/vg01 -o /dev/rdsk/cxtxdx /dev/rdsk/cxtxdx .. so on for all 5 PV's

This restores back the LVM information to all the PV's from conf file.

Hope that works.
Regards,

You need to know a lot to actually know how little you know