1831360 Members
2751 Online
110024 Solutions
New Discussion

Deleting a Package

 
SOLVED
Go to solution
Faizer Jameel
Frequent Advisor

Deleting a Package

Dear All
I have 2 packages on my cluster. These 2 packages are using the same vg. I need to delete one of teh packages. Q1: If I delete a package will this effect the other package. Q2:Will the deletion effect the vg? [ will it also be deleted etc]
Thanks
5 REPLIES 5
melvyn burnard
Honored Contributor
Solution

Re: Deleting a Package

I am not sure how you managed to get two packages to use the same VG, unless only one gets run at any time.
Simply delete the package you do not want, and remove any files/subdirectories for it.
this does NOT affect any other package or volume group information.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Faizer Jameel
Frequent Advisor

Re: Deleting a Package

Well both packages are running fine.
When I fail over one package then the other package gives an error as the vg is shared.
As far as both the packages are running on the same node there is no effect.
Also the package I want to delete does not have any systems on it. It just mounts a fiel system
so in fact I want to do the following
1. cmhaltpkg pkg_name
2. cmdeleteconf -p pkg_name

best regards
Steven E. Protter
Exalted Contributor

Re: Deleting a Package

Shalom,

The answer depends on the contents of the package control scripts.

If you wrote them in such a way that one package needs the other package running, then you have a problem.

In general, if two programs need to operate on the same volume group, activated by a package control script then you should only have one package control scrip that starts two services.

So, if package 1 needs to use the volume group that package 2 activates then you have a problem and you need to transfer the volume group activation code to package 1 prior to deleting package 2 from the cluster.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Faizer Jameel
Frequent Advisor

Re: Deleting a Package

As in the cluster file.
VOLUME_GROUP /dev/vgsavlock

In the Package control file of pkg1.
The volume group activation method is defined above. The filesystems
associated with these volume groups are specified below.
VG[0]="vgsavcl"
The lv information
LV[0]="/dev/vgsavcl/lvol1"; FS[0]="/data1"; FS_MOUNT_OPT[0]="-o largefiles,delay
log"
-----------------------
Pkg2 control file.
The volume group activation method is defined above. The filesystems
# associated with these volume groups are specified below.
VG[0]="vgsavclâ
LV[0]="/dev/vgsavcl/lvol7"; FS[0]="/oracle9i"; FS_MOUNT_OPT[0]="-o largefiles"
Thanks
Faizer Jameel
Frequent Advisor

Re: Deleting a Package

In fact pkg2 does not have any application installed.Its just a mount point.
pkg1 does not have any files or binaries or services in the file system of pkg2.
pkg2 does not have any files or binaries or services in the file systems of pkg1. Both are absolutley indpendent packages. the only dependency is this vg.

So a cmdelete of the package should not have any effect. Please correct me if I am wrong.
Pkg1 is my production system with all users connected now.

Thanks