Operating System - HP-UX
1752637 Members
6001 Online
108788 Solutions
New Discussion юеВ

Re: getting error in vgimport

 
Madan Kumar
Occasional Advisor

getting error in vgimport

Hi all,

I had added disks in VG in a cluster environment, it was added successfully. But now when I try to import the vg information to adoptive node I am getting these error "# vgimport -p -v -s -m /tmp/vgxp_d01_ODSPD.map vgxp_d01_ODSPD

"Beginning the import process on Volume Group "vgxp_d01_ODSPD".
Verification of unique LVM disk id on each disk in the volume group
/dev/vgxp_d01_ODSPD failed.". Please help

thanks
madan
9 REPLIES 9
Johnson Punniyalingam
Honored Contributor

Re: getting error in vgimport

Hi Madan,

Example:-

On the other node:
1. Export the VG
>>>vgexport /dev/vgxx

2. Recreate the directory
>>>>mkdir -p /dev/vgxx

3. Recreate the VG group file
>>>mknod /dev/vgxx/group c 64 0xMM0000
where MM is a unique identifier (ex 01 for vg01)

4. Preview the vgimport to check for any possible error
>>>>vgimport -pvs -m /dev/vgxx
where mapfile is the one copied from the first node

5. If no error, remove the preview mode
>>>>vgimport -vs -m /dev/vgxx

6. Activate in share mode
>>>>vgchange -a s /dev/vgxx

Thanks,
Johnson

Problems are common to all, but attitude makes the difference
Aneesh Mohan
Honored Contributor

Re: getting error in vgimport

Hi ,

The minor number of the volume group "vgxp_d01_ODSPD" should be same on both the nodes .

Example :-

# ls -l /dev/vg01/group
crw-rw-rw- 1 root sys 64 0x010000 Nov 15 09:41 /dev/vg01/group
#

In the above volume group vg01 the minor is "0x010000" , .For proper sharing with the second node I should create a group file using "0x010000".

Thanks,
Aneesh
Madan Kumar
Occasional Advisor

Re: getting error in vgimport

Anish/Johnson, thanks for your help but I have tried all given steps still I am getting same error.

thanks
madan
Johnson Punniyalingam
Honored Contributor

Re: getting error in vgimport

can please check the "syslog.log" file for some tips,

can you see those newly add disk in you adoptive node

ioscan -fnC disk

Tks,
Johnson
Problems are common to all, but attitude makes the difference
Madan Kumar
Occasional Advisor

Re: getting error in vgimport

yes those disks are in adoptive node.
Johnson Punniyalingam
Honored Contributor

Re: getting error in vgimport

ok ,

can please post the setps you are trying to vgimport

can "hints" from Syslog

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: getting error in vgimport

>>adoptive node <<

can you compare the "lvmtab" on both primary node and adoptive Node

# strings /etc/lvmtab

looks like your lvmtab , give problem,

# cp -p /etc/lvmtab /etc/lvmtab.org


run vgscan -pva first, then if required run vgscan -a. Also backup old file first.


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Aneesh Mohan
Honored Contributor

Re: getting error in vgimport

As suggested by Johnson , first check the /etc/lvmtab consistency using vgscan ├в pva and resolve the issues before proceeding to the vgimport steps.


Sample steps:-

Node 1:-

# ls -l /dev/vg02/group
crw-rw-rw- 1 root sys 64 0x020000 Nov 29 05:30 /dev/vg02/group
# vgexport -v -s -p -f /tmp/vg02.out -m /tmp/vg02.map vg02
Beginning the export process on Volume Group "vg02".
/dev/dsk/c4t0d2
# cat /tmp/vg02.out
/dev/dsk/c4t0d2
# cat /tmp/vg02.map
VGID 30a2e08949995b37


Copy the files /tmp/vg02.out and /tmp/vg02.map to the node 2 using ftp or scp .


Node 2:-


oprtest2:root:/ =>mkdir /dev/vg02
oprtest2:root:/ =>mknod /dev/vg02/group c 64 0x020000
oprtest2:root:/ =>vgimport -v -f /tmp/vg02.out -m /tmp/vg02.map vg02
Beginning the import process on Volume Group "vg02".
Volume group "/dev/vg02" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
oprtest2:root:/ =>vgchange -a r vg02
Activated volume group
Volume group "vg02" has been successfully changed.
oprtest2:root:/ =>vgcfgbackup vg02
Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.conf
oprtest2:root:/ =>

Thanks,
Aneesh
Sharma Sanjeev
Respected Contributor

Re: getting error in vgimport

Hi Madan

You can try this also

#xd -j 8200 -N16 -tu (/dev/rdsk/c?t?d? ) do this for all disks in VG & Check if VGID is same in all disks.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE