Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-17 Thread Daniel Staal
--As of March 16, 2011 10:17:12 PM +, Matthew Seaman is alleged to have 
said:



I suggest you try out your update in a VM then, because I doubt anyone
will produce an answer definitive enough for you.


--As for the rest, it is mine.

In case anyone still cares, and if a VM running in Parallels on an OS X box 
is a good enough test for people...


Matthew's answer tested out as being correct.  The VM booted correctly 
after the binary update, but failed after upgrading the version of the 
zpool.  Notably, `zpool upgrade -a` mentioned this in it's output, and gave 
the command to fix the problem.  (Which would update the bootloader.)


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-16 Thread Randal L. Schwartz
 Randal == Randal L Schwartz mer...@stonehenge.com writes:

Randal OK, so I'll appeal to the rest of freebsd-questions, since you can't
Randal answer with authority:

Randal can you upgrade from 8.1 to 8.2 using freebsd-update booting from
Randal ZFS as described at http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/,
Randal without having to go through the chicanry described at
Randal http://forums.freebsd.org/showpost.php?p=94557postcount=19 - or is
Randal there an updated version of that post, or should that post be
Randal literally followed?

Randal SOMEONE here knows.  Please help.

So, nobody knows?

Most of the other answers were about a source-code upgrade, not a
binary upgrade.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-16 Thread Daniel Staal

On Wed, March 16, 2011 2:36 pm, Randal L. Schwartz wrote:

 Randal SOMEONE here knows.  Please help.

 So, nobody knows?

 Most of the other answers were about a source-code upgrade, not a binary
  upgrade.

I thought Matthew Seamans' answer sounded pretty definitive:

 A system update via freebsd-update or otherwise won't touch whatever
 bootblocks you have installed.  So if you have already installed
 gptzfsboot and your system already boots ZFS v12 then it will continue to
  boot ZFS v12 without your touching anything to do with boot blocks.

 However, with the 8.1 - 8.2 upgrade, you get (inter-alia) ZFS v13
 support (I think it's v13 -- all my personal kit is running the stable/8
  v28 patchset...) plus equivalent zpool version bump.  The 8.1 bootblocks
  don't understand ZFS v13.  If you wish to update the on-disk formats of
  your ZFS stuff: 'zpool upgrade -a' or 'zfs upgrade -a' then you *will*
  need to reinstall the gptzfsboot boot-blocks.

 You don't have to update the ZFS formats, but you'll miss out on various
  performance and bug-fixes if you don't.

 Given that the gptzfsboot boot blocks are backwards compatible to older
 ZFS versions, highly recommended to update the boot blocks even if you
 aren't intending to upgrade the ZFS bits just yet.  Just as an
 anti-foot-shooting measure.

By that: You don't _have_ to do anything.  But it is probably a good idea.

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-16 Thread Randal L. Schwartz
 Daniel == Daniel Staal dst...@usa.net writes:

Daniel On Wed, March 16, 2011 2:36 pm, Randal L. Schwartz wrote:
 
Randal SOMEONE here knows.  Please help.
 
 So, nobody knows?
 
 Most of the other answers were about a source-code upgrade, not a binary
 upgrade.

Daniel I thought Matthew Seamans' answer sounded pretty definitive:

 A system update via freebsd-update or otherwise won't touch whatever
 bootblocks you have installed.  So if you have already installed
 gptzfsboot and your system already boots ZFS v12 then it will continue to
 boot ZFS v12 without your touching anything to do with boot blocks.

But this was absolutely *not* the case with 8.0 to 8.1.  I had tried it
naively in a VM, and thank goodness, because the VM failed to boot.

Then I googled, and found
http://forums.freebsd.org/showpost.php?p=94557postcount=19 which when I
followed, and it worked fine.

Thus, when I did my live 8.0 to 8.1 upgrades, I followed that extra
gpart bootcode step, and everything worked fine.

Therefore, Matthew Seaman can't be trusted with his answer.  He
apparently did not boot a ZFS-on-root disk with a freebsd-update from
8.0 to 8.1, or he would not have said what he did.

The question I have is, does anyone know *definitively* if the same
thing that broke 8.0 to 8.1 will also likely occur in 8.1 to 8.2, or
does the bootloader in 8.2 now contain what /boot/gptzfsboot contained
in 8.1? As in, does FreeBSD 8.2 now support *native* ZFS booting, or
will it forever be a kluge?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-16 Thread Matthew Seaman
On 16/03/2011 21:44, Randal L. Schwartz wrote:
 Therefore, Matthew Seaman can't be trusted with his answer.  He
 apparently did not boot a ZFS-on-root disk with a freebsd-update from
 8.0 to 8.1, or he would not have said what he did.

