mountroot prompt with error2, when trying to boot from a single drive in a 2-way mirror

Ricky . ricky1252 at hotmail.com
Fri Apr 17 02:51:13 UTC 2015


Is your pool using gptids for the devices? I tried tried to reproduce this with 9.1-release and 10.1-release, however using gptids and never run into this problem.

> Date: Fri, 17 Apr 2015 03:32:07 +1000
> Subject: Re: mountroot prompt with error2, when trying to boot from a single drive in a 2-way mirror
> From: yudi.tux at gmail.com
> To: freebsd-listen at fabiankeil.de
> CC: freebsd-questions at freebsd.org
> 
> I checked some popular image hosting websites, could not find any that did
> not use javascript. I can send you the images via email.
> This is reproducible on a clean install of 9.3 as well. I think it's a bug.
> 
> Here's the output of zdb -l /dev/ada2p3
> --------------------------------------------
> LABEL 0
> --------------------------------------------
>     version: 5000
>     name: 'osysPool'
>     state: 0
>     txg: 35882
>     pool_guid: 3008044207603099329
>     hostid: 1990654128
>     hostname: 'test'
>     top_guid: 16302517322241353808
>     guid: 2114803205502328891
>     vdev_children: 1
>     vdev_tree:
>         type: 'mirror'
>         id: 0
>         guid: 16302517322241353808
>         metaslab_array: 33
>         metaslab_shift: 29
>         ashift: 9
>         asize: 70355779584
>         is_log: 0
>         create_txg: 4
>         children[0]:
>             type: 'disk'
>             id: 0
>             guid: 2114803205502328891
>             path: '/dev/ada2p3'
>             phys_path: '/dev/ada2p3'
>             whole_disk: 1
>             DTL: 99
>             create_txg: 4
>         children[1]:
>             type: 'disk'
>             id: 1
>             guid: 15791103587254396721
>             path: '/dev/ada3p3'
>             phys_path: '/dev/ada3p3'
>             whole_disk: 1
>             DTL: 98
>             create_txg: 4
>     features_for_read:
> --------------------------------------------
> LABEL 1
> --------------------------------------------
>     version: 5000
>     name: 'osysPool'
>     state: 0
>     txg: 35882
>     pool_guid: 3008044207603099329
>     hostid: 1990654128
>     hostname: 'test'
>     top_guid: 16302517322241353808
>     guid: 2114803205502328891
>     vdev_children: 1
>     vdev_tree:
>         type: 'mirror'
>         id: 0
>         guid: 16302517322241353808
>         metaslab_array: 33
>         metaslab_shift: 29
>         ashift: 9
>         asize: 70355779584
>         is_log: 0
>         create_txg: 4
>         children[0]:
>             type: 'disk'
>             id: 0
>             guid: 2114803205502328891
>             path: '/dev/ada2p3'
>             phys_path: '/dev/ada2p3'
>             whole_disk: 1
>             DTL: 99
>             create_txg: 4
>         children[1]:
>             type: 'disk'
>             id: 1
>             guid: 15791103587254396721
>             path: '/dev/ada3p3'
>             phys_path: '/dev/ada3p3'
>             whole_disk: 1
>             DTL: 98
>             create_txg: 4
>     features_for_read:
> --------------------------------------------
> LABEL 2
> --------------------------------------------
>     version: 5000
>     name: 'osysPool'
>     state: 0
>     txg: 35882
>     pool_guid: 3008044207603099329
>     hostid: 1990654128
>     hostname: 'test'
>     top_guid: 16302517322241353808
>     guid: 2114803205502328891
>     vdev_children: 1
>     vdev_tree:
>         type: 'mirror'
>         id: 0
>         guid: 16302517322241353808
>         metaslab_array: 33
>         metaslab_shift: 29
>         ashift: 9
>         asize: 70355779584
>         is_log: 0
>         create_txg: 4
>         children[0]:
>             type: 'disk'
>             id: 0
>             guid: 2114803205502328891
>             path: '/dev/ada2p3'
>             phys_path: '/dev/ada2p3'
>             whole_disk: 1
>             DTL: 99
>             create_txg: 4
>         children[1]:
>             type: 'disk'
>             id: 1
>             guid: 15791103587254396721
>             path: '/dev/ada3p3'
>             phys_path: '/dev/ada3p3'
>             whole_disk: 1
>             DTL: 98
>             create_txg: 4
>     features_for_read:
> --------------------------------------------
> LABEL 3
> --------------------------------------------
>     version: 5000
>     name: 'osysPool'
>     state: 0
>     txg: 35882
>     pool_guid: 3008044207603099329
>     hostid: 1990654128
>     hostname: 'test'
>     top_guid: 16302517322241353808
>     guid: 2114803205502328891
>     vdev_children: 1
>     vdev_tree:
>         type: 'mirror'
>         id: 0
>         guid: 16302517322241353808
>         metaslab_array: 33
>         metaslab_shift: 29
>         ashift: 9
>         asize: 70355779584
>         is_log: 0
>         create_txg: 4
>         children[0]:
>             type: 'disk'
>             id: 0
>             guid: 2114803205502328891
>             path: '/dev/ada2p3'
>             phys_path: '/dev/ada2p3'
>             whole_disk: 1
>             DTL: 99
>             create_txg: 4
>         children[1]:
>             type: 'disk'
>             id: 1
>             guid: 15791103587254396721
>             path: '/dev/ada3p3'
>             phys_path: '/dev/ada3p3'
>             whole_disk: 1
>             DTL: 98
>             create_txg: 4
>     features_for_read:
> 
> 
> gpart show ada2 output:
> 
> =>       34  156301421  ada2  GPT  (74G)
>          34       2014        - free -  (1M)
>        2048        512     1  freebsd-boot  (256k)
>        2560       1536        - free -  (768k)
>        4096    8388608     2  freebsd-swap  (4.0G)
>     8392704   10485760        - free -  (5.0G)
>    18878464  137422848     3  freebsd-zfs  (65G)
>   156301312        143        - free -  (71k)
> 
> 
> 
> On Thu, Apr 16, 2015 at 9:45 PM, Fabian Keil <freebsd-listen at fabiankeil.de>
> wrote:
> 
> > Yudi V <yudi.tux at gmail.com> wrote:
> >
> > > First, what is the recommended image hosting site.
> >
> > Any site that allows to download the image with fetch should be fine.
> > I use my own website so I unfortunately can't recommend any specific
> > image hosting site.
> >
> > > I don't think your conclusion is right.
> >
> > You're right, among other things I completely missed that you wrote
> > that the system tries to attach the whole disk instead of a partition.
> >
> > Could you additionally post the output of "zdb -l /dev/ada2p3"
> > and "gpart show ada2"?
> >
> > Fabian
> >
> 
> 
> 
> -- 
> Kind regards,
> Yudi
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
 		 	   		  


More information about the freebsd-questions mailing list