Operating System - HP-UX
1825766 Members
2133 Online
109687 Solutions
New Discussion

Re: Hp ux cluster (Service guard) File system

 
SOLVED
Go to solution
Nath_3
Frequent Advisor

Hp ux cluster (Service guard) File system

Hi,

How to add a 100 Gb on the existing package on a 2 node cluster. Please provide me the steps.

Thanks
PRN
11 REPLIES 11
Yashwant
Valued Contributor
Solution

Re: Hp ux cluster (Service guard) File system

cmviewcl -v --------> Take a snapshot and check for

cmhaltpkg -n nodename -v packge name -------->Halt the dependency pkg gmlci

tail -f /etc/cmcluster/packge/ci.cntl.log ----> Check the pkg log for any error

cmviewcl -v --------> Check the package

cmhaltpkg -n nodename -v packge name -----> Halt the database pkg gmldb

tail -f /etc/cmcluster/package/db.cntl.log ---->check for pkg log for error

cp -p /etc/lvmconf/vgn.conf /etc/lvmconf/vgn.conf.`date +%Ymd` ----> Backup the vg configuration

lvextend -L 154000 /dev/vgn/lvoln -----> e.g Extend the FS to 32 Gb already 122 Gb exists( 122+34)

extendfs -F vxfs /dev/vgn/rlvoln -----> Give the extendfs command to extend the FS

vgchange -c n vgn -----> Disable volume group for HA cluster

vgchange -a y vgn -----> Enable the vg without exclusive mode

mount -F vxfs /dev/vgn/lvoln filesystem name

bdf filesystem name

vgchange -a n vgn ----> Deactivate the VG

vgchange -c y vgn ----> Activate in VG for HA cluster

vgexport -p -s -v -m /tmp/vgn.map /dev/vgn -----> Export vgn

rcp -p /tmp/vgn.map gmiux:/tmp/vgn.map -----> Copy the mapfile to the adoptive node

rlogin gmiux

cp -p /etc/lvmconf/vgn.conf /etc/lvmconf/vgn.conf.`date +%Ymd`----> Backup the Vg info

vgimport -s -v -m /tmp/vgn.map /dev/vgn -----> Import vgn to gmiux

vgchange -c n vgn ----->Disable volume group for HA cluster

vgchange -a y vgn ----->Enable the vg without exclusive mode

mount -F vxfs /dev/vgn/lvol13 filesystem name -----> Check the fs is mounting properly

bdf filesystem name ----->check the fs

vgchange -a n vgn -----> Deactivate the VG

vgchange -c y vgn ---->Activate in VG for HA cluster

cmrunpkg -n server name -v package name

tail -f /etc/cmcluster/package/db.cntl.log -----> Check the pkg log for any error

cmrunpkg -n server name -v package name

tail -f /etc/cmcluster/package/ci.cntl.log -----> Check the pkg log for any error

cmviewcl -v

If the Global switching is disabled enable that

cmmodpkg -e package name


cmviewcl -v to verify
Prashanth Waugh
Esteemed Contributor

Re: Hp ux cluster (Service guard) File system

Hi Nath,

what exactly u have to do. u have to add 100 GB in Vg or in lv . Pls clear it first. or u r goint to add 100 gb using disks.

Reagrds
Prashant
For success, attitude is equally as important as ability
Johnson Punniyalingam
Honored Contributor

Re: Hp ux cluster (Service guard) File system

Hi Nath,

>>How to add a 100 Gb on the existing package on a 2 node cluster. Please provide me the steps<<

Hope the Question & your Requirement not clear , you are trying too push us in the DARK ROOM, need some light,

what do you need want VG EXTEND for 100GB / LV EXTEND for 100 GB ..?

existing package --? are you refering to VG which belongs to package or Logical volume that belongs to a package..?

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Nath_3
Frequent Advisor

Re: Hp ux cluster (Service guard) File system

Thanks for the Steps :

Case1: I'm adding 100 GB in VG.(VGextend)

Case2: I'm adding 100 GB in LV.(LVextend)

In what Situation do i need to restart the Package.

I am adding this coz the datebase need it.

Thanks

Johnson Punniyalingam
Honored Contributor

Re: Hp ux cluster (Service guard) File system

In what Situation do i need to restart the Package.
>>>(if you d'not have ONLINE JFS) Installed ,<<

IF YOU HAVE ONLINE JFS,

no need to restart the pkg,

step 1:- lvextend -L /dev/vg0x/lvol1x

Volume Group configuration for /dev/vg03 has been saved in /etc/lvmconf/vg03.conf
step2 :- # fsadm -F vxfs -b M /File_system-name


ONLINE FILE SYSTEM EXTENTION software / Patch need if not you need "Down the pkg"

Example:-

how to find "ONLINE JFS Installed

# /usr/sbin/swlist -l product | grep -i jfs
JFS 3.3 JFS 3.3 base filesystem
OnlineJFS 3.3 JFS 3.3 online (Advanced) filesystem features
PHCO_20030 1.0 Enhance ln(1) to work with JFS ACLs.
PHCO_20031 1.0 Enhance ls(1) to work with JFS ACLs.
PHCO_20032 1.0 Enhance mv(1) to work with JFS ACLs.
PHCO_20033 1.0 Enhance rm(1) to work with JFS ACLs.
PHCO_20034 1.0 Enhance shar(1) to work with JFS ACLs.
PHCO_20037 1.0 Enhance find(1) for JFS ACLs.


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Analyst
Trusted Contributor

Re: Hp ux cluster (Service guard) File system

Adding the LV in the cluster server.

1.check for the Online JFS software installed.
2.Yes, then extend the LV.
3.Activate the VG in exclusive mode.
4.Export and import vg configurations.
5.Check for the newly added LV.
6.No need to restart the package.

Thanks,
kamal.
Prashanth Waugh
Esteemed Contributor

Re: Hp ux cluster (Service guard) File system

Hi Nath,

Hi Nath,

After verifying the all the queries which had mention in above posts then i m going to give the genealised procedure here. Pls modify according to ur enviorn.
1)first u have to check whether ample free PE is available or not to add 100GB in lv. u told that adding 100GB in VG means u r adding disk is it correct?
2)pvcreate /dev/rdsk/cotodo
3)vgextend /dev/vg03 /dev/dsk/cotodo
then verify it using
4)vgdisplay -v
5)lvextend -L in MB /dev/vg03/lvol1x
6)fsadm -F vxfs -b KB /File_system-name

Regards
Prashnat
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: Hp ux cluster (Service guard) File system

Hi Analyst,

Here no need to export/import the vg bcoz we r not adding vg or lv here.

Regards
Prashnat
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: Hp ux cluster (Service guard) File system

Hi nath,

sorry, u have to export/import the vg on apotive node .bcos u r adding the disk in vg. if ur onle extending lv then no need to export/import

Regards
Prashant
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: Hp ux cluster (Service guard) File system

hi nath ,

we have to do the export on primay node and import the map file on failover node . bcoz when package will failover on adoptive node then that time the it should have the updated information abt the particular volume group.

regards
prashant

For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: Hp ux cluster (Service guard) File system

Hi nath,

we r not actually exporting and imoprting the vg. we are creaiting the map file and that map file we will import on another cluster node which r HA/DR for it
Regards
Prashant
For success, attitude is equally as important as ability