Date: Tue, 30 May 2017 13:49:48 -0300 From: Eduardo Lemos de Sa <eduardo.lemosdesa@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Trying to boot from a zfs external disk Message-ID: <CA%2BnjGktB4TufipEK0r3=fyM0TZOrnSSm1DdocAd98Mh37Xf27g@mail.gmail.com> In-Reply-To: <20170530161945.6ef8f3de@fabiankeil.de> References: <CA%2BnjGksM6gjyZuf3z5VA%2BCAb%2BrKVL0rZC9L5bSi_TXhz89jc2g@mail.gmail.com> <20170530161945.6ef8f3de@fabiankeil.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Dear Fabien On Tue, May 30, 2017 at 11:19 AM, Fabian Keil <freebsd-listen@fabiankeil.de= > wrote: > Eduardo Lemos de Sa <eduardo.lemosdesa@gmail.com> wrote: > > > I installed FreeBSD-10.3-RELEASE in a internal hard disk (named, that > > time, as ada0) in a zpool called zeeroot. Now, I move this hard disk to > > a case (so, it is a external drive now) and it is recognized as da0. > > When I tried to boot it, the process start normally but stopped at the > > moment to mount partitions. Later, I used to solve problems like this > > (in UFS/UFS2 file systems) booting in a live system (memory stick or CD= ) > > and editing /etc/fstab, renaming devices. But now, there is only in > > my /etc/fstab: > > > > # Device Mountpoint FStype Options Dump Pass# > > #/dev/ada0p2 none swap sw 0 0 > > md99 none swap sw,file=3D/usr/swap0,late 0 = 0 > > > > I read https://wiki.freebsd.org/ZFSQuickStartGuide and > > https://wiki.illumos.org/display/illumos/ZFS, further FreeBSD Handbook. > > > > In the two first, there is no mention about problems in boot stage usin= g > > zfs. > > > > Further, I tried to find files under /etc/ called zfs.conf or zpool.con= f > > or other mentions to ada0 (grep -r -i ada0 *): nothing. > > In case of ZFS the root pool is specified in /boot/loader.conf > with a line like: > vfs.root.mountfrom=3D"zfs:tank" > > ZFS is supposed to figure out the location of the disk(s) itself. > > > Thus, I do not how can solve this mount booting problem. Please, could > > you give some hint about? > > This bug could explain why booting fails when you use an external disk: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208882 > > Fabian > Thank you very much for share your expertise. Please, forgive me to ask one more thing: I searched (using grep) where a "mountfrom" is located or nomitade in a another 10.3-RELEASE. The result was: defaults/loader.conf:#vfs.root.mountfrom=3D"" # Specify root partiti= on in a way the Binary file kernel/kernel matches Binary file kernel.old/kernel matches Binary file loader matches Binary file loader.efi matches Binary file loader.old matches menu-commands.4th: s" set menu_caption[1]=3D${bemenu_current}${vfs.root.mountfrom}" evaluate menu-commands.4th: s" set ansi_caption[1]=3D${beansi_current}${vfs.root.mountfrom}" evaluate menu-commands.4th: dup s" set vfs.root.mountfrom=3D${bootenv_root[E]}" 3= 8 +c! evaluate menu-commands.4th: s" set currdev=3D${vfs.root.mountfrom}:" evaluate Binary file pxeboot matches Binary file userboot.so matches Binary file zfsloader matches Binary file zfsloader.old matches In this machine, zroot (the name of zpool) is mounted in /dev/ada0 (p3, mainly), but this information is not avaliable in ASCII files (apparently, it is in one or more binary files (zfsloader, as example). Thus, how to booting system "knows" where root shoud be mount? I will try to mount this hard disk, edit loader.conf and explicitly specify vfs.root.mountfrom=3D"zfs:zeeroot" Thank you again. My best regards Eduardo --=20 Eduardo Lemos de Sa Professor Titular Dep. Quimica da Universidade Federal do Paran=C3=A1 fone: +55(41)3361-3300 fax: +55(41)3361-3186
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BnjGktB4TufipEK0r3=fyM0TZOrnSSm1DdocAd98Mh37Xf27g>