Boot from Raid

leavitt@webcom.com leavitt@webcom.com
Wed, 25 Jun 1997 08:46:42 -0700 (PDT)


> 
> leavitt@webcom.com wrote:
> 
> > #!/bin/sh
> > #
> > #
> > # Script for mirroring two disks through a cron job.
> > #
> > #
> > 
> > echo "Now performing a disk to disk copy of diskbrd to diskbrd1"
> > begin_date=`date`
> > echo ""
> > 
> > dd if=/dev/rdsk/c0t10d0s2 of=/dev/rdsk/c0t11d0s2 bs=51927b
> > 
> > sync /dev/rdsk/c0t10d0s0

Thanks! Typo
 this should be sync /dev/rdsk/c0t11d0s0

> > fsck -y -F ufs /dev/rdsk/c0t11d0s0
> > fsck -y -F ufs /dev/rdsk/c0t11d0s0
> > 
> >   <SNIP>
> 
> Just two questions:
> 
> 1) wouldn't it make sense to sync the data to the disk prior to doing
> the dd command?  Seems to me that there could be quite a bit of data in
> memory that should be on disk, and that wouldn't get moved to the new
> "mirror".

The original script does list the commands in this order. I think
this does make sense, however, so I added it.

> 
> 2) why the 51927b block size?  Is there something special about this
> size?

No idea.
> 
> --
> Alan L. Stange
> Computing and Communications Division
> Brookhaven National Laboratory
> stange@bnl.gov      http://pubweb.bnl.gov/people/stange/
> 


-- 
WebCom (sm)                        Thomas Leavitt--leavitt@webcom.com
Voice: (408) 457-9671 x101         Executive Vice President
 
WebCom Home Page <URL:http://www.webcom.com/>