Moved disks to new machine. Zfs won't boot

Matthew Seaman matthew at FreeBSD.org
Wed Apr 27 11:12:27 UTC 2016


On 04/27/16 11:53, Palle Girgensohn wrote:
> 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.
> 
> But now the ZFS will not boot.
> 
> I booted as USB stick and I can see the zfs pool after importing it with
> 
> zpool import -o altroot=/mnt -f tank
> 
> 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... :-/
> 
> gpart bootcode is installed (again, should really have been there already)
> 
> 
> 
> The machines are HP DL380 G7 woth P410i.
> 
> 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






-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20160427/62968905/attachment.sig>


More information about the freebsd-fs mailing list