Operating System - HP-UX
1831213 Members
2752 Online
110021 Solutions
New Discussion

Import VG to Second System in Cluster.

 
Mousa55
Super Advisor

Import VG to Second System in Cluster.

Hi All,

I'm trying to implement the cluster on two node and when i import one volume group to second system, with using this command
#vgexport -v -p -s -m /tmp/vg01.mapfile /dev/vg01
this message is appeared
Beginning the export process on Volume Group "/dev/vg01".
vgexport: Volume group "/dev/vg01" is still active.
/dev/dsk/c8t0d1
/dev/dsk/c8t0d2
/dev/dsk/c9t0d1
/dev/dsk/c9t0d2
/dev/dsk/c10t0d1
/dev/dsk/c10t0d2
/dev/dsk/c11t0d1
/dev/dsk/c11t0d2
and i am opening this map file and i see only this output
VGID cb5030c94a0a5620
1 lvol1
and then i complete the steps to import this VG
and on second system i am execute this command, But there is a problem
# vgimport -v -s -m /tmp/vg01.mapfile /dev/vg01
Beginning the import process on Volume Group "/dev/vg01".
Couldn't access the list of physical volumes for volume group "/dev/vg01".

How to solve this problem to make this VG shared between two system, to complete the cluster configuration.

Thanks & kind Regards
10 REPLIES 10
likid0
Honored Contributor

Re: Import VG to Second System in Cluster.

On your second system where you are importing the disks, you should check if you are seeing all the disks, looks like you have some disk missing.

check that on node2 all these disks are available:

/dev/dsk/c8t0d1
/dev/dsk/c8t0d2
/dev/dsk/c9t0d1
/dev/dsk/c9t0d2
/dev/dsk/c10t0d1
/dev/dsk/c10t0d2
/dev/dsk/c11t0d1
/dev/dsk/c11t0d2
Windows?, no thanks
Ganesan R
Honored Contributor

Re: Import VG to Second System in Cluster.

Hi Nejad,

The steps you followed are correct. The message says that from the second node LVM could not access all the disks which were imported from the first node.

You should make sure that those luns are also presented to second node and you are able to see all the disks through ioscan from second node. run ioscan -fn and insf -e once on second node if the luns are recently presented.
Best wishes,

Ganesh.
Mousa55
Super Advisor

Re: Import VG to Second System in Cluster.

Hi All,

How he wants me to check the seconde node if all node are availabe or no, and From the outset, there is a problem when Executing this command in firs node
#vgexport -v -p -s -m /tmp/vg01.mapfile /dev/vg01
this message is appeared
Beginning the export process on Volume Group "/dev/vg01".
and this message is appeared. say the vg01 is still active For that the map file is not include these disk
vgexport: Volume group "/dev/vg01" is still active.
/dev/dsk/c8t0d1
/dev/dsk/c8t0d2
/dev/dsk/c9t0d1
/dev/dsk/c9t0d2
/dev/dsk/c10t0d1
/dev/dsk/c10t0d2
/dev/dsk/c11t0d1
/dev/dsk/c11t0d2

thanks
Sunny123_1
Esteemed Contributor

Re: Import VG to Second System in Cluster.

Hi Nejad
vgexport: Volume group "/dev/vg01" is still active it is not the problem it just shows that vg01 is still active and that is no problem.Be sure that your second node has all disks.I think the second node has missing some LUNS.
Mousa55
Super Advisor

Re: Import VG to Second System in Cluster.

Hi All,

thanks for all, my problem it is solved.
i present the disk on the second node from EVA storage.
thanks.

and now still to create a mount point with same name in first node and execute this command
#vgchange -a r vg01
why set the vg01 to read only on second node.

thanks
Ganesan R
Honored Contributor

Re: Import VG to Second System in Cluster.

Hi,

>>and now still to create a mount point with same name in first node and execute this command
#vgchange -a r vg01
why set the vg01 to read only on second node.
<<

You don't need to mount the vg on second node to create the mount points same as in first node.

Just create the mount point direcotires using mkdir command. That is enough.
#mkdir mountpoint

Best wishes,

Ganesh.
Mousa55
Super Advisor

Re: Import VG to Second System in Cluster.

Hi All,

i know how i can to create a mount point, but the my Que. is why i need to activate the VG in read only mode by this command
#vgchange -a r vg01

why read only ??

thanks
Ganesan R
Honored Contributor

Re: Import VG to Second System in Cluster.

Hi
>>but the my Que. is why i need to activate the VG in read only mode by this command<<

We are suppose to ask the question to you. You don't need to activate the vg with readonly mode on second node at all. Only for checking the first time, some people try to activate it in read only mode.

When the VG is activated on the first node, you can test it by activate in read only mode on the second node. Because it cannot be activated in read write mode on both nodes which corrupt the data.
Best wishes,

Ganesh.
Mousa55
Super Advisor

Re: Import VG to Second System in Cluster.

Hi All,

thanks for all.
Ganesan R
Honored Contributor

Re: Import VG to Second System in Cluster.

Hi,

Please take a moment to assign points to those who have taken the time to assist you, here's how:

http://forums1.itrc.hp.com/service/forums/bizsupport/helptips.do?#33

Thanks,
Best wishes,

Ganesh.