From owner-freebsd-questions@freebsd.org Wed Aug 8 17:59:52 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6AEA10652BD for ; Wed, 8 Aug 2018 17:59:52 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44CAF8A925 for ; Wed, 8 Aug 2018 17:59:52 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id l2-v6so178827wme.1 for ; Wed, 08 Aug 2018 10:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=SBTq2zwsKGvks0V/vGzV3uXfl9l79hzTUMi88LtIPNs=; b=ZPZny8RR+ncJGxn/f6CWi9pmfakQjrHaqB2m5np9HKBlvEa29YUB8JUpoiCUlH65Z7 Dc1ATbRc3rxKoJ2nVoyfTO2fXjUVKNCCbDVawSCWTsRPxMVRA51C9LolK8BvQheQX8wU 6s0YtEJFqhehlL0kuyelxCKjZEVLjhUH1wHeqKstXk43ij5MmqgSsTdwV/8A4OYp1sT4 JtBJRDHvBmHpI+TauLlXR20CkfuxVMYWdMAM1pEqQhN927coXeouh4RX8igL7asmbkFv ud/BE3DG87GH06w2W4y4lBzHd6iePG5p/Tk7/nKep9hiOm8FVbvRv+VDfEiLhojLvz92 mlQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=SBTq2zwsKGvks0V/vGzV3uXfl9l79hzTUMi88LtIPNs=; b=AunAQEl+ir5uRGSTp+5hbih/rQ5IV3KDA6Ar/35vCoSgHLXqNZcf97BctomZmK8tCE uWg3OQR1TE1yVCQPIh3Qu+5HSxKyLhZfOeppwIYhHfmg2ceOtqb3Q9HTswMcLFxIoERf Vcnea3DM2ve7k0PeKCn/zaRuP9w/RKZicoz5NFahXVJO5jWQQlPH/VwllkMED3wz/jmP GbYSrME3SG42GLIN00sb1uGZlg0RARf4MYK3zf9X5knqTU/flvhcFg19gPI92mEPSKM4 s/uzl6SqGvXuiqcMCSp/x0Og3FlvDicty++Ocm16j8KCFwYHDuvsCQNchtgKBQ7GP16Q ICdg== X-Gm-Message-State: AOUpUlGNzSfvEHXgm7mFVRmijaP4Z1pgOesPr7sY33BIR41VvVm0TUiu adVZc9ELdOtDSbNPMuDyIMNRV+Sa X-Google-Smtp-Source: AA+uWPyD0IWZkJSP/5Ssby466RlNUM+YMhjH6AJ0viNiXN1bQm5t++yM0076KsFUzgB1hd0uqeuUng== X-Received: by 2002:a1c:ee5d:: with SMTP id m90-v6mr2564272wmh.107.1533751190746; Wed, 08 Aug 2018 10:59:50 -0700 (PDT) Received: from Sting-Ray.optiplex-networks.com (optiplexnetworks.plus.com. [212.159.80.17]) by smtp.gmail.com with ESMTPSA id b2-v6sm5116422wmh.3.2018.08.08.10.59.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 10:59:49 -0700 (PDT) To: freebsd-questions@freebsd.org From: Kaya Saman Subject: Fresh install of 11.2 hung at boot - no login prompt reached Message-ID: <6afd9eb9-982a-66e1-4641-2fe846592d92@gmail.com> Date: Wed, 8 Aug 2018 18:59:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US-large X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2018 17:59:53 -0000 Hi, I've just performed a fresh install of 11.2: 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 Basically as I have a custom partition layout I decided to install ZFS on Root manually. # gpart show ada0 =>       40  468862048  ada0  GPT  (224G)          40       1024     1  freebsd-boot  (512K)        1064    2097152     2  freebsd-swap  (1.0G)     2098216   14679256        - free -  (7.0G)    16777472  233292168     3  freebsd-zfs  (111G)   250069640  218792448     4  freebsd-zfs  (104G) This is mirrored with ada1 in the zroot: # gpart show ada1 =>       40  468862048  ada1  GPT  (224G)          40       1024     1  freebsd-boot  (512K)        1064    2097152     2  freebsd-swap  (1.0G)     2098216   14679256        - free -  (7.0G)    16777472  233292168     3  freebsd-zfs  (111G)   250069640  218792448     4  freebsd-zfs  (104G) The zpool has been constructed as such: # zpool status zroot   pool: zroot  state: ONLINE   scan: none requested config:     NAME        STATE     READ WRITE CKSUM     zroot       ONLINE       0     0     0       mirror-0  ONLINE       0     0     0         ada0p3  ONLINE       0     0     0         ada1p3  ONLINE       0     0     0 errors: No known data errors As there seems to be little documentation on customized or manual install of ZFS on root as the installation medium partitioner utilizes the whole disk, I am a little lost! The information on the Fbsd wiki: https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition is outdated and later steps are not relevant any more as there is no more 'sysinstall'. The steps I followed are off a thread in the forum: https://forums.freebsd.org/threads/installing-freebsd-manually-no-installer.63201/ This works so long as I boot the kernel from my installation USB drive using the steps: ok unload ok load /boot/kernel/kernel ok load /boot/kernel/opensolaris.ko ok load /boot/kernel/zfs.ko <-- for me iscsi.ko, if_lagg.ko, iscsi_initiator.ko, ctl.ko, cfiscsi.ko ok set vfs.root.mountfrom="zfs:zroot" ok boot Now if I try to boot directly from the system (I have already installed the kernel and issued: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada(x) for both drives ada0 & ada1) the system I think at Boot Stage 2? following: https://www.freebsd.org/doc/handbook/boot-introduction.html comes up with: BIOS drive [...] read 264 from 384 to 0x7c0f5f80 .... until final message: error: 0x10 Then finally shows the Beastie pic with menu which I think is Stage 3? then boots the kernel. I get messages complaining about some /dev devices not being accessible or writable then it complains about not being able to read the /etc/defaults/devfs rules file. Afterwards I see the standard kernel messages until the date/time is shown after which the boot process hangs and no login prompt appears. Is there anyone who is familiar with the boot process who can help me out here....?? I'm not sure if I missed configuring something in the boot loader or if I need to map /dev to the system or something..... Anyway, it is a fresh install so nothing I think is corrupted, as the pool is fine. Just something to do with booting and loading things I think?? Many thanks in advance. Kaya