RE: FreeBSD boot menu is missing



So what you do, instead, is make sure there is a little space left over
at the end of the slice that you create in the first step. Then, once
gmirror is available, you gmirror label the slice, then gmirror insert
the corresponding slice on the other disk(s), and gmirror rebuild. No
copying involved; gmirror takes care of it all.

The key here is that 'gmirror label' is non-destructive as long as the
last sector on the provider is unused.

The problem is I was unable to get multiple slices defined in a sysinstall config script. I tried many variations of parameters to pump into diskPartitionEditor and diskLabelEditor so that we could create three slices during the install but I couldn't find anything that worked. So I ended up having to create a single full disk slice to install the OS onto, and then in a post commit step slice the disks up as we want them and copy the OS over. I couldn't find a single example how to create multiple slices in a sysinstall config file. If you know how to do this, I'd love to see it.

It does, AFAIK, even on SATA, provided the controller supports it and is
configured correctly.

With the proper controller and drive, yes, FreeBSD does support hot swap, to a point. Let's say for example that you have a file system mounted on a drive and that drive dies. You can pull it and put in a new one, but FreeBSD will not let you unmount the file system on the original drive. Even umount -f fails. We have to reboot to get the old mount point released, and we haven't found any way around this.

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Re: gmirror problem on 5.3-R i386 (SOLVED)
    ... which enables gmirror to locate and insert your slice. ... > I'm not sure why gmirror label shows that but it's definately misleading. ... > Flags: DIRTY ... I tried to run the above commands under /bin/sh: ...
    (freebsd-questions)
  • Re: Adding partitions to gmirror device
    ... My dilemma is -- how do I add another partition without hosing the ... gmirror, create the new partition, then re-create the gmirror. ... $ sudo gmirror deactivate gm0 /dev/ad6 ... so it is slice 1 of a possible 4). ...
    (freebsd-questions)
  • Re: How to tear down a geom mirror?
    ... slices of all drives and run "gmirror clear" on each, ... What btw is in these first sectors? ... use this command because I saw it being done in one of the gmirror ... It clears the MBR (slice table) and GPT or disklabel ...
    (freebsd-hackers)
  • Re: Problem with migrating onto a gmirror slice.
    ... > I have a system that I set up to use a gmirror back in the 5.3beta ... > It's a scsi system w/ two identical disks. ... > I noticed that the slice table was messed up. ... Edit the label. ...
    (freebsd-stable)
  • Re: gmirror + gjournal setup question
    ... I would like to know what is the best way to setup gmirror + gjournal, ... on a slice level on two hard drives. ... journalized slice on both hard drive and then I mirror /dev/ad0s1.journal ...
    (freebsd-questions)