cancel
Showing results for 
Search instead for 
Did you mean: 

adding LV in package

SOLVED
Go to solution
himacs
Super Advisor

adding LV in package

Hi Admins,

I want to add a new LV in cluster package script.Please provide the steps needs to be followed.
NOw we are going to switch over the package.

Regards
himacs
7 REPLIES
Raj D.
Honored Contributor
Solution

Re: adding LV in package


Himacs,

1. Create the lv from the cluster pkg vg.
( There should be avaialbe space in the vg )

# lvcreate -L 1024 /dev/vg_name
# newfs the lvol
# newfs -F vxfs -o largefiles /dev/vg_name/lvol_name


2. create mount point
# mkdir /fs01


3.Add in package control script :
# cd /etc/cmcluster/pkg_name/
# vi pkg_name.conf #[Where pkg_name.conf is your package name ]
-Add it after the last line in LV[] section.
-Add the fs entry in the last of FS[] section.


4. Copy the pkg_name.conf file to the FO_node same location.


6. create the mount point in fo_node:
# on fo_node: # mkdir /fs01


7.Manually mount the filesystem on pri:,
# mount /dev/vg_name/lv_name /fs01



8. During next package start the filesystem will be mounted automatically with package start script.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: adding LV in package

Correction:
(to add the lv & fs entry in pkg_name.cntl file)


3.Add in package control script :
# cd /etc/cmcluster/pkg_name/
# vi pkg_name.cntl

#[Where pkg_name.cntl is your package control script name ]
-Add it after the last line in LV[] section.
-Add the fs entry in the last of FS[] section.





Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
himacs
Super Advisor

Re: adding LV in package



>>LV[12]="/dev/vg02/tracebkp"; FS[12]="/trace_bkp"; FS_TYPE[12]="vxfs"; FS_MOUNT_OPT[12]="-o largefiles"; FS_UMO
UNT_OPT[12]=""; FS_FSCK_OPT[12]="" >>


I just added FS /trace_bkp in package script
pkg1.sdf.sh .

The filesystem is running in active cluster,but the same entry is missing in passive.Now m doing switch over the package into passive,so that FS will be automatically mounted.


Do i execute any command apart from this


regards
himacs
CITEC HP TEAM
Frequent Advisor

Re: adding LV in package

I guess not pkg_name.conf but pkg_name.cntl about the below part.

3.Add in package control script :
# cd /etc/cmcluster/pkg_name/
# vi pkg_name.conf #[Where pkg_name.conf is your package name ]
-Add it after the last line in LV[] section.
-Add the fs entry in the last of FS[] section.

In addition, you might need to change the ownership after mounting new LV.

Cheers,
Raj D.
Honored Contributor

Re: adding LV in package

Himacs,

> Do i execute any command apart from this:


- No.
Adding LV doesnt required any additional step in ServiceGuard. You dont need to compile the package config file or any other extra step.


- If you are doing failover test, keep an eye on the package log file /etc/cmcluster/pkg/pkg.cntl.log file
[ #where pkg is your package name]

In the log file you will see the mounting & unmouting notification of the Filesystem. Verify the filesystem once package has been started.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: adding LV in package

Himacs,

Note:
-If you are adding disk(s) in the vg , remember to do export/import of the vg in the FO Node.


cheers,
Raj.


(* Appreciate if you could take some time to assign the pending points.)
" If u think u can , If u think u cannot , - You are always Right . "
himacs
Super Advisor

Re: adding LV in package

Hi ,

Thanx for the responses.

The switch over has been done with new FS added.


Regards
himacs