On Thu, Feb 20, 2003 at 02:28:56AM +0100, Davy Michiels wrote:
> Hi,
>
>
> we recently build a Linux cluster following some techniques of
> "Linux on IBM  zSeries and S/390: Large Scale Linux Deployment" by Gregory
> Geiselhart.
>
> So we are sharing a read-only filesystem among some Linux images. Each
> Linux image has is own writable filesystem that on boottime is mounted in
> the directory tree.
> A result of this is that there are 2 RPM 'databases':
> /var/lib/rpm for packages on the R/O disk
> and
> /var/lib/guestrpm for packages on the R/W disk
>
>
> We want to install IBM DB2 V7.1 (with a fixpack later on) on this system.
> The problem is that when we use ./db2setup it calls
>         /bin/rpm -ivh <package>
> where in this case it should call
>         /bin/rpm --dbpath=/var/lib/guestrpm -ivh <package>
>
> We looked in the db2setup en db2_install scripts and adapted all
> occurences of rpm calls but
> when we execute ./db2setup it fails and calls
>         /bin/rpm -ivh <package>
> so without our adaptations!
>
>
> Does someone know where we can adapt the /bin/rpm call in the DB2 setup?
> Or if you have other experiences with installing DB2 on a Linux cluster,
> let us know

Two possible approaches:

a) run the install as a user with a local .rpmmacros file to specify
your special dbpath

b) temporarily replace /bin/rpm with a shell script that invokes the
real /bin/rpm with --dbpath=/var/lib/guestrpm $*

Richard

Reply via email to