Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2010, 03:52 PM
Enerqi Enerqi is offline
Junior Member
 
Join Date: Jul 2010
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default ZFS on Root Slice & Partition Recommendations
I have 1 hard disk, 2 partitions. 90GB used for PC BSD and the other for Windows.

I choose a custom partitioning setup and assigned the entire 90GB partition to one slice with ZFS and and one ZFS file system on that ZFS slice, that is the / file system.

Is encryption supposed to work with ZFS on root? I tried that and it immediately failed. I also asked it to install a pc-bsd bootloader and now I can't boot into windows, maybe because the install failed? I then installed it with encryption turned off and all worked. But are there 'better' slice/partition setups?

The installer asked me if I was happy with no SWAP partition, I said yes. Might have been a bad idea? I'd have thought that if SWAP is on a separate slice (not using ZFS I assume) then the data managed by the virtual memory subsystem can suffer from the same data integrity problems that ZFS fixes in UFS, Ext etc. I assumed that ZFS setup swap space on root by itelf.

Is is a good idea to mount other 'standard' file systems under that ZFS slice with root on it. E.g. /tmp, /var, /boot. Or should these go on other partitons? Putting them on another partition seems unnecessary given ZFS's volume management features.

Any thoughts?

Thanks
Reply With Quote
  #2  
Old 07-30-2010, 02:49 AM
Ralph_Ellis Ralph_Ellis is offline
Senior Member
 
Join Date: Jul 2006
Location: Toronto, Ontario, Canada
Posts: 235
Thanks: 0
Thanked 0 Times in 0 Posts
Default
99% of the time, the system has no use for the swap file. You don't need it.
One partition for ZFS is a logical arrangement. I use separate partitions with ZFS because I have a lot of room and as an extra measure of protection against failure but only catastrophic hardware failure will bring ZFS down. I have used it on another hard drive where I know there is a physical error but ZFS will work around it.
Reply With Quote
  #3  
Old 07-30-2010, 03:27 PM
Enerqi Enerqi is offline
Junior Member
 
Join Date: Jul 2010
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Thanks for the input Ralph. Sounds like I'll be ok without SWAP.

Is it ok to add /tmp, /var as a ZFS file systems now that the install is complete? E.g.

zfs create /tmp

With regards the encryption problem, from reading around I think /boot needs to be on an unencrypted partition, although it sounds like "geli" can be used to encrypt the whole disk somehow without this problem. It's something I'll have to look into later.
Reply With Quote
  #4  
Old 08-02-2010, 01:35 PM
kmoore134's Avatar
kmoore134 kmoore134 is offline
Administrator
 
Join Date: May 2005
Location: Knoxville, TN
Posts: 2,568
Thanks: 0
Thanked 163 Times in 127 Posts
Default ZFS on Root Slice & Partition Recommendations
Here's how I did my laptop partitioning with GELI / ZFS:

UFS - /boot 512MB
ZFS.geli - /,/usr,/var - XXXXXXMB
SWAP - SWAP - 4000MB

This only leaves the /boot partition unencrypted with the key files on
it, but my passphrase is still required to mount ZFS "/" and other
partitions. Seems to work great here
__________________
----
Kris Moore
PC-BSD Founder
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


All times are GMT. The time now is 08:24 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.