Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2006 09:08:28 +0100
From:      Chris Hastie <lists@oak-wood.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Vinum and upgrading from 5.1-RELEASE 
Message-ID:  <RvVviKD8bgPEFwyW@celandine.oak-wood.co.uk>

next in thread | raw e-mail | index | archive | help
I tried to upgrade from 5.1-RELEASE to 5_RELENG last night and hit big
problems with vinum. 5_RELENG in retrospect was an error I suspect, as
what I really wanted was 5.4-RELEASE.

The system has two mirrored disks, with Vinum used for the root
filesystem. make buildworld, make buildkernel and make installkernel
happened without complaint. But on rebooting vinum loaded, but failed to
load any volumes. Consequently the root filesystem didn't mount.

I ended up manually mounting ad0s1a, then in a desperate attempt to get
out of the situation

mount -u -w /
mount /dev/ad2s1a /root
cd /boot
mv kernel kernel.55
mv kernel.old kernel
cd /root/boot
mv kernel kernel.55
mv kernel.old kernel
reboot

To my surprise and relief this worked and I managed to get more or less
back to where I started.

But what do I need to do now to upgrade this system and have it actually
work?

For info, output of vinum dumpconfig below:

Drive chaucer:  Device /dev/ad0s1h
                Created on xxxxxxx at Mon Sep 29 21:14:13 2003
                Config last updated Thu Apr 13 07:59:46 2006
                Size:      58946229760 bytes (56215 MB)
volume rootvol state up
volume varvol state up
volume tempvol state up
volume usrvol state up
plex name rootvol.p0 state up org concat vol rootvol
plex name rootvol.p1 state up org concat vol rootvol
plex name varvol.p0 state up org concat vol varvol
plex name varvol.p1 state up org concat vol varvol
plex name tempvol.p0 state up org concat vol tempvol
plex name tempvol.p1 state up org concat vol tempvol
plex name usrvol.p0 state up org concat vol usrvol
plex name usrvol.p1 state up org concat vol usrvol
sd name rootvol.p0.s0 drive shakespeare len 524288s driveoffset 265s state up plex rootvol.p0 plexoffset 0s
sd name rootvol.p1.s0 drive chaucer len 524288s driveoffset 265s state up plex rootvol.p1 plexoffset 0s
sd name varvol.p0.s0 drive shakespeare len 31457280s driveoffset 524553s state up plex varvol.p0 plexoffset 0s
sd name varvol.p1.s0 drive chaucer len 31457280s driveoffset 524553s state up plex varvol.p1 plexoffset 0s
sd name tempvol.p0.s0 drive shakespeare len 1048576s driveoffset 31981833s state up plex tempvol.p0 plexoffset 0s
sd name tempvol.p1.s0 drive chaucer len 1048576s driveoffset 31981833s state up plex tempvol.p1 plexoffset 0s
sd name usrvol.p0.s0 drive shakespeare len 82098946s driveoffset 33030409s state up plex usrvol.p0 plexoffset 0s
sd name usrvol.p1.s0 drive chaucer len 82098946s driveoffset 33030409s state up plex usrvol.p1 plexoffset 0s

Drive /dev/ad0s1h: 54 GB (58946229760 bytes)
Drive shakespeare:      Device /dev/ad2s1h
                Created on xxxxxxx at Mon Sep 29 21:14:13 2003
                Config last updated Thu Apr 13 07:59:46 2006
                Size:      58946229760 bytes (56215 MB)
volume rootvol state up
volume varvol state up
volume tempvol state up
volume usrvol state up
plex name rootvol.p0 state up org concat vol rootvol
plex name rootvol.p1 state up org concat vol rootvol
plex name varvol.p0 state up org concat vol varvol
plex name varvol.p1 state up org concat vol varvol
plex name tempvol.p0 state up org concat vol tempvol
plex name tempvol.p1 state up org concat vol tempvol
plex name usrvol.p0 state up org concat vol usrvol
plex name usrvol.p1 state up org concat vol usrvol
sd name rootvol.p0.s0 drive shakespeare len 524288s driveoffset 265s state up plex rootvol.p0 plexoffset 0s
sd name rootvol.p1.s0 drive chaucer len 524288s driveoffset 265s state up plex rootvol.p1 plexoffset 0s
sd name varvol.p0.s0 drive shakespeare len 31457280s driveoffset 524553s state up plex varvol.p0 plexoffset 0s
sd name varvol.p1.s0 drive chaucer len 31457280s driveoffset 524553s state up plex varvol.p1 plexoffset 0s
sd name tempvol.p0.s0 drive shakespeare len 1048576s driveoffset 31981833s state up plex tempvol.p0 plexoffset 0s
sd name tempvol.p1.s0 drive chaucer len 1048576s driveoffset 31981833s state up plex tempvol.p1 plexoffset 0s
sd name usrvol.p0.s0 drive shakespeare len 82098946s driveoffset 33030409s state up plex usrvol.p0 plexoffset 0s
sd name usrvol.p1.s0 drive chaucer len 82098946s driveoffset 33030409s state up plex usrvol.p1 plexoffset 0s

Drive /dev/ad2s1h: 54 GB (58946229760 bytes)


and /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad0s1b             none            swap    sw              0       0
/dev/ad2s1b             none            swap    sw              0       0
/dev/vinum/rootvol              /               ufs     rw              1       1
/dev/vinum/tempvol              /tmp            ufs     rw              2       2
/dev/vinum/usrvol               /usr            ufs     rw              2       2
/dev/vinum/varvol               /var            ufs     rw,userquota            2       2
/dev/ad1s1d                     /bak            ufs     rw              2       2


-- 
Chris Hastie



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