1834882 Members
2136 Online
110071 Solutions
New Discussion

Re: Adding LV

 
SOLVED
Go to solution
WW451512
Advisor

Adding LV

Hi All,

We have existing serviceguard in a two-node cluster with package only on one node. Everything is up and running fine.
All we need, is to add a LV to existing VG in the package.

I have got following steps, let me know if these are correct:
1. Create LV in that VG.
2. create mount point on both nodes

3. Edit package control script:
LV[1]=/dev/vg_name/lv_name; FS[1]=/mount_pt <<<< New LV entry

4. Copy the pkg_name.cntl file to the other node.
5. Manually mount the filesystem on primary node and start using the LV.
6. During next package start the filesystem will be mounted automatically with package control script.
7. During failover the LV will be mounted on he other node.

Are these steps okay??
6 REPLIES 6
SoorajCleris
Honored Contributor

Re: Adding LV

http://docs.hp.com/en/B3936-90100/ch07s05.html#babcidhg

Regards
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
VVS
Regular Advisor
Solution

Re: Adding LV

On the primary node:
1. Create LV
2. Create FS
3. Create Mount Point
4. Do VG exoport:
vgexport â p â m -s -v /dev/vg_name.
5. Copy the map file to the adoptive nodes.
On the adoptive node:
1. vgexport /dev/vg_name
2. mkdir /mount_point
3. mkdir /dev/vg_name
4. mknod /dev/vg_name/group c 64 0x0#0000 (use the same minor number!!)
5. vgimport â m -s â v /dev/vg_name
On the primary node:
6. cmhaltpkg
7. Update the package control file and distribute it to the adoptive nodes.
7. cmrunpkg
8. cmmodpkg â e
Work is life, you know, and without it, there's nothing but fear and insecurity.
WW451512
Advisor

Re: Adding LV

Hi Again..

While adding an LV:
Is cmapplyconf required?
Is vgexport/vgimport really required?

Thanks..
singh sanjeev
Trusted Contributor

Re: Adding LV

After creation of LV , it is very much important to do vgexport/vgimport on cluster node,so LVM volume group and its associated logical volumes is consistent on both node.

You can check the any variation via cmcheckconf command.

# I do not think that cmapplyconf is needed after creation of LV.

Sanjeev Singh
Rita C Workman
Honored Contributor

Re: Adding LV

cmapplyconf - not required in this case
vgexport/vgimport - required

assigning point - optional, but recommended

Rgrds,
Rita
WW451512
Advisor

Re: Adding LV

thanks all..