Re: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-18 Thread Daniel Shahaf
To follow-up, testkernel mounted fine using the procedure from
loader.4th(8):

set kernel=testkernel
unload
boot-conf

And the OS upgrade is now done, after a few more tweaks have been ironed
out (the most interesting of them is a difference between /boot/testkernel
and /boot/kernel, which were supposedly generated by the same 'make'
command some time apart).

Thanks again for the suggestions, all.

Daniel

George Kontostanos wrote on Wed, Feb 15, 2012 at 20:03:14 +0200:
> On Wed, Feb 15, 2012 at 7:48 PM, Daniel Shahaf  wrote:
> > So far we've tried:
> >
> > - 'gpart bootcode -b'
> > - load geom_part_gpt.ko
> > - using zpool.cache from the 9.0-RELEASE CD
> >
> > And none of that seems to have had any effect.
> >
> > Additional info: from the CD environment, 'zpool import' reports an old
> > 'tank' pool on devices mfid[2-5].  (The 'zroot' pool uses mfid[0-5]p3.)
> >
> > Any further ideas, please?
> >
> > Thanks for all the suggestions so far.
> 
> You are running ZFS version 4 while the default is 5 on 9.0-RELEASE
> 
> ---> Assuming your pool is called zroot
> --->This is the way to update your zpool.cache: <---
> 
> Boot with 9.0-RELEASE and proceed with:
> 
> #zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot
> 
> #zfs set mountpoint=/mnt zroot
> #zfs set mountpoint=/mnt/usr zroot/usr
> #zfs set mountpoint=/mnt/var zroot/var
> #zfs set mountpoint=/mnt/tmp zroot/tmp
> 
> ## Ignore any warnings##
> 
> Now export the pool:
> 
> #zpool export -f zroot
> 
> Import the pool back and update the zpool.cache:
> 
> #zpool import -o cachefile=/var/tmp/zpool.cache zroot
> #cp /var/tmp/zpool.cache /mnt/boot/zfs/zpool.cache
> 
> Make sure that bootfs is set correctly:
> 
> #zpool set bootfs=zroot zroot
> 
> Now, unmount any ZFS datasets
> 
> #zfs umount -af
> 
> And fix mountpoints:
> 
> #zfs set mountpoint=legacy zroot
> #zfs set mountpoint=/tmp zroot/tmp
> #zfs set mountpoint=/usr zroot/usr
> #zfs set mountpoint=/var zroot/var
> 
> That should be enough to update your zpool.cache
> 
> If this still doesn't work then you can upgrade your ZFS version to 5.
> 
> Make sure you have backups first!!!
> 
> Before unmounting your datasets issue a:
> 
> zfs upgrade -a
> 
> -- 
> George Kontostanos
> Aicom telecoms ltd
> http://www.aisecure.net
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-16 Thread Daniel Shahaf
George -- thanks for the reply -- I've been a bit busy with other things
so I haven't got around to testing it yet.  I'll update this list once
I've done so.  Thanks again.

Daniel
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread Joshua Isom

On 2/15/2012 12:03 PM, George Kontostanos wrote:

On Wed, Feb 15, 2012 at 7:48 PM, Daniel Shahaf  wrote:

So far we've tried:

- 'gpart bootcode -b'
- load geom_part_gpt.ko
- using zpool.cache from the 9.0-RELEASE CD

And none of that seems to have had any effect.

Additional info: from the CD environment, 'zpool import' reports an old
'tank' pool on devices mfid[2-5].  (The 'zroot' pool uses mfid[0-5]p3.)

Any further ideas, please?

Thanks for all the suggestions so far.


You are running ZFS version 4 while the default is 5 on 9.0-RELEASE

--->  Assuming your pool is called zroot
--->This is the way to update your zpool.cache:<---

Boot with 9.0-RELEASE and proceed with:

#zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot

#zfs set mountpoint=/mnt zroot
#zfs set mountpoint=/mnt/usr zroot/usr
#zfs set mountpoint=/mnt/var zroot/var
#zfs set mountpoint=/mnt/tmp zroot/tmp