Gee.  Thanks.

I suggest you try out your update in a VM then, because I doubt anyone
will produce an answer definitive enough for you.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-16 Thread Randal L. Schwartz
 Matthew == Matthew Seaman m.sea...@infracaninophile.co.uk writes:

Matthew Gee.  Thanks.

Well, either you're not describing your actual experience, or I've
misunderstood.  I'm open to input.  Are you trying to tell me that you
were able to go from 8.0 to 8.1, using freebsd-update, with a
ZFS-on-root boot?  Or were you just saying well, it *should* work,
because it my experience it didn't.

Matthew I suggest you try out your update in a VM then, because I doubt anyone
Matthew will produce an answer definitive enough for you.

Sure they can.  I want someone who actually hacks the ZFS boot code to
help me out.  How do I reach them?  Is ZFS a first-class FS now in the
binary builds, or not?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-14 Thread krad
On 14 March 2011 00:10, Andrew Moran amo...@forsythia.net wrote:

 I have successfully upgraded form FreeBSD 8.1 to FreeBSD 8.2.  Here were my
 steps:

 cvsup /root/stable-supfile
 cd /usr/src
 make buildworld
 make buildkernel
 make installkernel
 shutdown -r now

 *select single user mode*

 mount -u /
 zfs mount -a
 mergemaster -p
 make installworld
 mergemaster

 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad4
 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad5

 zpool upgrade -a
 zfs upgrade -a

 shutdown -r now


 NOTE 1:  the gpart commands are specific to my setup - I'm using a ZFS
 mirror on ad4 and ad5.Your system may be different.
 NOTE 2:  my zfs upgrade -a ran out of swap space and died.  I ran zfs
 upgrade to see what filesystems were left un-upgraded and did those
 manually.

 Thanks Scott Ballantyne and everyone else who responded.

 Cheers!

 --Andy

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



sorry this is a bit late but here is the update script I use. I basically
creates a structure like this. Makes if very easy to flip flop between os
installs by modifying the pool  bootfs variable

system-4k/be  35.2G  1.20T   156K  /system-4k/be
system-4k/be/current  1.22G  1.20T   740M  legacy
system-4k/be/root20110226 2.80G  1.20T   882M  legacy
system-4k/be/root20110302 3.24G  1.20T   882M  legacy
system-4k/be/root20110306 1.32G  1.20T   882M  legacy
system-4k/be/root20110312 1.36G  1.20T   923M  legacy
system-4k/be/tmp   776K  1.21T   260K  /tmp
system-4k/be/usr-local2.84G  1.20T  2.47G  /usr/local/
system-4k/be/usr-obj  5.08G  1.20T  2.09G  /usr/obj
system-4k/be/usr-ports5.82G  1.20T  4.33G  /usr/ports
system-4k/be/usr-ports/distfiles  1.20G  1.20T  1.19G
/usr/ports/distfiles
system-4k/be/usr-src  1.49G  1.20T   973M  /usr/src
system-4k/be/var  4.72G  1.21T   805M  /var
system-4k/be/var/log  3.66G  1.21T  2.34G  /var/log
system-4k/be/var/mysql82.5M  1.21T  33.9M  /var/db/mysql


#!/usr/local/bin/bash

if [ $UID != 0 ] ; then
  echo your not root !! ; exit 1
fi

date=`date '+%Y%m%d'`
oroot=`grep vfs.root.mountfrom=\zfs:system-4k/ /boot/loader.conf | sed -e
s#^.*\zfs:system-4k/be/## -e s#\##`
nroot=root$date
snap=autoup-$RANDOM
zpool=system-4k

export DESTDIR=/$zpool/be/$nroot


if [ $oroot =  $nroot ] ; then
 echo i cant update twice in one day; exit 1
fi

echo building in $zpool/be/$nroot

zfs snapshot $zpool/be/$oroot@$snap 
zfs send $zpool/be/$oroot@$snap | zfs receive -vv $zpool/be/$nroot
cd /usr/src 
make installkernel 
make installworld 
sed -i -e s#$zpool/be/$oroot#$zpool/be/$nroot#
/$zpool/be/$nroot/boot/loader.conf  \
echo Installing boot records.. 
zpool status system-4k | grep -A 2 mirror | grep ad | sed -e s/p[0-9]//  |

while read a b; do
gpart bootcode -b /zfsboot/pmbr -p /zfsboot/gptzfsboot -i 1
$a;
done 
cp -v /zfsboot/zfsloader /$zpool/be/$nroot/boot/. 
echo -en \n\nNow run these two commands to make the changes live, and
reboot
 zfs set mountpoint=legacy $zpool/be/$nroot
 zpool set bootfs=$zpool/be/$nroot $zpool\n\n
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Andrew Moran

