How to migrate the new image from vmware guest(i60sfs2) to the old real machine i60sfs1.Author: Julian Klinck (klinck@ira.uka.de)Date: 18.01.2010Good Luck :)Questions:- Create a own partition for /home ?-- Rest is used by /-- Move project shares to /home/shares (Block username in AD!)Step by step migration:- Create full backup of new sfs2 (exclude /proc /sys /mnt /dev) bkp_sfs2.tar- !! Verify backup of sfs2- Create full backup of old sfs1 (exclude /proc /sys /mnt /dev) bkp_sfs1.tar- !! Verify backup of sfs1- Reboot Server into debian live cd- Mount /dev/cciss/c0d0p1 into /mnt/sfs1- Delete everything under /mnt/sfs1/* excepting /home /var/ipr_public /var/projekt_austausch /var/ma_stud_austausch /var/svn /var/svn-www /var/www- Copy /root/sfs2.tar.gz from i60sfs2 to /mnt/sfs1- Untar sfs2.tar.gz to /mnt/sfs1/- chroot into /mnt/sfs1Changes needed to migrate:- Edit /etc/fstab for raid usage: /dev/cciss/c0d0p1 / ext3 acl,defaults,errors=remount-ro 0 1 /dev/cciss/c0d0p5 none swap sw 0 0- Reinit grub bootloader to write bootloader into raid- Edit /etc/network/interfaces: auto lo eth0 eth1 iface lo inet loopback # main ip iface eth0 inet static address 141.3.80.196 netmask 255.255.252.0 network 141.3.80.0 broadcast 141.3.80.255 gateway 141.3.83.254 # ip for power management system (usv) iface eth1 inet static address 192.168.1.251 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255- Edit /etc/hostname to: i60sfs1- Edit /etc/postfix/main.cf to: myhostname = i60sfs1.ipr.uni-karlsruhe.de mydestination = i60sfs1.ipr.uni-karlsruhe.de, localhost.ipr.uni-karlsruhe.de, localhost- Execute command to add the old shared spaces to the smb.conf: "cat /root/sfs2_to_sfs1/samba_shares >> /etc/samba/smb.conf"- Check winbind and samba to work correctly after change of servername to sfs1 in AD- Remove all log files: "rm -rf /var/log/*"- "net ads leave -U klinck" and then rename host after that "net ads join -U klinck"Tests:- Login with user klinck into sfs1 via ssh- Login with user klinck into sfs1 via smb- Mount from pool computer homedir Z:-- create files-- delete files-- move files- Login with user klinck into ws1 via ssh- Check website ipr.kit.edu- Check if ntpd is working correctly- Try to mount share "mikrorobAdm" (probably need to add myself to their group "mikro" first)-- create, delete and move check like in Z:Finish:- Delete user jklinck- Reset root password of i60sfs1 and document it!!- Recover some helper scripts out of the old /root for margit- Send firewall rule set to ATIS for i60sfs1- Send test root mails (should be forwarded to klinck@ira.uka.de)- Delete virtual machine (i60sfs2)- Reconfigure Tripwire for the new machineUpcoming:- Install ANTIVIR (done)- Run full check of /home- Install TSM- Run full backup of i60sfs1**** DONE ****