Operating System - HP-UX
1838554 Members
3251 Online
110127 Solutions
New Discussion

Re: problrm in sharing volume group

 
chethan
Occasional Advisor

problrm in sharing volume group

am going to setup a serviceguard using 2 nodes,one with 2 harddisks(primary) and another with 1 HD(secondary). I am going to share 1 HD in primary with secondary. am following the procedure below: while importing the mapfile info its giving problem, let me know does this scenario work? otherwise let me know other methods of setting up serviceguard:

all other steps work fine only problem with 15th step.

On the primary node (draw2), create the shared volume as follow:

1. mkdir /dev/vg01

2. mknod /dev/vg01/group c 64 0x010000

3. pvcreate –f /dev/rdsk/c4t0d0----pending

4. vgcreate /dev/vg01 /dev/dsk/c4t0d0

5. lvcreate –m 1 –l 586 –n hpsimsg /dev/vg01
note: using all elements from one LU in creating the logical volume hpsimsg with mirroring

6. newfs –F vxfs /dev/vg01/rhpsimsg
note: creating new file system on new logical volume

7. mkdir /hpsimsg
create new mount point

8. mount –F vxfs /dev/vg01/hpsimsg /hpsimsg

9. vgexport –v –p –s –m /etc/lvmconf/vg01.mapfile /dev/vg01

10. Copy the LVM map file for the volume group to the secondary or standby machine to the location /etc/lvmconf/vg01.mapfile.

rcp /etc/lvmconf/vg01.mapfile draw3:/etc/lvmconf/vg01.mapfile

11. Modify /etc/lvmrc and set AUTO_VG_ACTIVATE to 0

12. umount /hpsimsg

On the secondary or standby node (draw3), do the following:

13. mkdir /dev/vg01

14. mknod /dev/vg01/group c 64 0x010000

15. vgimport –v –s –m /etc/lvmconf/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".

2 REPLIES 2
Sandy Chen
Honored Contributor

Re: problrm in sharing volume group

Hi,

Can you show us ioscan -fnC disk for both servers?

regards,
Sandy
I never think of the future. It comes soon enough.
Mridul Shrivastava
Honored Contributor

Re: problrm in sharing volume group

The disk you are using for vg01 should be accessible by both the nodes and must be on a shared storage....
Time has a wonderful way of weeding out the trivial