Hallo,

I switched my system over to using a ZFS on root setup in 8.1. I want to 
upgrade it to 8.2.   

Is there any changes to the 
buildworld/buildkernel/installworld/installkernel/mergemaster routine?

The only thing I found via google was this:  
http://forum.nginx.org/read.php?23,178896,179074 And he does a mount -u 
./ and a zfs mount -a but it's not clear to me why he's doing that.

--Andy

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Sergiy Suprun
On Sun, Mar 13, 2011 at 17:40, Andrew Moran amo...@forsythia.net wrote:

 Hallo,

 I switched my system over to using a ZFS on root setup in 8.1.     I want to 
 upgrade it to 8.2.

 Is there any changes to the 
 buildworld/buildkernel/installworld/installkernel/mergemaster routine?

 The only thing I found via google was this:  
 http://forum.nginx.org/read.php?23,178896,179074     And he does a mount -u 
 ./ and a zfs mount -a but it's not clear to me why he's doing that.

 --Andy

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Hello Andy

Usually I use
zfs mount -a
to mount all and
zfs set readonly=off zpool/system
to take filesystem writable
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Randal L. Schwartz
 Andrew == Andrew Moran amo...@forsythia.net writes:

Andrew I switched my system over to using a ZFS on root setup in 8.1.
Andrew I want to upgrade it to 8.2.

Andrew Is there any changes to the
Andrew buildworld/buildkernel/installworld/installkernel/mergemaster
Andrew routine?

And for those of us using the binary upgrade, do I need to follow

  http://forums.freebsd.org/showpost.php?p=94557postcount=19

still?  Or do nothing?  Or do something else?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Adam Vande More
On Sun, Mar 13, 2011 at 11:57 AM, Randal L. Schwartz
mer...@stonehenge.comwrote:

  Andrew == Andrew Moran amo...@forsythia.net writes:

 Andrew I switched my system over to using a ZFS on root setup in 8.1.
 Andrew I want to upgrade it to 8.2.

 Andrew Is there any changes to the
 Andrew buildworld/buildkernel/installworld/installkernel/mergemaster
 Andrew routine?

 And for those of us using the binary upgrade, do I need to follow

  http://forums.freebsd.org/showpost.php?p=94557postcount=19

 still?  Or do nothing?  Or do something else?


Well those are his modified upgrade instructions, they seem relatively sound
but the extra steps aren't required.  The gpart stuff is to update the boot
loader which is only necessary if you upgrade the file system or pool eg
zfs/zpool upgrade.  You should probably run this just to prevent potential
severe pain later.

And as it's said, the nextboot is there because he's running a custom kernel
and wants to boot into GENERIC next time then later rebuilds his custom
kernel.

The short story is if you are running GENERIC anyway, a standard binary
upgrade would work fine, but if you have taken a divergent path you'll have
to account for those differences in your upgrade process.

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Randal L. Schwartz
 Adam == Adam Vande More amvandem...@gmail.com writes:

Adam On Sun, Mar 13, 2011 at 11:57 AM, Randal L. Schwartz
Adam mer...@stonehenge.comwrote:

 http://forums.freebsd.org/showpost.php?p=94557postcount=19

Adam Well those are his modified upgrade instructions, they seem
Adam relatively sound but the extra steps aren't required.  The gpart
Adam stuff is to update the boot loader which is only necessary if you
Adam upgrade the file system or pool eg zfs/zpool upgrade.  You should
Adam probably run this just to prevent potential severe pain later.

No, this was *absolutely* necessary for the 8.1 upgrade, because the
binary-installed boot loader was still ZFS ignorant.

I'm just asking if it's *still* necessary for 8.2.  Does the 8.2 boot
loader now know about ZFS if I install it from freebsd-update?

Keep in mind, I'm booting straight from ZFS.  There are no UFS
partitions on my disk.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Scott Ballantyne
On Sun, Mar 13, 2011 at 1:37 PM, Randal L. Schwartz
mer...@stonehenge.comwrote:

  Adam == Adam Vande More amvandem...@gmail.com writes:

 Adam On Sun, Mar 13, 2011 at 11:57 AM, Randal L. Schwartz
 Adam mer...@stonehenge.comwrote:

  http://forums.freebsd.org/showpost.php?p=94557postcount=19

 Adam Well those are his modified upgrade instructions, they seem
 Adam relatively sound but the extra steps aren't required.  The gpart
 Adam stuff is to update the boot loader which is only necessary if you
 Adam upgrade the file system or pool eg zfs/zpool upgrade.  You should
 Adam probably run this just to prevent potential severe pain later.

 No, this was *absolutely* necessary for the 8.1 upgrade, because the
 binary-installed boot loader was still ZFS ignorant.

 I'm just asking if it's *still* necessary for 8.2.  Does the 8.2 boot
 loader now know about ZFS if I install it from freebsd-update?

 Keep in mind, I'm booting straight from ZFS.  There are no UFS
 partitions on my disk.

 --
 Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
 0095
 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
 See http://methodsandmessages.posterous.com/ for Smalltalk discussion
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


