DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th December 2009
gkontos's Avatar
gkontos gkontos is offline
Real Name: George
Port Guard
 
Join Date: May 2008
Location: Greece
Posts: 41
Default root on ZFS

Hi everyone,

I have been experimenting lately with ZFS boot on FreeBSD. I have performed different kind of methods and I've reached to the conclusion that using the "vfs.root.mountfrom" method instead of traditional fstab mounts is more flexible. However, when I try to perform an installation using this guide my system boots and doesn't mount /usr /var /tmp patitions

I can only boot to single user mode with readonly ZFS /

I suspect that it has something to do with:
Code:
'vfs.root.mountfrom="zfs:zroot"'
maybe it should be ?
Code:
'vfs.root.mountfrom="zfs:zroot/root"'
From the Fixit environment I can see all the mount points

Please some help!!!
__________________
...when you have excluded the impossible, whatever remains, however improbable, must be the truth.
Reply With Quote
  #2   (View Single Post)  
Old 10th December 2009
gkontos's Avatar
gkontos gkontos is offline
Real Name: George
Port Guard
 
Join Date: May 2008
Location: Greece
Posts: 41
Default

Anyone ?
__________________
...when you have excluded the impossible, whatever remains, however improbable, must be the truth.
Reply With Quote
  #3   (View Single Post)  
Old 11th December 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

I don't have the hardware to run ZFS, my fastest machines are a P4 2.0Ghz with only 512MB and an ADM64 with 1 GB of memory, which is not enough to use ZFS.

I installed DragonFlyBSD this summer, and used it's Hammer filesystem, but I haven't been able to really play with it thoroughly
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 11th December 2009
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default

Quote:
Originally Posted by J65nko View Post
I don't have the hardware to run ZFS, my fastest machines are a P4 2.0Ghz with only 512MB and an ADM64 with 1 GB of memory, which is not enough to use ZFS.

I installed DragonFlyBSD this summer, and used it's Hammer filesystem, but I haven't been able to really play with it thoroughly
Why not enough for ZFS? I see the Handbook says that with 1g of memory is good to go with.

What do you think are the minimum requirements for ZFS, anyway, I mean for a good performance - is it the memory that is playing the bigger role or the CPU?
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #5   (View Single Post)  
Old 12th December 2009
gkontos's Avatar
gkontos gkontos is offline
Real Name: George
Port Guard
 
Join Date: May 2008
Location: Greece
Posts: 41
Default

Solved! Answer can be found here
@DNAeon
Memory is the number one factor and a 64bit cpu.
Imagine that in my Opensolaris box out of 4G only 512 are free and the system is just sitting. Of course opensolaris kernel is known to be a memory eater but still most of the memory is consumed by the file system. Also, for truly reliable results ECC memory is recommended.

FreeBSD 8.0 release running on Vmware Server:
Code:
> zfs list
NAME                        USED  AVAIL  REFER  MOUNTPOINT
zroot                      2.08G  9.67G   269M  legacy
zroot/swap                    1G  10.7G    16K  -
zroot/tmp                    23K  9.67G    23K  /tmp
zroot/usr                   825M  9.67G   341M  /usr
zroot/usr/home               27K  9.67G    27K  /usr/home
zroot/usr/ports             188M  9.67G   188M  /usr/ports
zroot/usr/ports/distfiles    18K  9.67G    18K  /usr/ports/distfiles
zroot/usr/ports/packages     18K  9.67G    18K  /usr/ports/packages
zroot/usr/src               297M  9.67G   297M  /usr/src
zroot/var                  9.64M  9.67G   108K  /var
zroot/var/crash            18.5K  9.67G  18.5K  /var/crash
zroot/var/db               9.35M  9.67G  9.33M  /var/db
zroot/var/db/pkg             18K  9.67G    18K  /var/db/pkg
zroot/var/empty              18K  9.67G    18K  /var/empty
zroot/var/log                52K  9.67G    52K  /var/log
zroot/var/mail               18K  9.67G    18K  /var/mail
zroot/var/run                60K  9.67G    60K  /var/run
zroot/var/tmp                19K  9.67G    19K  /var/tmp
Code:
> zpool status zroot
  pool: zroot
 state: ONLINE
 scrub: none requested
