From owner-freebsd-fs@freebsd.org Wed Apr 27 11:12:27 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AD65B1DDDE for ; Wed, 27 Apr 2016 11:12:27 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8EF6610A5 for ; Wed, 27 Apr 2016 11:12:26 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 5B7C8A292 for ; Wed, 27 Apr 2016 11:12:17 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/5B7C8A292; dkim=none; dkim-atps=neutral Subject: Re: Moved disks to new machine. Zfs won't boot To: freebsd-fs@freebsd.org References: <0E6A1067-B066-4C73-8D9C-BFA95C6FA338@FreeBSD.org> From: Matthew Seaman Message-ID: <0fd0dcc3-ea1d-97a4-ae35-990fff376c47@freebsd.org> Date: Wed, 27 Apr 2016 12:12:01 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <0E6A1067-B066-4C73-8D9C-BFA95C6FA338@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hu2cx2JChP2OphxwGAubNsexJX9BwX9ap" X-Virus-Scanned: clamav-milter 0.99.1 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 11:12:27 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hu2cx2JChP2OphxwGAubNsexJX9BwX9ap Content-Type: multipart/mixed; boundary="xnTm0vSs1JEoHPIrBNgGUP69fGQa7EEIm" From: Matthew Seaman To: freebsd-fs@freebsd.org Message-ID: <0fd0dcc3-ea1d-97a4-ae35-990fff376c47@freebsd.org> Subject: Re: Moved disks to new machine. Zfs won't boot References: <0E6A1067-B066-4C73-8D9C-BFA95C6FA338@FreeBSD.org> In-Reply-To: <0E6A1067-B066-4C73-8D9C-BFA95C6FA338@FreeBSD.org> --xnTm0vSs1JEoHPIrBNgGUP69fGQa7EEIm Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/27/16 11:53, Palle Girgensohn wrote: > We had a faulty machine and thought the simple solution to get our syst= ems online would be to move the disks to another identical box. >=20 > But now the ZFS will not boot. >=20 > I booted as USB stick and I can see the zfs pool after importing it wit= h >=20 > zpool import -o altroot=3D/mnt -f tank >=20 > after this, I can see the pool and the file systems, but a reboot will = not see the disk in BIOS, and I have my root there... :-/ >=20 > gpart bootcode is installed (again, should really have been there alrea= dy) >=20 >=20 >=20 > The machines are HP DL380 G7 woth P410i. >=20 > any ideas? zpool.cache? Usually, to fix this, you just need to import the pool when booted from some alternative media -- which you've already done. Importing the pool will rebuild the zpool.cache for you. How is the on-board RAID controller configured? You may have to get into the RAID setup and tell it to scan the drives for a foreign config (err... 'foreign config' is what Dell calls it; not sure what the HP equivalent is.) A lot of RAID controllers will recognise that the disks have been moved from a different machine and won't automatically enable and mount them in case that results in multiple filesystems being mounted in the same place or other chaotic effects. Needless to say, fiddling around with the HW RAID config has plenty of potential for your disks to get trashed... Cheers, Matthew --xnTm0vSs1JEoHPIrBNgGUP69fGQa7EEIm-- --hu2cx2JChP2OphxwGAubNsexJX9BwX9ap Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXIJ6IAAoJEABRPxDgqeTnJpgP/iAWgTnWUe6OeEWAEH4mD4sX /mnZoLkxmePqSwu4X7v8AaLwhyzuqn6FiSktf8ntdSS+QztCEeZDGiNZ+NNVfQQ2 CSGU5NpX2qFtpYD91EoP+k0ObpwbiIw1J3BXmhqTf0zEdj8xQBGzxOv3+Fla6v0r gWJUmmZGRedO3ZMR5ex9ktK1p8isFz4/XCVfPJ/02XuHtltkKu2JV661+7iaeqnQ HQ+UlX4S4IqbYZvj2dGmQms0eODipn8qniVilkWJO0/GEaIpaZypXdyljQNVYkQN fVjAEbJBy8wAvklM7RhfGYJHPo4Fy6el0STYphBXHgO0fP7T9dsWZtKDRkYl6SzJ fowY6Y9iL3TMXe40l3qZM+mp57FW7m/esMegTrXVg21kOearmVHm/NaczYAN94AY 9Fg58MDdPekeZv6Qg5bSJTYGjwtSHMsSECcFjJqVC2O1hH1tMp6Xi6VkI3eJrK+T 7j5YV8E843unQh7QqJJtSPZOuubkhwQty9s2D0AFED6b5cQbcXPabw9mGaI3xBXt jNbpo0ASxyoYomddIB4kjA/b0HemwSb2ohcObpFI1J+o0KqptnZSmSGqF4mDAvAK eq/PRwBe4UfCx1dN0S4vFJeD1D0pYUfzRur9GCei4kP/BSry0DdT9xYqo1cB/cF6 ovHmnUPinAZIOT+Jovv/ =dfna -----END PGP SIGNATURE----- --hu2cx2JChP2OphxwGAubNsexJX9BwX9ap--