## Ignore any warnings##

Now export the pool:

#zpool export -f zroot

Import the pool back and update the zpool.cache:

#zpool import -o cachefile=/var/tmp/zpool.cache zroot
#cp /var/tmp/zpool.cache /mnt/boot/zfs/zpool.cache

Make sure that bootfs is set correctly:

#zpool set bootfs=zroot zroot

Now, unmount any ZFS datasets

#zfs umount -af

And fix mountpoints:

#zfs set mountpoint=legacy zroot
#zfs set mountpoint=/tmp zroot/tmp
#zfs set mountpoint=/usr zroot/usr
#zfs set mountpoint=/var zroot/var

That should be enough to update your zpool.cache

If this still doesn't work then you can upgrade your ZFS version to 5.

Make sure you have backups first!!!

Before unmounting your datasets issue a:

zfs upgrade -a



I remember doing something similar.  It took me a few hours to figure 
everything out and repeated reboots to attempt to get it working.  I 
believe what worked for me wasn't mounting it in /mnt, but actually 
mounting on / and making sure the cache file was in the zfs pool.  I 
think I had to make a copy because zfs wanted to export the pool before 
shutdown which defeated the point.  It was almost a year ago that I 
dealt with it.  I'm 90% sure it's a cache file issue, and it's just 
getting it working properly.


Note: I've never had a problem when upgrading from /usr/src, it was only 
when I was moving datasets to different drives, adding hard drives, and 
redoing my hard drive arrangement.

___
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"


Fwd: [Daniel Shahaf: Re: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade]

2012-02-15 Thread Daniel Shahaf
Forwarding to fs@ per a colleague's suggestion.

tldr: amd64 host running 9.0-RC2 with zfs root won't boot 9.0-RELEASE's
self-compiled GENERIC kernel, hanging at mountfrom>.  Details below.

The previous thread is here:
http://thread.gmane.org/gmane.os.freebsd.questions/285708

Thanks.


- Forwarded message from Daniel Shahaf  -

> Date: Wed, 15 Feb 2012 19:48:11 +0200
> From: Daniel Shahaf 
> To: questi...@freebsd.org
> Cc: "Philip M. Gollucci" ,
>   infrastructure-priv...@apache.org
> Subject: Re: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade
> Message-ID: <20120215174811.GA14636@daniel3.local>
> 
> So far we've tried:
> 
> - 'gpart bootcode -b'
> - load geom_part_gpt.ko
> - using zpool.cache from the 9.0-RELEASE CD
> 
> And none of that seems to have had any effect.
> 
> Additional info: from the CD environment, 'zpool import' reports an old
> 'tank' pool on devices mfid[2-5].  (The 'zroot' pool uses mfid[0-5]p3.)
> 
> Any further ideas, please?
> 
> Thanks for all the suggestions so far.
> 
> 
> Daniel Shahaf wrote on Wed, Feb 15, 2012 at 02:31:10 +0200:
> > One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs root.
> > 
> > It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
> > (self compiled) with a mountfrom error:
> > 
> > http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
> > mountfrom> zfs:zroot
> > Trying to mount root from zfs:zroot []...
> > Mounting from zfs:zroot failed with error 2.
> > 
> > We've tried to upgrade the zpool format 15->28; the symptoms are
> > unchanged.  (The zroot fs is at version 4.)
> > 
> > Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
> > What can do to boot 9.0-RELEASE from our zfs root filesystem?
> > 
> > Thanks.
> > 
> > [[[
> > % uname -a
> > FreeBSD loki.apache.org 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 
> > 2011 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
> > % cat /boot/loader.conf 
> > # zfs
> > zfs_load="YES"
> > vfs.root.mountfrom="zfs:zroot"
> > 
> > # 
> > ipmi_load="YES"
> > 
> > # Console for DRAC5
> > boot_multicons="YES"
> > boot_serial="YES"
> > comconsole_speed="57600"
> > console="comconsole,vidconsole"
> > hint.sio.0.flags=0
> > hint.sio.1.flags=0x10
> > 
> > accf_http_load="YES"
> > accf_data_load="YES"
> > % 
> > 
> > ]]]
> ___
> 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"

