checking bootloader



I have two identical ~600 GiB disks, and I use one is for daily operation
while one is a mirror. The mirror is spun down when it's not being used,
so in effect it's spun down 23+ hours a day. I want to have them
identical, so that when one fails, I can change some cables and/or
jumpers, reboot, and have a system that's current as of the last
backup. I wrote a script /export/bin/backup which copies the main drive
to the backup drive. It's run once a day, once it's fixed up. Since
the defined partitions take up maybe half the drive, I figured it's
worthwhile to modify /export/bin/backup so it copies each partition
instead of the whole thing. I can only do that if the partition tables
are identical; it checks that, and does a "traditional" copy if they
differ.

But the bootloader is not copied in the partition-by-partition mode, so
if I change it on the master, the mirror isn't. How many blocks do I
need to copy to ensure the bootloader gets copied? It doesn't matter if
some of the partition table or first partition get copied as well,
since they're identical anyway (or should be).

--
-eben QebWenE01R@xxxxxxxxxxxxxxxxx royalty.mine.nu:81

My parents went to a planet where the inhabitants have no
bilateral symmetry, and all I got was this lousy F-shirt.
.



Relevant Pages

  • Re: gjournal: journaled slices vs. journaled partitions
    ... I didn't want to only put gmirror and have full drives rebuild ... I went with this setup anyway and I made some reset tests to see what ... provider is directly on the mirror provider for all mirrored filesystems ... the ill-advised journaled small partition issue been successfully overcome ...
    (freebsd-questions)
  • Re: checking bootloader
    ... The mirror is spun down when it's not being used, ... I can only do that if the partition tables ... But the bootloader is not copied in the partition-by-partition mode, ...
    (comp.os.linux.misc)
  • RE: Breaking and using a mirrored drive
    ... creation and use of a boot disk, ... server's OS now BUT in order to break the mirror set and make the new C: ... partition active I need to get into the Computer Management console's Disk ... if performing a recovery installation from the OS installation CD restore all ...
    (microsoft.public.win2000.general)
  • Re: how i locate swap area
    ... what you have with the command 'vgdisplay -v vg00'. ... Why Mirror Copies is 0? ... it seems that you have no disk mirroring. ... Primary Partition Table: ...
    (comp.sys.hp.hpux)
  • Re: SBS 2003 Installation Drives - Folders
    ... for an SBS 2003 Premium installation. ... OS, Exchange Components, and SQL Components. ... Mirror 1 ... Second Partition = 25 Gb. ...
    (microsoft.public.windows.server.sbs)