[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



On Wed, 2004-10-20 at 16:02, Yu, Jerry wrote:
> that's pretty cool. So, the restore batch is part of the bootable floppy
> image. Do you use syslinux or other?
> 
> 
> # -----Original Message-----
&gt; # From: Christopher Fowler [<a  rel="nofollow" href="mailto:cfowler";>mailto:cfowler</a> at outpostsentinel.com]
&gt; # Sent: Wednesday, October 20, 2004 3:16 PM
&gt; # To: Yu, Jerry
&gt; # Cc: 'Atlanta Linux Enthusiasts'
&gt; # Subject: RE: [ale] Restore DVD
&gt; # 
&gt; # 
&gt; # Bootable DVD that does it all.  Take blank hardware, restore, reboot,
&gt; # and system is up.
&gt; # 
&gt; # On Wed, 2004-10-20 at 15:13, Yu, Jerry wrote:
&gt; # &gt; it may help some by turning on swap after mkswap (swapon)
&gt; # &gt; it may help some by restoring to raw disks instead of to 
&gt; # logical volume like
&gt; # &gt; md0 (or tune down the mirroring speed as someone suggested 
&gt; # in a different
&gt; # &gt; thread)
&gt; # &gt; it may help to try 'tar' and untar. I always use tar/untar. em, cpio
&gt; # &gt; sometimes.
&gt; # &gt; 
&gt; # &gt; Q: by 'restore DVD', do you mean 'DVD containing the backup 
&gt; # dump', or 'a
&gt; # &gt; bootable DVD that mounts itself and 
&gt; # mkfs/mkswap/restore/grub and all that'?
&gt; # &gt; 
&gt; # &gt; # -----Original Message-----
&gt; # &gt; # From: ale-bounces at ale.org [<a  rel="nofollow" href="mailto:ale-bounces";>mailto:ale-bounces</a> at ale.org]On Behalf Of
&gt; # &gt; # Christopher Fowler
&gt; # &gt; # Sent: Wednesday, October 20, 2004 1:06 PM
&gt; # &gt; # To: ale at ale.org
&gt; # &gt; # Subject: [ale] Restore DVD
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # I'm creating a restore DVD and it is taking a very long time 
&gt; # &gt; # to restore
&gt; # &gt; # the data.  It takes longer to restore than it did to install 
&gt; # &gt; # the system.
&gt; # &gt; # 
&gt; # &gt; # I'm using dump/restore to do the archival and 
&gt; # restoration.  When I do
&gt; # &gt; # create the backup I am creating it with the option '-j9'.  
&gt; # &gt; # This adds the
&gt; # &gt; # highest level ob bzip2 compression.  I am not concerned with the
&gt; # &gt; # resources that takes since the system is a 3.0P4 with 1mb 
&gt; # &gt; # cache.  It has
&gt; # &gt; # plenty of horsepower to do the restoration.
&gt; # &gt; # 
&gt; # &gt; # What  I can not figure out is why it is taking so long.
&gt; # &gt; # 
&gt; # &gt; # Here is the data:
&gt; # &gt; # 
&gt; # &gt; # #1 Restore DVD
&gt; # &gt; # 
&gt; # &gt; # 12x CD-RW used for testing and not wasting blank CD-Rs
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # #2 disk usage and size after restore
&gt; # &gt; # 
&gt; # &gt; # Filesystem                Size      Used Available Use% Mounted on
&gt; # &gt; # /dev/root.old           891.0k    387.0k    504.0k  43% /initrd
&gt; # &gt; # /dev/hdc                651.2M    651.2M         0 100% /initrd/cd
&gt; # &gt; # /dev/loop0               89.7M     89.7M         0 100% /
&gt; # &gt; # none                    501.5M      3.3M    498.2M   1% /mnt/rw
&gt; # &gt; # /dev/md0                180.0G      1.6G    169.1G   1% 
&gt; # &gt; # /mnt/rw/tmp/md0
&gt; # &gt; # 
&gt; # &gt; # I'm only restoring 1.6G of stuff
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # #3 Time it took to do resotre:
&gt; # &gt; # 
&gt; # &gt; # *************************************************
&gt; # &gt; # * Restoration Complete!                         *
&gt; # &gt; # *************************************************
&gt; # &gt; # Restoration took 15903 seconds
&gt; # &gt; # 
&gt; # &gt; # That is a very long time
&gt; # &gt; # 
&gt; # &gt; # #4 Script used
&gt; # &gt; # #!/bin/sh
&gt; # &gt; # 
&gt; # &gt; # echo &quot;*************************************************&quot;
&gt; # &gt; # echo &quot;* Restore System to Factory Defaults            *&quot;
&gt; # &gt; # echo &quot;*************************************************&quot;
&gt; # &gt; # echo -n &quot;Are you sure (y/n): &quot;
&gt; # &gt; # read ans
&gt; # &gt; # if [ $ans != 'y' ]
&gt; # &gt; # then
&gt; # &gt; #         exit 0
&gt; # &gt; # fi
&gt; # &gt; # 
&gt; # &gt; # START=`date +%s`
&gt; # &gt; # 
&gt; # &gt; # raidstop --configfile /data/raidtab /dev/md0 2&gt;/dev/null 
&gt; # 1&gt;/dev/null
&gt; # &gt; # echo &quot;Blanking /dev/hda&quot;
&gt; # &gt; # dd if=/dev/zero of=/dev/hda1 bs=1024k count=100
&gt; # &gt; # dd if=/dev/zero of=/dev/hda2 bs=1024k count=100
&gt; # &gt; # dd if=/dev/zero of=/dev/hda bs=1024k count=5
&gt; # &gt; # echo &quot;Blanking /dev/hdb&quot;
&gt; # &gt; # dd if=/dev/zero of=/dev/hdb1 bs=1024k count=100
&gt; # &gt; # dd if=/dev/zero of=/dev/hdb2 bs=1024k count=100
&gt; # &gt; # echo &quot;Creating partitions on /dev/hda&quot;
&gt; # &gt; # sfdisk /dev/hda &lt; /data/hda.out || exit 1
&gt; # &gt; # echo &quot;Creating partitions on /dev/hdb&quot;
&gt; # &gt; # sfdisk /dev/hdb &lt; /data/hdb.out || exit 2
&gt; # &gt; # echo &quot;Creating swap on /dev/hda2&quot;
&gt; # &gt; # mkswap -v1 /dev/hda2 || exit 2
&gt; # &gt; # echo &quot;Creating swap on /dev/hdb2&quot;
&gt; # &gt; # mkswap -v1 /dev/hda2 || exit 2
&gt; # &gt; # echo &quot;Turning RAID1 on /dev/md0&quot;
&gt; # &gt; # mkraid --configfile /data/raidtab --really-force /dev/md0 
&gt; # || exit 3
&gt; # &gt; # echo &quot;Creating FS&quot;
&gt; # &gt; # mke2fs -j -i 4096 /dev/md0 || exit 4
&gt; # &gt; # echo &quot;Mounting FS&quot;
&gt; # &gt; # mkdir /tmp/md0 || exit 5
&gt; # &gt; # mount -t ext3 /dev/md0 /tmp/md0 || exit 6
&gt; # &gt; # echo &quot;Restoring files (this may take a while)....&quot;
&gt; # &gt; # cd /tmp/md0
&gt; # &gt; # restore -rvf /data/dump.out
&gt; # &gt; # mkdir proc
&gt; # &gt; # mkdir sys
&gt; # &gt; # cd /
&gt; # &gt; # echo &quot;Restoring GRUB.&quot;      
&gt; # &gt; # grub --batch &lt; /data/grub.conf
&gt; # &gt; # STOP=`date +%s`
&gt; # &gt; # TTIME=`expr $STOP - $START`
&gt; # &gt; # echo &quot;&quot;
&gt; # &gt; # echo &quot;*************************************************&quot;
&gt; # &gt; # echo &quot;* Restoration Complete!                         *&quot;
&gt; # &gt; # echo &quot;*************************************************&quot;
&gt; # &gt; # echo &quot;Restoration took $TTIME seconds&quot;
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # Should I skip restore and use tar?
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # 
&gt; # &gt; # _______________________________________________
&gt; # &gt; # Ale mailing list
&gt; # &gt; # Ale at ale.org
&gt; # &gt; # <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; # &gt; # 
&gt; # 


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00772.html">[ale] Ordering SUSE 9.2</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00774.html">[ale] OSS Frontpage replacement (was Re: OSS)</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00767.html">[ale] Restore DVD</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00756.html">[ale] INSTALLFEST!!!!</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00773"><strong>Date</strong></a></li>
<li><a href="threads.html#00773"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>