Re: [Clonezilla-server-edition] Clonezilla Server on Karmic Koala
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
From: Hooker, J. <Jon...@ga...> - 2010-01-08 04:23:49
|
root@olaxpf-clz02:/root# cat DRBL-BUG-RPT-20100107-2141.txt To report the bug, fill the contents in the following table, then send it to DRBL mailing list or post it on the DRBL forum." -------CUT BEGIN HERE-------------------------------------------- Description of problem: I have a server running karmic koala and have installed clonezilla server on it. I used the same configuration that I would use on any other ubuntu OS but for some reason it's boot process hangs every time at "Let original init take over". If I add a -v option to the exec command that executes init.orig it outputs a bunch of information about commands starting and exiting normally. How reproducible: Every boot. Either with the testing branch or the unstable branch. Steps to Reproduce: Setup the server using the following settings then pxe-boot to clonezilla: *Note this is relatively customized for Garmin use. 1. Setup base machine with with a similar scheme to the following: a. Raid 0 (or if you have enough space Raid 0+1) b. /dev/sda1 as /boot directly on hard drive (before software raid) c. LVM on top of raid with following setup (vg = osvg): i. root_lv = 4096 MB (/ mounted to this) ii. swap_lv = <equivalent to amount of physical memory> iii. srv_lv = <rest of free space; should be greater than 100 GB> (/srv mounted on this) d. Be sure to install openssh server, print server, mail server, and web server 2. Make sure that you have two network cards in the machine during the duration of the install 3. Set the primary network card to static ip via /etc/network/interfaces 4. mkdir /srv/images 5. wget -q http://drbl.sourceforge.net/GPG-KEY-DRBL -O- | sudo apt-key add - 6. add the following to /etc/apt/sources.list: a. deb http://archive.ubuntu.com/ubuntu hardy main restricted universe multiverse # (Or any Ubuntu mirror site near you) b. deb http://drbl.sourceforge.net/drbl-core drbl stable testing 7. apt-get update; apt-get upgrade 8. reboot 9. apt-get install drbl 10. edit /opt/drbl/sbin/mknic-nbi and set: a. check_server_name_default = .no. 11. execute /opt/drbl/sbin/drblsrv -i and use the following answers: a. Install netboot install images: No b. Use serial console output: No c. Version of kernel to install: i586 d. Upgrade OS: No 12. edit /etc/init.d/dhcp3-server and add at top of file: a. exit 0 13. run /opt/drbl/sbin/drblpush -i and use following selections: a. DNS domain: garmin.com b. NIS/YP domain: clonezilla c. Client hostname: <local machine's hostname> d. Ethernet port for internet: <use port that is set up with the static ip (this is the port that will stay connected to the computer and act as primary ethernet port)> e. Collect clients: No f. Offer same ip: No g. Initial number in ip range: 1 h. Total number of clients: 1 i. Set ip range: Y j. Diskless linux services: drbl ssi mode k. Clonezilla mode : clonezilla box mode l. Directory to save images to : /srv/images m. Use client.s local hard drive: No n. Mode to use at boot: text o. Set root password: ************ p. Set pxelinux password: ************ q. Use graphical background for pxe menu: Yes r. Share hardware with the clients: No s. Use public IP with the clients: No t. Run in terminal mode: No u. Use NAT server: No v. Continue: Yes 14. Edit /etc/exports and do the following: a. Write down the ip address listed in the file b. Replace the ip address with a .*. 15. Execute exportfs .a 16. grep -r .<first three octets of ip address you wrote down>. /tftpboot/node_root/etc a. Change all mentions of the ip address you wrote down to the static ip of the machine 17. mkdir /tftpboot/node_root/drbl_ssi/temp; cd /tftpboot/node_root/drbl_ssi/temp; tar -xzvf ../template_etc.tgz 18. grep -r .<first three octets of ip address you wrote down>. /tftpboot/node_root/drbl_ssi/temp/etc a. Change all mentions of the ip address you wrote down to the static ip of the machine b. in etc/fstab uncomment the mount for node_root and comment the three lines referring to nodes/<ip addr> 19. create and edit /tftpboot/node_root/drbl_ssi/temp/etc/rc1.d/S18czclient and insert the following with rwx permissions: a. #!/bin/bash for i in 1 2 3 4 5 6 7 8; do if (( `ls /srv/images 2>/dev/null | wc -l` > 0 )) then i=100 break fi echo $i sleep 1 done /srv/images/.cz_scripting/cz_client.pl 20. cp /tftpboot/node_root/drbl_ssi/temp/etc/rc1.d/S18czclient /tftpboot/node_root/etc/rc1.d/; tar -czvf template_etc.tgz etc; cd /tftpboot/node_root/drbl_ssi/; mv /tftpboot/node_root/drbl_ssi/temp/template_etc.tgz /tftpboot/node_root/drbl_ssi/ 21. mkdir /home/initrd_work; cp /tftpboot/nbi_img/<initrd file linked to by initrd-pxe.img> /home/initrd_work; cd /home/initrd_work; mv <initrd file linked to by initrd-pxe.img> initrd.img.gz; gzip -d initrd.img.gz; cpio -i --no-absolute-filenames < initrd.img; rm -rf initrd.img 22. Edit /home/initrd_work/bin/udhcpc-post a. Change [ -n "$rootpath" ] || rootpath="$siaddr:/tftpboot/$clientdir" to [ -n "$rootpath" ] || rootpath="<static ip address of server>:/tftpboot/$clientdir" 23. cp /tftpboot/nbi_img/<initrd file linked to by initrd-pxe.img> /tftpboot/nbi_img/<initrd file linked to by initrd-pxe.img>.old; cd /home/initrd_work; find . | cpio -o -H newc > ../initrd.img; cd ..; gzip -c initrd.img > initrd.img.gz; mv initrd.img.gz /tftpboot/nbi_img/<initrd file linked to by initrd-pxe.img> 24. edit /tftpboot/nbi_img/pxelinux.cfg/default and add: a. <static ip address of server>:: in front of vesamenu.c32, drblwp.png, all initrd*.img files, and all vmlinuz-pxe files b. Enable clonezilla entry and disable drbl entry by commenting and uncommenting .MENU HIDE. c. Add .clientdir=node_root. at end of clonezilla append line 25. edit /tftpboot/node_root/sbin/init and comment out section entitled .Use gateway as NFS. 26. create file in /etc/firewall.d/30tftp.sh and put the following line in it: a. iptables -A INPUT -p udp --dport 69 -j ACCEPT 27. Remove second network card -- not needed any more 28. Add server entries to pxe menus and test server out Actual results: The boot process hangs every time at "Let original init take over". Expected results: Boot should complete and just before it runs the clonezilla ocs scripts, it should run /srv/images/.cz_scripts/cz_client.pl which sets up the imaging environment for imaging at Garmin. Some info about the DRBL environment (PLEASE DO NOT EDIT THEM!): === OS version: Ubuntu 9.10 Server arch: i686 Server CPU: Intel(R) Xeon(R) CPU E5540 @ 2.53GHz Server memory size: 2061696 kB Server Kernel version: 2.6.31-16-generic-pae Installed DRBL-related packages: drbl-1.9.4-67 clonezilla-2.3.4-54 mkswap-uuid- 0.1.1-1 drbl-partimage-0.6.8-1drbl drbl-ntfsprogs-2.0.0-4 partclone-0.1.9-5 drbl -chntpw-0.0.20040818-7 drbl-lzop-1.02-0.8drbl pigz-2.1.5-1drbl pbzip2-1.0.5-1drb l mkpxeinitrd-net-1.3-18 udpcast-20091031-1drbl drbl-etherboot-5.4.3-2 gpxe-0.9. 9-1drbl freedos-1.0-11drbl Client kernel version: 2.6.31-17-386 Client kernel arch: i486 NICs with private IP address in server: eth0 Private IP address in server: 10.5.32.73 Total client no: 1 Client IP address: 172.30.0.1 === -------CUT END HERE---------------------------------------------- Jonathan Hooker Desktop Support - Engineering Garmin International jon...@ga... -----Original Message----- From: Steven Shiau [mailto:st...@nc...] Sent: Thursday, January 07, 2010 9:10 PM To: Hooker, Jonathan Cc: clo...@li... Subject: Re: [Clonezilla-server-edition] Clonezilla Server on Karmic Koala Please run /opt/drbl/bin/drbl-bug-report then post the created file. It's easier for us to debug. Steven. On 2010/1/8 上午 11:08, Hooker, Jonathan wrote: > This was an absolutely clean install in both cases. > > > Jonathan Hooker > Desktop Support - Engineering > Garmin International > jon...@ga... > > --Sent from BlackBerry > > ----- Original Message ----- > From: Steven Shiau<st...@nc...> > To: clo...@li...<clo...@li...> > Sent: Thu Jan 07 21:06:09 2010Subject: Re: [Clonezilla-server-edition] Clonezilla Server on Karmic Koala > > Please make sure you have followedhttp://drbl.sourceforge.net/one4all/#upgradeto upgrade the drbl programs. It will avoid some stale files...Steven.On 2010/1/8 ?? 08:45, Hooker, Jonathan wrote:> I should probably clarify, I am using the testing branch of drbl. I> tried the unstable as well but that failed with similar issues.>> Jonathan Hooker> Desktop Support - Engineering> Garmin International> jon...@ga...<mailto:jon...@ga...>>> *From:* Hooker, Jonathan> *Sent:* Thursday, January 07, 2010 6:21 PM> *To:* clo...@li...> *Subject:* Clonezilla Server on Karmic Koala>> Hi,>> I have a server running karmic koala and have installed clonezilla> server on it. I used the same configuration that I would use on any> other ubuntu OS but for some reason it’s boot process hangs every time> at “Let original init take over”. If I add a -v option to the exec> command that executes init.orig it outputs a b unch of information about> commands starting and exiting normally. Does anyone have any ideas about> this? I work for a large company and we rely on this for a large amount> of our imaging needs and I have found that some of our new hardware> needs the updated drivers from this newer kernel available in Karmic…> Thanks!>> Jonathan Hooker> Desktop Support - Engineering> Garmin International> jon...@ga...<mailto:jon...@ga...>>> ------------------------------------------------------------------------>> This e-mail and any attachments may contain confidential material for> the sole use of the intended recipient. If you are not the intended> recipient, please be aware that any disclosure, copying, distribution or> use of this e-mail or any attachment is prohibited. If you have received> this e-mail in error, please contact the sender and delete all copies.>> Thank you for your cooperation.>>>> ----------------------------------------- -------------------------------------> This SF.Net email is sponsored by the Verizon Developer Community> Take advantage of Verizon's best-in-class app development support> A streamlined, 14 day to market process makes app distribution fast and easy> Join now and get one step closer to millions of Verizon customers> http://p.sf.net/sfu/verizon-dev2dev>>>> _______________________________________________> Clonezilla-server-edition mailing list> Clo...@li...> https://lists.sourceforge.net/lists/listinfo/clonezilla-server-edition-- Steven Shiau<steven _at_ nchc org tw> <steven _at_ stevenshiau org>National Center for High-performance Computing, Taiwan.http://www.nchc.org.twPublic Key Server PGP Key ID: 1024D/9762755AFingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A------------------------------------------------------------------------------This SF.Net email is sponsored by the Verizon Developer CommunityTake advantage of Verizon's best-in-class app development supportA streamlined, 14 day to market process makes app distribution fast and easyJoin now and get one step closer to millions of Verizon customershttp://p.sf.net/sfu/verizon-dev2dev _______________________________________________Clonezilla-server-edition mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/clonezilla-server-edition > -------------------------------------------------------------------------- > This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. > Thank you for your cooperation. -- Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw Public Key Server PGP Key ID: 1024D/9762755A Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Clonezilla-server-edition mailing list Clo...@li... https://lists.sourceforge.net/lists/listinfo/clonezilla-server-edition |