Boot from Raid
Alan L. Stange
stange@bnl.gov
Wed, 25 Jun 1997 08:38:46 -0400
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
> 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".
2) why the 51927b block size? Is there something special about this
size?
--
Alan L. Stange
Computing and Communications Division
Brookhaven National Laboratory
stange@bnl.gov http://pubweb.bnl.gov/people/stange/