- End forwarded message -
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread George Kontostanos
On Wed, Feb 15, 2012 at 7:48 PM, Daniel Shahaf  wrote:
> So far we've tried:
>
> - 'gpart bootcode -b'
> - load geom_part_gpt.ko
> - using zpool.cache from the 9.0-RELEASE CD
>
> And none of that seems to have had any effect.
>
> Additional info: from the CD environment, 'zpool import' reports an old
> 'tank' pool on devices mfid[2-5].  (The 'zroot' pool uses mfid[0-5]p3.)
>
> Any further ideas, please?
>
> Thanks for all the suggestions so far.

You are running ZFS version 4 while the default is 5 on 9.0-RELEASE

---> Assuming your pool is called zroot
--->This is the way to update your zpool.cache: <---

Boot with 9.0-RELEASE and proceed with:

#zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot

#zfs set mountpoint=/mnt zroot
#zfs set mountpoint=/mnt/usr zroot/usr
#zfs set mountpoint=/mnt/var zroot/var
#zfs set mountpoint=/mnt/tmp zroot/tmp

## Ignore any warnings##

Now export the pool:

#zpool export -f zroot

Import the pool back and update the zpool.cache:

#zpool import -o cachefile=/var/tmp/zpool.cache zroot
#cp /var/tmp/zpool.cache /mnt/boot/zfs/zpool.cache

Make sure that bootfs is set correctly:

#zpool set bootfs=zroot zroot

Now, unmount any ZFS datasets

#zfs umount -af

And fix mountpoints:

#zfs set mountpoint=legacy zroot
#zfs set mountpoint=/tmp zroot/tmp
#zfs set mountpoint=/usr zroot/usr
#zfs set mountpoint=/var zroot/var

That should be enough to update your zpool.cache

If this still doesn't work then you can upgrade your ZFS version to 5.

Make sure you have backups first!!!

Before unmounting your datasets issue a:

zfs upgrade -a

-- 
George Kontostanos
Aicom telecoms ltd
http://www.aisecure.net
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread Daniel Shahaf
So far we've tried:

- 'gpart bootcode -b'
- load geom_part_gpt.ko
- using zpool.cache from the 9.0-RELEASE CD

And none of that seems to have had any effect.

Additional info: from the CD environment, 'zpool import' reports an old
'tank' pool on devices mfid[2-5].  (The 'zroot' pool uses mfid[0-5]p3.)

Any further ideas, please?

Thanks for all the suggestions so far.


Daniel Shahaf wrote on Wed, Feb 15, 2012 at 02:31:10 +0200:
> One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs root.
> 
> It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
> (self compiled) with a mountfrom error:
> 
> http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
> mountfrom> zfs:zroot
> Trying to mount root from zfs:zroot []...
> Mounting from zfs:zroot failed with error 2.
> 
> We've tried to upgrade the zpool format 15->28; the symptoms are
> unchanged.  (The zroot fs is at version 4.)
> 
> Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
> What can do to boot 9.0-RELEASE from our zfs root filesystem?
> 
> Thanks.
> 
> [[[
> % uname -a
> FreeBSD loki.apache.org 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 
> 2011 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
> % cat /boot/loader.conf 
> # zfs
> zfs_load="YES"
> vfs.root.mountfrom="zfs:zroot"
> 
> # 
> ipmi_load="YES"
> 
> # Console for DRAC5
> boot_multicons="YES"
> boot_serial="YES"
> comconsole_speed="57600"
> console="comconsole,vidconsole"
> hint.sio.0.flags=0
> hint.sio.1.flags=0x10
> 
> accf_http_load="YES"
> accf_data_load="YES"
> % 
> 
> ]]]
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread Daniel Shahaf
Okay.  I tried booting from the 9.0-RELEASE cd into a shell and
replacing /boot/zfs/zpool.cache on with the one generated by the CD's
kernel.  (I did that by running 'zpool import -R -o cachefile=/tmp/...'
and then copying zpool.cache over that of the live system, in a manner
similar to .) 
That didn't seem to have any effect: the 9.0-RC2 kernel can still boot,
and the 9.0-RELEASE kernel still fails to boot, with the same error.

