On Mon, 17 Jan 2011 17:40:54 +0000 Roderick Johnstone <[email protected]> wrote:
> Hi > > How can I install grub to say the /dev/sdp device (root partition on > sdp1) in a server so that that disk could replace a failed one in a > production system and boot as sda? > > In my setup, disks (including partitions for root and data) are mirrored > between production and server systems (using rsync) to provide a quick > swap backup in the event of disk failure on the production system. > > I have a script that fixes up the UUID of disk partitions etc in fstab > and grub.conf on the mirror as these are different from the production > system disks, but I don't know how to get grub installed on eg /dev/sdp > so that I can boot it straight away when the disk is swapped into the > production system where it will be /dev/sda. > > Currently I have to boot into a rescue mode and use grub-install once > the disk is swapped in to the production system to be able to get it to > boot. > > This is grub 0.97 on Fedora 14 x86_64. > > Thanks for any pointers anyone can give. "IF" it doesn't have to be booted while it's /dev/sdp I would briefly plug-in the STBY disk as /dev/sda (with it's fstab showing /dev/sda as /) long enough to run grub on it then return it as /dev/sdp. _______________________________________________ Help-grub mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-grub
