Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2002 09:22:33 -0400
From:      Rob Ellis <rob@web.ca>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Questions about vinum and failure of root partition
Message-ID:  <20020807132232.GA47309@web.ca>
In-Reply-To: <005e01c23dcb$061acbb0$6602a8c0@swbell.net>
References:  <200208070101.g7711iU06306@clunix.cl.msu.edu> <005e01c23dcb$061acbb0$6602a8c0@swbell.net>

next in thread | previous in thread | raw e-mail | index | archive | help
one workaround for having to have a non-mirrored boot
partition with 2 disks is to put 2 slices on each
disk -- one for fbsd system partitions, and one for
mirrored data...

 ad0s1, ad2s1 -> small bootable slices for os partitions
 ad0s2, ad2s2 -> rest of the disk for mirrored data partitions

install fbsd on ad0s1, with partitions for / and swap
and maybe tmp. partition ad2s1 the same way. create 
your vinum mirror using partitions on ad0s2 and ad2s2
and symlink /var and whatever else you want to directories 
on the mirror.

then create a backup of the fbsd partitions on
the first disk, copying everything from ad0s1 to ad2s1:

  dd if=/dev/ad0s1 of=/dev/ad2s1 bs=102400

fsck the newly copied filesystems:

  # a, e... are partitions
  for i in a e f g h ; do fsck -y /dev/ad2s1$i ; done

install ad0's master boot record to ad2

  fdisk -B /dev/ad2

and now the second disk is a bootable copy of the
first; if the first disk fails, you swap the cables
on the disks (make the secondary the primary)
and reboot -- the os and vinum come back up.

- rob

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020807132232.GA47309>