FTR, here are the old/new zpool.cache files:
% ls -al /boot/zfs/zp*
-rw-r--r--  1 root  wheel  2308 Feb 15 16:43 /boot/zfs/zpool.cache
-rw-r--r--  1 root  wheel  2052 Feb 15 16:41 
/boot/zfs/zpool.cache.20120215rc2

Re George's suggestion -- I noticed a "Can't re-use a leaf
(geom_gpart_gpt)!" error, in case it's relevant.

I have also tried running:
for i in 0 1 2 3 4 5; do
  gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 mfid$i
done
from the RC2 environment.  RC2 still boots; the 9.0-RELEASE /boot/testkernel
still doesn't.

Thanks for the suggestsions.

Joshua Isom wrote on Wed, Feb 15, 2012 at 10:08:52 -0600:
> On 2/14/2012 6:31 PM, Daniel Shahaf wrote:
> >One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs root.
> >
> >It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
> >(self compiled) with a mountfrom error:
> >
> > http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
> > mountfrom>  zfs:zroot
> > Trying to mount root from zfs:zroot []...
> > Mounting from zfs:zroot failed with error 2.
> >
> >We've tried to upgrade the zpool format 15->28; the symptoms are
> >unchanged.  (The zroot fs is at version 4.)
> >
> >Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
> >What can do to boot 9.0-RELEASE from our zfs root filesystem?
> >
> >Thanks.
> >
> 
> Try booting a fixit CD/USB and mounting the zfs pool.  It looks like
> your pool is set up like mine.  If it mounts, the way zfs mounts
> everything, you'll overlay your fixit file system with your zroot.
> It'll make it annoying to fix, especially dealing with zpool.cache.
> If it mounts, make a copy of the cache file.
> 
> I switched from a zpool with two disks to a zmirror, with a third
> disk to help hold data.  It wasn't fun, but it can be done.  One
> problem I had was getting zpool.cache to work properly on reboot.  I
> had to do the overlay mount, and I think I killed the power to
> prevent zfs from removing the file.  I'd suspect a zpool.cache
> problem.  ZFS doesn't think your zroot was mounted so doesn't try to
> mount it even though the bootloader finds the kernel.
> ___
> 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"
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread Daniel Shahaf
George Kontostanos wrote on Wed, Feb 15, 2012 at 17:35:35 +0200:
> Try loading geom_part_gpt.ko to see if it helps.
> 

Thanks for the suggestion.  I've tried:

unload
load /boot/testkernel/kernel
load /boot/testkernel/geom_part_gpt.ko
load /boot/testkernel/zfs.ko
load /boot/testkernel/accf_data.ko
load /boot/testkernel/accf_http.ko
load /boot/testkernel/ipmi.ko

The symptoms are unchanged, except that this time a backtrace was given:

#2 0x808c1bda at vfs_mountroot+0x1d7a
#3 ...at start_init+0x4c

Still looking into the other suggestions.
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread Joshua Isom

On 2/14/2012 6:31 PM, Daniel Shahaf wrote:

One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs root.

It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
(self compiled) with a mountfrom error:

 http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
 mountfrom>  zfs:zroot
 Trying to mount root from zfs:zroot []...
 Mounting from zfs:zroot failed with error 2.

We've tried to upgrade the zpool format 15->28; the symptoms are
unchanged.  (The zroot fs is at version 4.)

Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
What can do to boot 9.0-RELEASE from our zfs root filesystem?

Thanks.



Try booting a fixit CD/USB and mounting the zfs pool.  It looks like 
your pool is set up like mine.  If it mounts, the way zfs mounts 
everything, you'll overlay your fixit file system with your zroot. 
It'll make it annoying to fix, especially dealing with zpool.cache.  If 
it mounts, make a copy of the cache file.