You need the new bootloader if you upgrade the zpool and zfs filesystems.
You'll get a message to that effect if you do that.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Matthew Seaman
On 13/03/2011 17:37, Randal L. Schwartz wrote:
 Adam == Adam Vande More amvandem...@gmail.com writes:
 
 Adam On Sun, Mar 13, 2011 at 11:57 AM, Randal L. Schwartz
 Adam mer...@stonehenge.comwrote:
 
 http://forums.freebsd.org/showpost.php?p=94557postcount=19
 
 Adam Well those are his modified upgrade instructions, they seem
 Adam relatively sound but the extra steps aren't required.  The gpart
 Adam stuff is to update the boot loader which is only necessary if you
 Adam upgrade the file system or pool eg zfs/zpool upgrade.  You should
 Adam probably run this just to prevent potential severe pain later.
 
 No, this was *absolutely* necessary for the 8.1 upgrade, because the
 binary-installed boot loader was still ZFS ignorant.
 
 I'm just asking if it's *still* necessary for 8.2.  Does the 8.2 boot
 loader now know about ZFS if I install it from freebsd-update?
 
 Keep in mind, I'm booting straight from ZFS.  There are no UFS
 partitions on my disk.

A system update via freebsd-update or otherwise won't touch whatever
bootblocks you have installed.  So if you have already installed
gptzfsboot and your system already boots ZFS v12 then it will continue
to boot ZFS v12 without your touching anything to do with boot blocks.

However, with the 8.1 - 8.2 upgrade, you get (inter-alia) ZFS v13
support (I think it's v13 -- all my personal kit is running the stable/8
v28 patchset...) plus equivalent zpool version bump.  The 8.1 bootblocks
don't understand ZFS v13.  If you wish to update the on-disk formats of
your ZFS stuff: 'zpool upgrade -a' or 'zfs upgrade -a' then you *will*
need to reinstall the gptzfsboot boot-blocks.

You don't have to update the ZFS formats, but you'll miss out on various
performance and bug-fixes if you don't.

Given that the gptzfsboot boot blocks are backwards compatible to older
ZFS versions, highly recommended to update the boot blocks even if you
aren't intending to upgrade the ZFS bits just yet.  Just as an
anti-foot-shooting measure.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Randal L. Schwartz
 Daniel == Daniel Staal dst...@usa.net writes:

Daniel Nothing in the release notes appears to mention the bootloader and zfs
Daniel together, so I'd take the safe approach and assume it is still
Daniel necessary.

OK, so I'll appeal to the rest of freebsd-questions, since you can't
answer with authority:

can you upgrade from 8.1 to 8.2 using freebsd-update booting from
ZFS as described at http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/,
without having to go through the chicanry described at
http://forums.freebsd.org/showpost.php?p=94557postcount=19 - or is
there an updated version of that post, or should that post be
literally followed?

SOMEONE here knows.  Please help.

Otherwise, I have to build a VM system again with 8.1, just like I did
with 8.0, to figure out that 8.1 would NOT upgrade cleanly, and required
that extra step.

Please save me the trouble for 8.1 to 8.2.  I have four VPSs that need
to move from 8.1 to 8.2 remotely.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading FreeBSd when using a zfs-only installation?

2011-03-13 Thread Andrew Moran
I have successfully upgraded form FreeBSD 8.1 to FreeBSD 8.2.  Here were my 
steps:

cvsup /root/stable-supfile 
cd /usr/src
make buildworld
make buildkernel
make installkernel
shutdown -r now 

*select single user mode*

mount -u /
zfs mount -a
mergemaster -p
make installworld
mergemaster

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad4
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad5

zpool upgrade -a
zfs upgrade -a

shutdown -r now


NOTE 1:  the gpart commands are specific to my setup - I'm using a ZFS mirror 
on ad4 and ad5.Your system may be different.
NOTE 2:  my zfs upgrade -a ran out of swap space and died.  I ran zfs 
upgrade to see what filesystems were left un-upgraded and did those manually. 

Thanks Scott Ballantyne and everyone else who responded.  

Cheers!

--Andy

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org