Date: Wed, 27 Apr 2016 14:31:09 +0200 From: Palle Girgensohn <girgen@FreeBSD.org> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-fs@freebsd.org, Julian Akehurst <julian@pingpong.net> Subject: Re: Moved disks to new machine. Zfs won't boot Message-ID: <8F08B233-8E7F-4287-BB67-FED75A1F617A@FreeBSD.org> In-Reply-To: <5720A40B.2070305@quip.cz> References: <0E6A1067-B066-4C73-8D9C-BFA95C6FA338@FreeBSD.org> <5720A40B.2070305@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
> 27 apr. 2016 kl. 13:35 skrev Miroslav Lachman <000.fbsd@quip.cz>: >=20 > Palle Girgensohn wrote on 04/27/2016 12:53: >> Hi, >>=20 >> We had a faulty machine and thought the simple solution to get our = systems 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 = with >>=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 = already) >>=20 >>=20 >>=20 >> The machines are HP DL380 G7 woth P410i. >>=20 >> any ideas? zpool.cache? >=20 > I think altroot disabled refreshing of zpool.cache. So you need to = export and import pool without altroot option or you can manually copy = this file. (I did something like this few years ago so I don't remember = it well) >=20 > The next problem can be the RAID controller. Was this same controller = on an old machine too? There are some controllers that does not show all = attached drives at boot time so RAIDZ configurations cannot boot on it. >=20 > Miroslav Lachman Hi, Thanks for your reply. Yes, it was the cache file.=20 zpool import refused to import unless I added a -f. so booting from a memory stick and running zpool import -o altroot=3D/mnt -f tank rm /mnt/boot/zfs/zpool.cache zpool export zpool import -o altroot/mnt tank # this time it didn't require -f reboot did the trick. fresh cache file with the new machine's IDs. Simple once you know it... :-/ Palle
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8F08B233-8E7F-4287-BB67-FED75A1F617A>