I switched from a zpool with two disks to a zmirror, with a third disk 
to help hold data.  It wasn't fun, but it can be done.  One problem I 
had was getting zpool.cache to work properly on reboot.  I had to do the 
overlay mount, and I think I killed the power to prevent zfs from 
removing the file.  I'd suspect a zpool.cache problem.  ZFS doesn't 
think your zroot was mounted so doesn't try to mount it even though the 
bootloader finds the kernel.

___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread Daniel Shahaf
George Kontostanos wrote on Wed, Feb 15, 2012 at 12:56:33 +0200:
> On Wed, Feb 15, 2012 at 12:15 PM, George Kontostanos
>  wrote:
> > On Wed, Feb 15, 2012 at 5:09 AM, Daniel Shahaf  wrote:
> >> Daniel Staal wrote on Tue, Feb 14, 2012 at 21:39:40 -0500:
> >>> --As of February 15, 2012 2:31:10 AM +0200, Daniel Shahaf is alleged
> >>> to have said:
> >>>
> >>> >One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs
> >>> >root.
> >>> >
> >>> >It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
> >>> >(self compiled) with a mountfrom error:
> >>> >
> >>> >    http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
> >>> >    mountfrom> zfs:zroot
> >>> >    Trying to mount root from zfs:zroot []...
> >>> >    Mounting from zfs:zroot failed with error 2.
> >>> >
> >>> >We've tried to upgrade the zpool format 15->28; the symptoms are
> >>> >unchanged.  (The zroot fs is at version 4.)
> >>> >
> >>> >Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
> >>> >What can do to boot 9.0-RELEASE from our zfs root filesystem?
> >>>
> >>> --As for the rest, it is mine.
> >>>
> >>> Did you update the bootloader?  Depending on when you installed the
> >>> system, it's possible your upgrading the zpool means the bootloader
> >>> can't read it.
> >>>
> >>
> >> Immediately after upgrading the zroot zpool I ran
> >>
> >>    gpart bootcode -p /boot/gptzfsboot -i 1 ${devices}
> >>
> >> as instructed in /usr/src/UPDATING.  I did not pass -b.
> >>
> >>> Daniel T. Staal
> >
> > Hi could you try passing the -b switch like this:
> >
> > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${devices}
> >
> 
> 
> On a second look I doubt that this has anything to do with an outdated
> bootcode.
> 

*nod* trying 'gpart bootcode -b' is on the list still, though.  It
shouldn't hurt.

> Was this a new 9.0-RC2 install?

No, it was an upgrade from 8.2-RELEASE.

> Also, how many devices are in the pool that you are trying to boot from?
> 

Six: mfid[0-5]p3.

> -- 
> George Kontostanos
> Aicom telecoms ltd
> http://www.aisecure.net
> ___
> 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"
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread George Kontostanos
On Wed, Feb 15, 2012 at 5:26 PM, Daniel Shahaf  wrote:
> George Kontostanos wrote on Wed, Feb 15, 2012 at 12:56:33 +0200:
>> On Wed, Feb 15, 2012 at 12:15 PM, George Kontostanos
>>  wrote:
>> > On Wed, Feb 15, 2012 at 5:09 AM, Daniel Shahaf  wrote:
>> >> Daniel Staal wrote on Tue, Feb 14, 2012 at 21:39:40 -0500:
>> >>> --As of February 15, 2012 2:31:10 AM +0200, Daniel Shahaf is alleged
>> >>> to have said:
>> >>>
>> >>> >One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs
>> >>> >root.
>> >>> >
>> >>> >It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
>> >>> >(self compiled) with a mountfrom error:
>> >>> >
>> >>> >    http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
>> >>> >    mountfrom> zfs:zroot
>> >>> >    Trying to mount root from zfs:zroot []...
>> >>> >    Mounting from zfs:zroot failed with error 2.
>> >>> >
>> >>> >We've tried to upgrade the zpool format 15->28; the symptoms are
>> >>> >unchanged.  (The zroot fs is at version 4.)
>> >>> >
>> >>> >Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
>> >>> >What can do to boot 9.0-RELEASE from our zfs root filesystem?
>> >>>
>> >>> --As for the rest, it is mine.
>> >>>
>> >>> Did you update the bootloader?  Depending on when you installed the
>> >>> system, it's possible your upgrading the zpool means the bootloader
>> >>> can't read it.
>> >>>
>> >>
>> >> Immediately after upgrading the zroot zpool I ran
>> >>
>> >>    gpart bootcode -p /boot/gptzfsboot -i 1 ${devices}
>> >>
>> >> as instructed in /usr/src/UPDATING.  I did not pass -b.
>> >>
>> >>> Daniel T. Staal
>> >
>> > Hi could you try passing the -b switch like this:
>> >
>> > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${devices}
>> >
>>
>>
>> On a second look I doubt that this has anything to do with an outdated
>> bootcode.
>>
>
> *nod* trying 'gpart bootcode -b' is on the list still, though.  It
> shouldn't hurt.
>
>> Was this a new 9.0-RC2 install?
>
> No, it was an upgrade from 8.2-RELEASE.
>
>> Also, how many devices are in the pool that you are trying to boot from?
>>
>
> Six: mfid[0-5]p3.
>
>> --
>> George Kontostanos
>> Aicom telecoms ltd
>> http://www.aisecure.net
>> ___
>> 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"

Try loading geom_part_gpt.ko to see if it helps.

-- 
George Kontostanos
Aicom telecoms ltd
http://www.aisecure.net
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread George Kontostanos
On Wed, Feb 15, 2012 at 12:15 PM, George Kontostanos
 wrote:
> On Wed, Feb 15, 2012 at 5:09 AM, Daniel Shahaf  wrote:
>> Daniel Staal wrote on Tue, Feb 14, 2012 at 21:39:40 -0500:
>>> --As of February 15, 2012 2:31:10 AM +0200, Daniel Shahaf is alleged
>>> to have said:
>>>
>>> >One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs
>>> >root.
>>> >
>>> >It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
>>> >(self compiled) with a mountfrom error:
>>> >
>>> >    http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
>>> >    mountfrom> zfs:zroot
>>> >    Trying to mount root from zfs:zroot []...
>>> >    Mounting from zfs:zroot failed with error 2.
>>> >
>>> >We've tried to upgrade the zpool format 15->28; the symptoms are
>>> >unchanged.  (The zroot fs is at version 4.)
>>> >
>>> >Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
>>> >What can do to boot 9.0-RELEASE from our zfs root filesystem?
>>>
>>> --As for the rest, it is mine.
>>>
>>> Did you update the bootloader?  Depending on when you installed the
>>> system, it's possible your upgrading the zpool means the bootloader
>>> can't read it.
>>>
>>
>> Immediately after upgrading the zroot zpool I ran
>>
>>    gpart bootcode -p /boot/gptzfsboot -i 1 ${devices}
>>
>> as instructed in /usr/src/UPDATING.  I did not pass -b.
>>
>>> Daniel T. Staal
>
> Hi could you try passing the -b switch like this:
>
> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${devices}
>


On a second look I doubt that this has anything to do with an outdated
bootcode.

Was this a new 9.0-RC2 install?
Also, how many devices are in the pool that you are trying to boot from?

-- 
George Kontostanos
Aicom telecoms ltd
http://www.aisecure.net
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-15 Thread George Kontostanos
On Wed, Feb 15, 2012 at 5:09 AM, Daniel Shahaf  wrote:
> Daniel Staal wrote on Tue, Feb 14, 2012 at 21:39:40 -0500:
>> --As of February 15, 2012 2:31:10 AM +0200, Daniel Shahaf is alleged
>> to have said:
>>
>> >One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs
>> >root.
>> >
>> >It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
>> >(self compiled) with a mountfrom error:
>> >
>> >    http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
>> >    mountfrom> zfs:zroot
>> >    Trying to mount root from zfs:zroot []...
>> >    Mounting from zfs:zroot failed with error 2.
>> >
>> >We've tried to upgrade the zpool format 15->28; the symptoms are
>> >unchanged.  (The zroot fs is at version 4.)
>> >
>> >Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
>> >What can do to boot 9.0-RELEASE from our zfs root filesystem?
>>
>> --As for the rest, it is mine.
>>
>> Did you update the bootloader?  Depending on when you installed the
>> system, it's possible your upgrading the zpool means the bootloader
>> can't read it.
>>
>
> Immediately after upgrading the zroot zpool I ran
>
>    gpart bootcode -p /boot/gptzfsboot -i 1 ${devices}
>
> as instructed in /usr/src/UPDATING.  I did not pass -b.
>
>> Daniel T. Staal

Hi could you try passing the -b switch like this:

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${devices}


-- 
George Kontostanos
Aicom telecoms ltd
http://www.aisecure.net
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-14 Thread Daniel Shahaf
Daniel Staal wrote on Tue, Feb 14, 2012 at 21:39:40 -0500:
> --As of February 15, 2012 2:31:10 AM +0200, Daniel Shahaf is alleged
> to have said:
> 
> >One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs
> >root.
> >
> >It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
> >(self compiled) with a mountfrom error:
> >
> >http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
> >mountfrom> zfs:zroot
> >Trying to mount root from zfs:zroot []...
> >Mounting from zfs:zroot failed with error 2.
> >
> >We've tried to upgrade the zpool format 15->28; the symptoms are
> >unchanged.  (The zroot fs is at version 4.)
> >
> >Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
> >What can do to boot 9.0-RELEASE from our zfs root filesystem?
> 
> --As for the rest, it is mine.
> 
> Did you update the bootloader?  Depending on when you installed the
> system, it's possible your upgrading the zpool means the bootloader
> can't read it.
> 

Immediately after upgrading the zroot zpool I ran

gpart bootcode -p /boot/gptzfsboot -i 1 ${devices}

as instructed in /usr/src/UPDATING.  I did not pass -b.

> 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"
___
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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-14 Thread Daniel Staal
--As of February 15, 2012 2:31:10 AM +0200, Daniel Shahaf is alleged to 
have said:



One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs
root.

It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
(self compiled) with a mountfrom error:

http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
mountfrom> zfs:zroot
Trying to mount root from zfs:zroot []...
Mounting from zfs:zroot failed with error 2.

We've tried to upgrade the zpool format 15->28; the symptoms are
unchanged.  (The zroot fs is at version 4.)

Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
What can do to boot 9.0-RELEASE from our zfs root filesystem?


--As for the rest, it is mine.

Did you update the bootloader?  Depending on when you installed the system, 
it's possible your upgrading the zpool means the bootloader can't read it.


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: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-14 Thread Sergio de Almeida Lenzi
Usually when upgrade,
I build it in the same machine,
1) csup -L 2 kernel.conf (build src on the new source/version)
2) cd /usr/src,  edit the kernel config
3) make buildworld&&make buildkernel
4) make installworld installkernel
5) boot...

Using this set of commands I was able to upgrade from 8.x to 9.x  for
example
and the system boots (I use only zfs) with a setup like yours,
except that the root partition is at zfspool/root
so the boot.conf reads: vfs.root.mountfrom="zfs:zfspool/root"

For me, works...
___
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"


zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade

2012-02-14 Thread Daniel Shahaf
One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs root.

It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel
(self compiled) with a mountfrom error:

http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png
mountfrom> zfs:zroot
Trying to mount root from zfs:zroot []...
Mounting from zfs:zroot failed with error 2.

We've tried to upgrade the zpool format 15->28; the symptoms are
unchanged.  (The zroot fs is at version 4.)

Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't?
What can do to boot 9.0-RELEASE from our zfs root filesystem?

Thanks.

[[[
% uname -a
FreeBSD loki.apache.org 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 
2011 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
% cat /boot/loader.conf 
# zfs
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot"

# 
ipmi_load="YES"

# Console for DRAC5
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="57600"
console="comconsole,vidconsole"
hint.sio.0.flags=0
hint.sio.1.flags=0x10

accf_http_load="YES"
accf_data_load="YES"
% 

]]]
___
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"