Bug #2610
closedTodo #2109: pfSense on FreeBSD 10.x
Whole-disk gmirror may break when upgraded to a FreeBSD 10.x base
0%
Description
Due to various changes in geom and how things are checked, a whole-disk gmirror may break when the base OS is updated to FreeBSD 9.x. There are some installs out there that will probably be affected.
The most common workaround to let such a mirror keep functioning is to set this in loader.conf:
kern.geom.part.check_integrity=0
People who setup mirrors following the FreeBSD handbook (and our old instructions), may encounter such errors. I believe the way the installer creates a gmirror is OK, but it needs testing.
In 9.x a mirror created on disks after they were already active would be considered corrupt since the gmirror metadata resides over actual FS data at the end of the disk. However if the mirror is created before the filesystems, this may work out.
The better way in 9.x is to use gpt to setup the partitions, and then use gmirror to mirror the partitions rather than the whole disk, but that may not yet be needed if the current installer method still works.
Updated by Renato Botelho about 11 years ago
- Subject changed from Whole-disk gmirror may break when upgraded to a FreeBSD 9.x base to Whole-disk gmirror may break when upgraded to a FreeBSD 10.x base
Updated by Jim Pingle over 10 years ago
- Status changed from New to Closed
Non-issue. Ran some tests and a gmirror installed using our installer gmirror option on 2.1.x or before upgraded OK, booted fine on 2.2. If someone hacked on an older style manual gmirror and hits issues they can use the sysctl mentioned above, though they really should wipe+reload with a proper mirror configuration.
Updated by Jim Pingle over 10 years ago
Another relevant bit of info: The installer option works OK on 2.2 as well.