======================================================================== move/merge/migrate quepasa.netfrag.org to mango.rtme.net: ======================================================================== ------------------------------------------------------------------------ general information ------------------------------------------------------------------------ ------------------------- mango.rtme.net ------------------------- user: root pass: 5g3%Fs7 ------------------------- quepasa.netfrag.org ------------------------- old ip-address: 213.133.125.247 ip-address: 213.133.125.6 broadcast: 213.133.125.15 network: 213.133.125.0 tap-device: tap3 ------------------------- hetzner.de ------------------------- 373881-hier noch die Daten für den robot: 373882- URL: https://hetzner.de/robot 373883- User: tunemedia 373884- Pass: inByct3Orv ------------------------------------------------------------------------ step by step ------------------------------------------------------------------------ 0. mango:/home/service/pkgs/ dpkg -i cvs_1.11.1p1debian-9woody7_i386.deb 1. backup and update umltools mango:/home/service/bin #> tar -czf umltools_2004-09-21.tar.gz umltools #> su joko #> ssh-keygen -d #> cat ~/.ssh/id_dsa.pub | ssh joko@netfrag.org "cat - >> ~/.ssh/authorized_keys #> cd umltools #> cvs -q update -d 2. shutdown quepasa quepasa # sync quepasa # /etc/init.d/apache stop quepasa # killall -9 apache quepasa # halt 3. compress disk images of quepasa on h1.service.netfrag.org h1 # cd /home/uml/quepasa/rootfs h1 # tar -cjf rootfs.tar.bz root_fs.woody-stable.ext3 h1 # cd ../datafs h1 # tar -czf data_fs.tar.gz data_fs.ext3 & h1 # tar -czf data2_fs.tar.gz data2_fs.ext3 & 4. copy images to mango: root@h1:/home/uml/quepasa/rootfs # #> screen #> scp rootfs.tar.bz root@mango.rtme.net:/home/uml/quepasa/rootfs/ root@h1:/home/uml/quepasa/datafs # #> scp data_fs.tar.gz root@mango.rtme.net:/home/uml/quepasa/datafs/ #> scp data2_fs.tar.gz root@mango.rtme.net:/home/uml/quepasa/datafs/ 5. copy kernel to mango: root@h1:/usr/bin # scp linux_2.4.18-29 root@mango.rtme.net:/usr/local/bin/ 6. while above things are happening, we can configure some other things: a) /home/service/etc/UML/Config.pm b) /etc/hosts; nothing to do c) /etc/resolv.conf nameserver 213.133.98.98 nameserver 213.133.99.99 nameserver 213.133.100.100 nameserver 213.133.104.100 7. unpack images on mango mango:/home/uml/quepasa/rootfs #> tar -xjf rootfs.tar.bz mango:/home/uml/quepasa/datafs #> tar -xzf data_fs.tar.gz #> tar -xzf data2_fs.tar.gz set permissions: mango:/home/uml #> chown -R service.staff quepasa/ 8. prepare quepasa #> uml_boot --vhost=quepasa --prepare 9. start quepasa #> sue service #> uml_boot --vhost=quepasa --start #> screen -r quepasa 10. last but not least: a) grep for the old ip-address: 213.133.125.247 mango:/home/uml/quepasa/mnt #> grep -ri "213.133.125.247" * iptables.rules hosts:213.133.125.247 quepasa.netfrag.org quepasa hosts:213.133.125.247 www.netfrag.org hosts:#213.133.125.247 sorceress.netfrag.org iptables.rules: #IPADDR="213.133.125.247" network/interfaces: address 213.133.125.247 b) more apache /data/www/global/conf/httpd.conf c) install as daemon #> cd /home/service/bin/umltools #> ./uml_setup.pl --vhost=quepasa --daemonize d) resize filesystem http://user-mode-linux.sourceforge.net/resize.html quepasa # halt mango:/home/uml/quepasa/datafs # #> e2fsck -f data_fs.ext3 #> dd if=/dev/zero of=data_fs.ext3 bs=1 count=1 seek=3G conv=notrunc #> resize2fs -p data_fs.ext3 e) turck-mmcache #> apt-get install turck-mmcache #> dpkg -i turck-mmcache_2.4.6-8_i386.deb #> dpkg --force-all -i turck-mmcache_2.4.6-8_i386.deb #> apt-get -f install comment out /usr/lib/php4/2002... from /etc/php4/apache/php.ini Setting up turck-mmcache (2.4.6-8) ... You are installing Turck-MMCache for php4, but it is not yet enabled in your /etc/php4/apache/php.ini and/or /etc/php4/cgi/php.ini files. To enable it you need to add these lines: zend_extension="/usr/lib/php4/20020429/mmcache.so" ; turck-mmcache mmcache.shm_size="16" ; turck-mmcache mmcache.cache_dir="/var/cache/turck-mmcache" ; turck-mmcache mmcache.enable="1" ; turck-mmcache mmcache.optimizer="1" ; turck-mmcache mmcache.check_mtime="1" ; turck-mmcache mmcache.debug="0" ; turck-mmcache mmcache.filter="" ; turck-mmcache mmcache.shm_max="0" ; turck-mmcache mmcache.shm_ttl="0" ; turck-mmcache mmcache.shm_prune_period="0" ; turck-mmcache mmcache.shm_only="0" ; turck-mmcache mmcache.compress="1" ; turck-mmcache Do you want me to do it for you now? [Y/n] some more: - tmpfs: http://www.theshore.net/~caker/uml/tips_and_notes.html