Operating System - HP-UX
1829559 Members
2132 Online
109992 Solutions
New Discussion

Problem Adding logical volume to volume group mapfile

 
Andrew Kaplan
Super Advisor

Problem Adding logical volume to volume group mapfile

Hi there --

We are running a serviceguard, version 75.02, cluster, and I am in the process of adding an additional logical volume to an existing volume group that will be available on both nodes in the cluster. The logical volume in question is /dev/vg102/lvol10.

I have already gone through the motions of running the pvcreate, vgextend, lvcreate, and newfs commands. I checked the /etc/lvmconf/vg102.mapfile, and I noticed there was no reference to it.

How can I correct this problem so the logical volume can be properly mounted and also made part of the service guard package? Thanks.
A Journey In The Quest Of Knowledge
4 REPLIES 4
melvyn burnard
Honored Contributor

Re: Problem Adding logical volume to volume group mapfile

Well firstly, there is no such version of Serviceguard. do: what /usr/lbin/cmcld to determine your SG version and patch level.
Secondly, are you just adding a logical volume, or are you also adding a new PV to the VG?
You will need to recreate a mapfile using the -s and -p option, export the VG on the other nodes in the cluster, then import them using the map file, again using tyhe -s option.
If you are just creating an lv, then you can simply use mknod to replicate the lvol character and block mode device files on the other nodes.

Finally, you need to edit your package control file to add in the relevant details of the LV and FS, again replicating across all nodes

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Andrew Kaplan
Super Advisor

Re: Problem Adding logical volume to volume group mapfile

Hi there --

Thank-you for your reply. Just so we are on the same page, here is the output from the what /usr/lbin/cmcld command:

/usr/lbin/cmcld:
HP92453-02A.11.00 HP-UX SYMBOLIC DEBUGGER (END.O ILP32) $Revision: 75.02 $
Build date: Thu Mar 23 14:55:13 PST 2006
Build id: ibld_sg_a1116patch_1111_product
Build platform: hpux
Cluster Monitor Product $Revision: 82.2 $

Cluster Monitor Product Only $Revision: 82.2 $
Daemon
A.11.16.00 Date: 03/23/06 Patch: PHSS_34503

I am adding a three new pv's to the volume group. I thought that after running the lvcreate command, the mapfile would be automatically updated. I was going to export the map file using the syntax vgexport -p -m /tmp/vg102.map -v -s vg102.

What step(s) did I forget to do?
A Journey In The Quest Of Knowledge
Sharma Sanjeev
Respected Contributor

Re: Problem Adding logical volume to volume group mapfile

Hi Andrew

1. Add PV's to VG
2. Create LV
3. Create Map File using options -m -f (pv.map)
4. Copy map file to second node
5. Import that map file
6. Modify package control file with new LV information.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
melvyn burnard
Honored Contributor

Re: Problem Adding logical volume to volume group mapfile

So you are using Serviceguard A.11.16.00 with PHSS_34503.
If you have added 3 new PV's, and then created new LV's, you need to use vgexport -p -s -m mapfilename to create the mapfile, then copy this mapfile to your other nodes. Then you need to export your VG, recreate the directory and use mknod to recreate the group (control) file, then import the vg into the other nodes.
If there are new file systems, create the mount points, and theh modify your control script, and finally test that it works.
One small item to remember, when you activate the VG on the other nodes, use vgcfgbackup on each node, as this will then make sure you have the config backed up in the event of a problem
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!