LVM and VxVM

Re: I/O error while reading the VGDA

 
Manel Ventura
Advisor

I/O error while reading the VGDA

Hello,

I'm installing two new machines (Production and Integration environments) that will have the same volume groups that we alredy have defined in the Development environment.

To create the volume groups in the new machines, I've done the following:

Development:
vgexport -s -p -v -m /tmp/vgsap.map /dev/vgsap
vgcfgbackup -f /tmp/vgsap.conf vgsap

Integration:
vgcfgrestore -f /tmp/vgsap.conf -o /dev/rdsk/c9t0d0 /dev/rdsk/c4t0d0
vgimport -v -m /tmp/vgsap.map /dev/vgsap /dev/dsk/c4t0d0

It looks like everything goes right, but when I try to activate the volume group, I get the next message:

vgchange: Couldn't activate volume group "vgsap": I/O error while reading the VGDA.

Any help would be appreciated.
2 REPLIES 2
Bernhard Mueller
Honored Contributor

Re: I/O error while reading the VGDA

Manel,

I assume these are two machines with different (non-shared) disks?

Then you have to repeat the pvcreate, vgcreate, lvcreate, newfs, and mount/fstab stuff just like on the other machine.

If the disks are shared you do not do a vgcfgrestore but vgimport using -s.

Regards,
Bernhard
TSaliba
Trusted Contributor

Re: I/O error while reading the VGDA


hi
try the following
(Backup your system)then
1. mv /etc/lvmtab /etc/lvmtab.orig
2. vgscan -v

bye
jj