[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Wed Oct 20 15:16:00 2004 -->
- <!--x-from-r13: psbjyre ng bhgcbfgfragvary.pbz (Quevfgbcure Tbjyre) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Restore DVD -->
- <li><em>date</em>: Wed Oct 20 15:16:00 2004</li>
- <li><em>from</em>: cfowler at outpostsentinel.com (Christopher Fowler)</li>
- <li><em>in-reply-to</em>: <<a href="msg00766.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00766.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Restore DVD</li>
On Wed, 2004-10-20 at 15:13, Yu, Jerry wrote:
> it may help some by turning on swap after mkswap (swapon)
> it may help some by restoring to raw disks instead of to logical volume like
> md0 (or tune down the mirroring speed as someone suggested in a different
> thread)
> it may help to try 'tar' and untar. I always use tar/untar. em, cpio
> sometimes.
>
> Q: by 'restore DVD', do you mean 'DVD containing the backup dump', or 'a
> bootable DVD that mounts itself and mkfs/mkswap/restore/grub and all that'?
>
> # -----Original Message-----
> # From: ale-bounces at ale.org [<a rel="nofollow" href="mailto:ale-bounces">mailto:ale-bounces</a> at ale.org]On Behalf Of
> # Christopher Fowler
> # Sent: Wednesday, October 20, 2004 1:06 PM
> # To: ale at ale.org
> # Subject: [ale] Restore DVD
> #
> #
> # I'm creating a restore DVD and it is taking a very long time
> # to restore
> # the data. It takes longer to restore than it did to install
> # the system.
> #
> # I'm using dump/restore to do the archival and restoration. When I do
> # create the backup I am creating it with the option '-j9'.
> # This adds the
> # highest level ob bzip2 compression. I am not concerned with the
> # resources that takes since the system is a 3.0P4 with 1mb
> # cache. It has
> # plenty of horsepower to do the restoration.
> #
> # What I can not figure out is why it is taking so long.
> #
> # Here is the data:
> #
> # #1 Restore DVD
> #
> # 12x CD-RW used for testing and not wasting blank CD-Rs
> #
> #
> # #2 disk usage and size after restore
> #
> # Filesystem Size Used Available Use% Mounted on
> # /dev/root.old 891.0k 387.0k 504.0k 43% /initrd
> # /dev/hdc 651.2M 651.2M 0 100% /initrd/cd
> # /dev/loop0 89.7M 89.7M 0 100% /
> # none 501.5M 3.3M 498.2M 1% /mnt/rw
> # /dev/md0 180.0G 1.6G 169.1G 1%
> # /mnt/rw/tmp/md0
> #
> # I'm only restoring 1.6G of stuff
> #
> #
> # #3 Time it took to do resotre:
> #
> # *************************************************
> # * Restoration Complete! *
> # *************************************************
> # Restoration took 15903 seconds
> #
> # That is a very long time
> #
> # #4 Script used
> # #!/bin/sh
> #
> # echo "*************************************************"
> # echo "* Restore System to Factory Defaults *"
> # echo "*************************************************"
> # echo -n "Are you sure (y/n): "
> # read ans
> # if [ $ans != 'y' ]
> # then
> # exit 0
> # fi
> #
> # START=`date +%s`
> #
> # raidstop --configfile /data/raidtab /dev/md0 2>/dev/null 1>/dev/null
> # echo "Blanking /dev/hda"
> # dd if=/dev/zero of=/dev/hda1 bs=1024k count=100
> # dd if=/dev/zero of=/dev/hda2 bs=1024k count=100
> # dd if=/dev/zero of=/dev/hda bs=1024k count=5
> # echo "Blanking /dev/hdb"
> # dd if=/dev/zero of=/dev/hdb1 bs=1024k count=100
> # dd if=/dev/zero of=/dev/hdb2 bs=1024k count=100
> # echo "Creating partitions on /dev/hda"
> # sfdisk /dev/hda < /data/hda.out || exit 1
> # echo "Creating partitions on /dev/hdb"
> # sfdisk /dev/hdb < /data/hdb.out || exit 2
> # echo "Creating swap on /dev/hda2"
> # mkswap -v1 /dev/hda2 || exit 2
> # echo "Creating swap on /dev/hdb2"
> # mkswap -v1 /dev/hda2 || exit 2
> # echo "Turning RAID1 on /dev/md0"
> # mkraid --configfile /data/raidtab --really-force /dev/md0 || exit 3
> # echo "Creating FS"
> # mke2fs -j -i 4096 /dev/md0 || exit 4
> # echo "Mounting FS"
> # mkdir /tmp/md0 || exit 5
> # mount -t ext3 /dev/md0 /tmp/md0 || exit 6
> # echo "Restoring files (this may take a while)...."
> # cd /tmp/md0
> # restore -rvf /data/dump.out
> # mkdir proc
> # mkdir sys
> # cd /
> # echo "Restoring GRUB."
> # grub --batch < /data/grub.conf
> # STOP=`date +%s`
> # TTIME=`expr $STOP - $START`
> # echo ""
> # echo "*************************************************"
> # echo "* Restoration Complete! *"
> # echo "*************************************************"
> # echo "Restoration took $TTIME seconds"
> #
> #
> # Should I skip restore and use tar?
> #
> #
> #
> #
> #
> # _______________________________________________
> # Ale mailing list
> # Ale at ale.org
> # <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
> #
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00766" href="msg00766.html">[ale] Restore DVD</a></strong>
<ul><li><em>From:</em> Jerry.Yu at Voicecom.com (Yu, Jerry)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00766.html">[ale] Restore DVD</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00768.html">[ale] rpmfind.net</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00766.html">[ale] Restore DVD</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00773.html">[ale] Restore DVD</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00767"><strong>Date</strong></a></li>
<li><a href="threads.html#00767"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>