Re: [foxboro] Backup & Restore using dd command

  • From: "Jim Kahlden" <James.Kahlden@xxxxxxxx>
  • To: <foxboro@xxxxxxxxxxxxx>
  • Date: Mon, 21 May 2007 07:49:58 -0500

Here is an excerpt from the Practical System Tips book that was orginally
done by Julie Monsour.

Backups * Using the dd command with bs and count

bs-80b means copy data in chunks of 80 blocks at a time.
bs-80 means copy data in chunks of 80 bytes at a time.

Using bs and count with the dd command:  bs defaults to 1024 bytes/block on
AP20, AW50 and AW51A; 512 on PW; and 2084 on 51B and 51C.
Example:  Bs=80b will copy 80 bytes at a time.
Count gives the number of times to get a given number of blocks.
Example:  bs=512b count=2880 means to get 512 bytes/block for 2,880 times
which gets a total of 1,474,560 bytes.  You*ll be getting 2880 blocks of
data.  A 5 ** floppy on PW has 2400 blocks at 512 bytes/block.  A 5 **
floppy on AP20 has 1200 blocks at 1024 bytes/block.  To get the count to use
bs=80.  Divide 80 into 2400 or 1200 depending on which you*re using. 
Example:  Using dd on 5 ** floppy on PW with bs=80b, the count would be
count=15360.  If you use a larger count than is necessary, it will stop at
the end.  If there*s a bad spot on the disk, it will be flagged as an
error.  If you use the dd command with no bs or count, it will do a bit copy
of the entire disk using the defaults.  Backups  AP20 - Copying From Primary
Hard Drive (rshd3.all) To Extra Hard Drive (rshd4.all) On Line.  This extra
hard drive is an exact mirror image of the primary to be used when the
primary fails. It can be swapped out with the primary. 
 
dd if=/dev/rshd3.all of=/dev/rshd4.all
The above command will copy the entire drive from the system disk to the
backup (rshd4).  You can also check to see exactly how many blocks are on
rshd3.

dd if=/dev/rshd3.all of=/dev/null
The number of blocks returned should be the same as when the *dd* was
performed.

To backup an entire system drive to 5gb tape using *dd*:
Shutdown the AW/AP.
dd if=/dev/sd0c of=/dev/rst9 bs=96b
(sd0c is primary drive, sd2c is secondary drive)
To restore, swap if and of.  (if=input file, of=output file)

Hope this helps.

Jim
 

>>> "Ali Ahmed" <alizahidi@xxxxxxxxxxx> 5/19/2007 12:01 AM >>>
Dear Friends, If anyone knows the old backup and restore procedures using
ddcommand, kindly advise.   Rgds, Ali Ahmed Zahidi      
----------------------------------------------------------------------------
FREE pop-up blocking with the new MSN Toolbar MSN Toolbar[1] Get it now! 

--- Links ---
   1 http://g.msn.com/8HMBEN/2752??PS=47575 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html 
 
foxboro mailing list:             //www.freelists.org/list/foxboro 
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join 
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave 
 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: