Quantcast

Mounting from zfs:system/ROOT/nch failed with error 2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Mounting from zfs:system/ROOT/nch failed with error 2

vermaden
Hi,

I have a system that successfully booted from system/ROOT/default,
but now failed with system/ROOT/nch (other ROOT installation),
it ends with ERROR 2, what does ERROR 2 means?

Its 9.0-RELEASE.

Reagads and thanks in advance,
vermaden







































...
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mounting from zfs:system/ROOT/nch failed with error 2

vermaden
I forgot to attach the screenshot from KVM ...

http://ompldr.org/vZGRxeg

Regards,
vermaden

"vermaden" <[hidden email]> pisze:

> Hi,
>
> I have a system that successfully booted from system/ROOT/default,
> but now failed with system/ROOT/nch (other ROOT installation),
> it ends with ERROR 2, what does ERROR 2 means?
>
> Its 9.0-RELEASE.
>
> Reagads and thanks in advance,
> vermaden








...
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mounting from zfs:system/ROOT/nch failed with error 2

Matthew Seaman-5
In reply to this post by vermaden
On 15/04/2012 10:23, vermaden wrote:
> I have a system that successfully booted from system/ROOT/default,
> but now failed with system/ROOT/nch (other ROOT installation),
> it ends with ERROR 2, what does ERROR 2 means?

Setting up for use with boot environments?  Can you describe how you did
this, or at least point us towards a recipe you followed?

> Its 9.0-RELEASE.

Good.  However, not particularly pertinent to the problem at hand.

If we are to help you work out what went wrong, we will need a tad more
information than you have supplied.  Primarily at what point in the boot
sequence did it go wrong?  Before the BSD Logo menu screen?  During the
kernel initialization (ie. while it was printing bright white text) or
after (grey coloured text)?  Were there any other error messages printed
on the console?

        Cheers,

        Matthew

--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



signature.asc (275 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mounting from zfs:system/ROOT/nch failed with error 2

vermaden
Hi, thanks for fast response, here is the recipe I used ...

"Matthew Seaman" <[hidden email]> pisze:
> On 15/04/2012 10:23, vermaden wrote:
> > I have a system that successfully booted from system/ROOT/default,
> > but now failed with system/ROOT/nch (other ROOT installation),
> > it ends with ERROR 2, what does ERROR 2 means?
>
> Setting up for use with boot environments?  Can you describe how you did
> this, or at least point us towards a recipe you followed?

# gpart destroy -F ada0
# gpart create -s GPT ada0
# gpart add -t freebsd-boot -l bootcode -s 128k ada0
# gpart add -t freebsd-zfs -l system ada0
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
# zpool create -f -o cachefile=/tmp/zpool.cache system gpt/system
# zfs create system/ROOT
# zfs create system/ROOT/default
# zfs set mountpoint=none system
# zfs set mountpoint=none system/ROOT
# zfs set mountpoint=/mnt system/ROOT/default
# zpool set bootfs=system/ROOT/default system
# cd /usr/freebsd-dist/
# sh
sh# for I in base* kernel*; do tar --unlink -xvpJf $I -C /mnt; done
sh# CTRL-D
# cp /tmp/zpool.cache /mnt/boot/zfs/
# cat > /mnt/boot/loader.conf << EOF
# zfs_load=YES
# vfs.root.mountfrom="zfs:sys/ROOT/default"
# EOF
# cat > /mnt/etc/rc.conf << EOF
# zfs_enable=YES
# EOF
# :> /mnt/etc/fstab
# zfs umount -a
# zfs set mountpoint=legacy sys/ROOT/default

Then, from the OTHER system installed with this same
instructions I moved this OTHER system 'nch' bootable
environment with zfs send | ssh zfs recv to this server
and set in /boot/loader.conf 'nch' mount
vfs.root.mountfrom="zfs:sys/ROOT/nch" and also
zpool set bootfs=zfs:sys/ROOT/nch" then reboot
and got this error.

> > Its 9.0-RELEASE.
>
> Good.  However, not particularly pertinent to the problem at hand.
>
> If we are to help you work out what went wrong, we will need a tad more
> information than you have supplied.  Primarily at what point in the boot
> sequence did it go wrong?  Before the BSD Logo menu screen?  During the
> kernel initialization (ie. while it was printing bright white text) or
> after (grey coloured text)?  Were there any other error messages printed
> on the console?

Loader starts, modules are shown, menu is shown, the boot after
timeout starts normal boot, hardware is detected (disks/nics/...),
and when it comes to trying to mount root from I get this error.


> Cheers,
>
> Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil.
> PGP: http://www.infracaninophile.co.uk/pgpkey

Also, I have restored that system with booting form FreeBSD 9.0
ISO and specyfyjng:
# zpool import system
# zfs set mountpoint=/ system/ROOT/nch
now it works, but it should also work with LEGACY set as
mountpoint ...

Is it a bug or maybe I have done wrong something?

Regards,
vermaden































...
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mounting from zfs:system/ROOT/nch failed with error 2

vermaden
> If you move the dataset to a new machine you should also fix
> the zpool.cache on the new machine. Boot it with f.e. mfsbsd
> cd import the pool and copy the zpool.cache file.
>
> Best regards
> Andreas

I have solved it by copying the /boot/zfs/zpool.cache from the
working/running system to the just imported ZFS snapshot, for
example to /mnt/boot/zfs/zpool.cache if You set mountpoint
to /mnt for that dataset, works like a charm ;)

Regards,
vermaden
--








































...




_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "[hidden email]"
Loading...