Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2014 16:47:25 +0000
From:      Dr Josef Karthauser <joe@tao.org.uk>
To:        Steven Hartland <steven@multiplay.co.uk>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Creating a bootable ZFS disk?
Message-ID:  <BBE0034F-B8F7-4E04-883C-8B4DE409D7E8@tao.org.uk>
In-Reply-To: <549EC87C.2010909@multiplay.co.uk>
References:  <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk> <549EC712.3010909@multiplay.co.uk> <549EC87C.2010909@multiplay.co.uk>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
I only have 'zfs_load=“YES”’ in my /boot/loader.conf. I’m hoping the problem is that I missed the ‘-a4k’ on the ‘gpart add’. I’m starting again and will report back whether it now works or not! :).

Joe

On 27 Dec 2014, at 14:55, Steven Hartland <steven@multiplay.co.uk> wrote:

> Replied too quickly there, as your already doing that, however you're changing the name so the likely issue is you didn't update loader.conf
> 
> You should just need the following in /boot/loader.conf:
> vfs.root.mountfrom="zfs:copy/ROOT/default "
> 
>    Regards
>    Steve
> 
> On 27/12/2014 14:49, Steven Hartland wrote:
>> Unfortunately send / receive doesn't maintain the pool bootfs, so simply setting that should be all you need e.g.
>> 
>> zpool set bootfs=tank/root tank
>> 
>> 
>> On 27/12/2014 14:37, Dr Josef Karthauser wrote:
>>> I’m trying to create a new ZFS pool from an existing one (the new one is 4k aligned and the old one is legacy 512b).
>>> 
>>> But, I can’t get it to boot! Not sure what I’m doing wrong.
>>> 
>>> I thought I could create the new pool, and use ‘zfs send/recv’ to copy the existing pool and then boot onto the new disk, but the kernel doesn’t load… :(.
>>> 
>>> Does anyone know what I’m doing wrong?
>>> 
>>> Here’s my recipe:
>>> 
>>>    # gpart create -s gpt diskid/DISK-NEW-DISK
>>>    # gpart add -s 64K -t freebsd-boot diskid/DISK-NEW-DISK
>>>    # gpart add -t 8G freebsd-swap diskid/DISK-NEW-DISK
>>>    # gpart add -t freebsd-zfs diskid/DISK-NEW-DISK
>>>    # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 diskid/DISK-NEW-DISK
>>> 
>>>    # zfs create copy /dev/diskid/DISK-NEW-DISKp3
>>>         # zfs send -R oldpool@20141226 | zfs receive -duvF copy
>>>         # zpool set bootfs=copy/ROOT/default copy
>>> 
>>> That ought to do it, right? But, if I remove all the existing drives and try and boot on just the new drive, it gets nowhere. I see the ‘/‘, but it doesn’t spin and doesn’t time out. :(.
>>> 
>>> Any clues would be gratefully received.
>>> 
>>> Many thanks,
>>> Joe
>>> _______________________________________________
>>> freebsd-stable@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>> 
> 
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> 


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUnuKeAAoJEGdCjs+EVN/YK/0H/i+h+UfCUgTOguAIHp8U5A1F
gLBit9F5YWmrQ7K7bqsCi2GvZWSQuMzAeC/7xYrY21/ZsqKHVKMEIoOY5r51QNxG
UXlCMHzr++ghEZ4chAQPwI9JNKnnCGG+zBnVyX1ZFUbUFJzVtp98jfCGjdBBp/5n
7JdwZZLIheKqaSmtfML5Jp8KONkhZjA4lf5XDYwfO9laR97nXOfrmfCqNLI+riLQ
5R4wrsTZnJHxN1Of3Znjbls7Q30ir+B3IKmOa3cplkg/57IZwcBbvJCAHS2sSY09
Xe7KBjbPAgkn/30nBugfIJimWdWR9YdT6E/6I2iQsaWvG+KaM1JDQ8hf0POhTc4=
=ew1R
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BBE0034F-B8F7-4E04-883C-8B4DE409D7E8>