config:

	NAME           STATE     READ WRITE CKSUM
	zroot          ONLINE       0     0     0
	  mirror       ONLINE       0     0     0
	    gpt/disk0  ONLINE       0     0     0
	    gpt/disk3  ONLINE       0     0     0

errors: No known data errors
__________________
...when you have excluded the impossible, whatever remains, however improbable, must be the truth.
Reply With Quote
  #6   (View Single Post)  
Old 14th December 2009
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 427
Default

Quote:
Originally Posted by DNAeon View Post
Why not enough for ZFS? I see the Handbook says that with 1g of memory is good to go with.

What do you think are the minimum requirements for ZFS, anyway, I mean for a good performance - is it the memory that is playing the bigger role or the CPU?
2G+ of memory plus AMD64 is the optimal configuration. Below that it is trial & error.
__________________
use UNIX or die :-)
Reply With Quote
  #7   (View Single Post)  
Old 15th December 2009
gkontos's Avatar
gkontos gkontos is offline
Real Name: George
Port Guard
 
Join Date: May 2008
Location: Greece
Posts: 41
Default

Quote:
Originally Posted by Oliver_H View Post
2G+ of memory plus AMD64 is the optimal configuration. Below that it is trial & error.
Correct!
Imagine that my fileserver now runs 8.0 Release AMD64 with 4G Ecc Ram. I use ZFS mirror for root 2X240GB and Raidz1 3X640GB for storage in different controllers . During a 100GB transfer from one Raid to the other the system was left with 256M free Ram.

George
__________________
...when you have excluded the impossible, whatever remains, however improbable, must be the truth.
Reply With Quote
  #8   (View Single Post)  
Old 15th December 2009
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

Free memory means little with the FreeBSD memory manager. You'd have that much free memory after such a transfer with any filesystem, UFS or ZFS or any other. And the same goes for a 10GB *read* operation too.
__________________
May the source be with you!
Reply With Quote
  #9   (View Single Post)  
Old 15th December 2009
gkontos's Avatar
gkontos gkontos is offline
Real Name: George
Port Guard
 
Join Date: May 2008
Location: Greece
Posts: 41
Default

Quote:
Originally Posted by Beastie View Post
Free memory means little with the FreeBSD memory manager. You'd have that much free memory after such a transfer with any filesystem, UFS or ZFS or any other. And the same goes for a 10GB *read* operation too.
Hadn't noticed that with UFS although I was using that before. As a matter of fact this server was running with 512MB on FreeBSD 6.3 in a gmirror setup.

George
__________________
...when you have excluded the impossible, whatever remains, however improbable, must be the truth.
Reply With Quote
Old 15th December 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

See http://lists.freebsd.org/pipermail/f...er/053156.html for a discussion on ZFS on root, useful links and tips
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 16th December 2009
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 427
Default

Quote:
Originally Posted by Beastie View Post
Free memory means little with the FreeBSD memory manager. You'd have that much free memory after such a transfer with any filesystem, UFS or ZFS or any other. And the same goes for a 10GB *read* operation too.
True but ZFS is a known ressource-hog.
__________________
use UNIX or die :-)
Reply With Quote
Old 16th December 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Only if you let it be. You can limit the amount of RAM that ZFS uses.

Obviously, the more RAM you let it have, the better results you'll get.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 18th December 2009
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 427
Default

>the more RAM you let it have

The less RAM the easier you get some crash.
__________________
use UNIX or die :-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ZFS root and linproc 7.2-RC1 wnsi FreeBSD Installation and Upgrading 0 20th April 2009 06:54 PM
ssh root Nk2Network OpenBSD Security 22 8th April 2009 06:59 PM
NTOP as root sniper007 FreeBSD Security 0 27th January 2009 07:42 PM
Wheel Can't su root MetalHead OpenBSD General 2 22nd November 2008 12:44 AM
root mail sheriff26 FreeBSD General 5 2nd July 2008 04:56 PM


All times are GMT. The time now is 10:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick