Gentoo Archives: gentoo-server

From: Francesco Riosa <vivo@g.o>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Building binary packages
Date: Tue, 21 Feb 2006 20:24:02
Message-Id: 43FB76D0.8040506@gentoo.org
In Reply to: [gentoo-server] Building binary packages by Thomas Schreiner
1 Thomas Schreiner wrote:
2 > Hi,
3 >
4 > my problem upgrading to mysql-4.1 is the downtime that I am going to get
5 > while the new build completes.
6 >
7 > That's why I was planning to build a binary package for mysql-4.1 on a
8 > second host in order to install it on my production server, but I could
9 > not find a list of common pitfalls to consider while building packages
10 > for a different host. These are the things that I can think of so far:
11 >
12 > - appropriate make.conf, CFLAGS etc.
13 > - right USE flags (or make.profile in general)
14 > - same version of libraries / dependencies to prevent dynamic linking of
15 > libraries that don't exist on target host (that's going to be a hard one)
16 >
17 > Is there a HowTo that lists all things to consider, or is it a
18 > generally discouraged thing to build packages for another host if the hosts
19 > are not 100% the same?
20 >
21 > Thanks a lot
22 >
23 > Thomas
24 >
25
26 There are different ways to decrease the downtime, the one that follow
27 nearly the route you chose (and is less dangerous) is to:
28
29 # emerge --buildpkgonly =mysql-[version]
30 # emerge -pv --usepkgonly =mysql-[version]
31 # /etc/init.d/mysql stop
32 # emerge --usepkgonly =mysql-[version]
33 # /etc/init.d/mysql start
34
35 if you're upgrading from mysql-4.0 then it's not so easy and google will
36 help.
37
38 beware that if you are switcing to slotted mysql many people had
39 problems due to different bugs, that should be mostly solved now but ...
40 there is a doc [1] to read before to do that kind of upgrade.
41
42 To achieve zero downtime you need something like a "replication" setup
43 and such, this could be a lengthly explanation and will covered only if
44 needed ;-)
45
46 [1] www.gentoo.org/doc/en/mysql-upgrade-slotted.xml
47
48 --
49 gentoo-server@g.o mailing list

Replies

Subject Author
Re: [gentoo-server] Building binary packages Francesco Riosa <vivo@g.o>