Hi,
I am trying to figure out how to import a mirror of a volume group to a host where the mirror is visible.
I am new to LVM. Any help will be appreciated.
The system is RedHat Enterprise Linux 3.0. The kernel is 2.4.21-4. The LVM version 1.0.3-15.
Let me explain what I am trying to do.
1. I created a volume group which consists of 2 physical volumes (2 full hard disks) and 2 logical volumes.
I created two ext3 file systems off the two logical volumes.
I mounted the two file systems. Everything was ok.
2. I created mirror disks of the two original physical volumes, which should be the exact copy of the original
two physical volumes, using our own array technology.
3. Now I want to import the volume group from the two mirror disks on the same host (The two mirror
disks are visible on the same host). I got the following error:
"vgimport -- ERROR "pv_read(): read" reading physical volume "/dev/sdbm""
Importing to a different host where the mirror disks are visible does not work either. Same error.
I have attached the vgimport output with debug option turned on at the end of this email.
Since the mirror disks are the exact copy of the originals, I would assume that VGDA should be copied
to the mirror disks as well. Why import does not work? Did I miss anything here?
Is there other workaround that can help me achieve this?
Thanks,
Jie
Below is the output with debug option turned on.
<1> lvm_get_iop_version -- CALLED
<22> lvm_check_special -- CALLED
<22> lvm_check_special -- LEAVING
<1> lvm_get_iop_version -- AFTER ioctl ret: 0
<1> lvm_get_iop_version -- LEAVING with ret: 10
vgimport -- locking logical volume manager
<1> lvm_lock -- CALLED
<22> lvm_check_special -- CALLED
<22> lvm_check_special -- LEAVING
<1> lvm_lock -- LEAVING with ret: 0
vgimport -- checking volume group name
<1> vg_check_name -- CALLED with VG: jlin_vg2
<22> lvm_check_chars -- CALLED with name: "jlin_vg2"
<22> lvm_check_chars -- LEAVING with ret: 0
<1> vg_check_name -- LEAVING with ret: 0
vgimport -- checking volume group "jlin_vg2" existence
<1> lvm_tab_vg_check_exist -- CALLED with vg_name: "jlin_vg2"
<22> vg_check_name -- CALLED with VG: jlin_vg2
<333> lvm_check_chars -- CALLED with name: "jlin_vg2"
<333> lvm_check_chars -- LEAVING with ret: 0
<22> vg_check_name -- LEAVING with ret: 0
<22> lvm_tab_read -- CALLED
<22> lvm_tab_read -- LEAVING with ret: 0 data: 804CA98 size: 9
<1> lvm_tab_vg_check_exist -- LEAVING with ret: 0
vgimport -- trying to read physical volumes
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/sdbm"
<1> pv_check_name -- CALLED with "/dev/sdbm"
<22> lvm_check_chars -- CALLED with name: "/dev/sdbm"
<22> lvm_check_chars -- LEAVING with ret: 0
<1> pv_check_name -- LEAVING with ret: 0
vgimport -- reading data of physical volume "/dev/sdbm" from disk
<1> pv_read -- CALLED with /dev/sdbm
<22> pv_check_name -- CALLED with "/dev/sdbm"
<333> lvm_check_chars -- CALLED with name: "/dev/sdbm"
<333> lvm_check_chars -- LEAVING with ret: 0
<22> pv_check_name -- LEAVING with ret: 0
<1> pv_read -- going to read /dev/sdbm
<1> pv_read -- LEAVING with ret: -282
<1> lvm_error -- CALLED with: -282
<1> lvm_error -- LEAVING with: "pv_read(): read"
vgimport -- ERROR "pv_read(): read" reading physical volume "/dev/sdbm"
<1> lvm_unlock -- CALLED
<1> lvm_unlock -- LEAVING with ret: 0
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/