Saturday, March 10, 2007

FreeBSD warp

Just upgraded my alice from 4-STABLE to ...tadaaah...6-STABLE. Oh well, nothing so special, but I had to struggle a bit while dragging vinum partitions through 5.4!!! Well...it wasn't that smooth but she's up'n'running now :-)

4 comments:

volpedue said...

and today I finished moving the root partition into a GEOM_MIRROR device :-)

Tutorials advise to gmirror the whole disk (for example ad0) and then label it. I still have the gvinum partitions so, no way I'm gonna tamper with them, at least not until I convert my gvinum partitions into gmirror.

So the idea was to keep gvinum /usr, /tmp, and /var, and move /dev/ad0s1a + /dev/ad1s1a into a gmirror.

Quite easy, but I got some troubles cause of a "WARNING: Expected rawoffset 0, found 63" when mounting /dev/mirror/groot.
To overcome the rawoffset and bootloader problems I re-bsdlabeled ad0s1 simply moving to 63 the a: partition offset.

That is, bsdlabel ad1s1a so that from:
a: 262061 0 4.2BSD 2048 16384 16392
to
a: 262061 63 4.2BSD 2048 16384 16392

after that it's easy to build the mirror starting from ad1s1a, dumping root over it, and reboot off it. Then insert ad0s1a bsdlabeled like ad1s1.

volpedue said...

So, I have:
[alice:109] ~% mount
/dev/mirror/groot on / (ufs, local)
devfs on /dev (devfs, local)
/dev/gvinum/var on /var (ufs, local, soft-updates)
/dev/gvinum/tmp on /tmp (ufs, local, soft-updates)
/dev/gvinum/usr on /usr (ufs, local, soft-updates)
procfs on /proc (procfs, local)
devfs on /var/named/dev (devfs, local)

Unknown said...

Ahhh it's great to have you back my friend! ;)

windrago said...

indeed.
It's great to have him free. Fox, more actual than ever.
http://windrago.wordpress.com/2006/02/28/rivolta/