1753785 Members
7637 Online
108799 Solutions
New Discussion юеВ

Missing volume groups

 
SOLVED
Go to solution
TMcB
Super Advisor

Missing volume groups

Hi folks

My server crashed and upon reboot it appears some of the volume groups are missing (spanning different disks).

I tried renaming lvmtab and running vgscan -v.
It listed the missing volume groups as "The volume group /dev/vgxx/group was not matched with any Physical Volumes."

Any help is greatly appreciated
3 REPLIES 3
Rainer von Bongartz
Honored Contributor

Re: Missing volume groups


Terry,

seems to me your volume groups are not activated. You have to activate VG's at boot time in /etc/lvmrc.
Put your VG in there; reboot and you will see your missing groups.

to activate the VG not permanently at boot time issue the command
vgchange -a /dev/vgxx

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
TMcB
Super Advisor

Re: Missing volume groups

Thanks for your help
I was able to get it sorted.
Bill McNAMARA_1
Honored Contributor
Solution

Re: Missing volume groups

Move back your lvmtab to the original position or else the vgchange won't work.

vgchange -a y vgname

ll /etc/lvmconf/
and look for vgname.conf

vgcfgrestore -n /dev/vgname -l
to list what pvs are associated to the vgname and recorded in the /etc/lvmconf/vgname.conf

strings /etc/lvmtab to verify they are the same

From the device file for the vgname pv
issue and ioscan -fnkCdisk
and verify that the device for the PV is showing up as CLAIMED.
If it is not there, the hardware has probably failed and you should interrogate via ioscan -fnk exactly what has gone missing.
If it is claimed, the h/w has not failed and you probably have a vg not activating for some reason or other.. /etc/lvmrc customised activation is one reason.

vgchange -a y vgname
will manually activate.
Note any warnings.

Quorum errors mean that less than 51% of the disks are available in the vg, you can force activation to see what remains with
vgchange -a y -q n vgname
vgdisplay -v vgname

vgdisplay -v vgname will give you much information about the health of the vg, once it activates that is.

Have a look in your
/etc/shutdownlog
and
/var/adm/syslog/syslog.log
and OLDsyslog to see what happened prior to and after shutdown.

Later,
Bill
It works for me (tm)