Re: ZFS on entire disks setup

From: Olivier Smedts <olivier_at_gid0.org>
Date: Sat, 26 Sep 2009 20:32:50 +0200
2009/9/26 krad <kraduk_at_googlemail.com>:
> 2009/9/26 Stefan Bethke <stb_at_lassitu.de>
>
>> Am 26.09.2009 um 13:39 schrieb Dmitry Morozovsky:
>>
>>  Dear colleagues,
>>>
>>> is there a way to configure ZFS-only setup without partitions?
>>>
>>> I tried to reproduce the trick with `skip=1 seek=1024', and have
>>> loot/loader
>>> running, but it does not see the pool.
>>>
>>
>> This sequence is working for me:
>> dd if=/boot/zfsboot of=/dev/da0 count=1
>> dd if=/boot/zfsboot of=/dev/da0 skip=1 seek=1024
>> zpool create zroot /dev/da0
>> zpool set bootfs=zroot zroot
>> cd /usr/src && make installworld installkernel distribution DESTDIR=/zroot
>> cp /boot/loader.conf /zroot/boot/loader.conf
>> cp /etc/rc.conf /zroot/etc/
>> touch /zroot/etc/fstab
>> echo 'zfs_load="YES"' >>/zroot/boot/loader.conf
>> echo 'vfs.root.mountfrom="zfs:zroot"' >>/zroot/boot/loader.conf
>> zpool export zroot
>> zpool import zroot
>> cp /boot/zfs/zpool.cache /zroot/boot/zfs/
>> zfs set mountpoint=legacy zroot
>>
>> ... except that it doesn't anymore.  I saw this working about two months
>> ago, but now it fails to mount root.  Verbose boot doesn't give any
>> indication why ZFS can't find the pool.
>>
>>
>> Stefan
>>
>> --
>> Stefan Bethke <stb_at_lassitu.de>   Fon +49 151 14070811
>>
>>
>>
>>
>>
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>>
>
>
> have the performance issues with zvols been fixed. I remember a while ago it
> wasn't a good idea to run swap on a zvol. This is why i left a partition
> free for swap

Still not a good idea, I've got lockups for many minutes when
consuming heavy memory ressources, for example when doing a "make" in
ports/emulators/virtualbox with firefox and amarok opened. I've got
2GB RAM on amd64.

> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier_at_gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
Received on Sat Sep 26 2009 - 16:32:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC