DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th September 2012
drm drm is offline
New User
 
Join Date: Sep 2012
Posts: 8
Thanked 0 Times in 0 Posts
Default Advantages of FFS2 for /home on OpenBSD

Hi!

As i want to switch my desktop pc to openbsd soon, i have some questions regarding ffs2. The FAQ says, that ffs2 will be chosen automatically if the slice is bigger than 1TiB. All the 'standard' slices like /, /usr, /var and /tmp are ffs by default, but for /home i wondered if there is a difference between ffs and ffs2. In my case, /home will only be around 800 GiB and it will used mostly for flacs (20-40 MiB each). Are there any advantages using ffs2? Should i tweak the standard parameters for fsize, bsize? And if i would use it, should i just do a
Code:
# newfs -O 2 sd0X
# reboot
after the installation completed? Thanks in advance!

Best,
drm
Reply With Quote
  #2   (View Single Post)  
Old 13th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,675
Thanked 214 Times in 189 Posts
Default

Yes, that would be the command. However I don't believe you will have any particular advantage to using FFS2 for your use case, as there is no additional functionality.

--

Time for fsck(8) on boot up may be a concern, as the partition is so large. I mark large non-critical partitions like these with no fsck in fstab(8), and then check to see if they mounted in /etc/rc.local in order to execute fsck(8) in the event the mounts failed. For example, in one of my systems I have a 750GB drive with a single filesystem on it, and in that system's /etc/fstab:
Code:
bec2b3983466e45c.d /tomb ffs rw,softdep,nodev,nosuid 1 0
and in /etc/rc.local
Code:
# background fsck /tomb if required then mount.
df | grep -q tomb || (echo fscking /tomb; fsck -p /tomb;mount /tomb) &

Last edited by jggimi; 13th September 2012 at 01:53 PM. Reason: clarity and typo
Reply With Quote
  #3   (View Single Post)  
Old 13th September 2012
drm drm is offline
New User
 
Join Date: Sep 2012
Posts: 8
Thanked 0 Times in 0 Posts
Default

Hi jggimi!

Thanks for your answer. If i get it right, with your approach you can use your 'vital' partitions -- such as /home -- right after they're fscked at boot, while e.g. /multimedia is beeing repaired in the background? Maybe i will just create a separate slice for my music files and mount it read-only by default, so that there should be no need to fsck it at boot.

Then, my /home would be around 80 GiB. Does FFS2 support faster fsck-times? Or is it really just about supporting lager disks? That still is not totally clear to me.

Thanks and best regards,
drm
Reply With Quote
  #4   (View Single Post)  
Old 13th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,675
Thanked 214 Times in 189 Posts
Default

Quote:
If i get it right...
You did.
Quote:
Does FFS2 support faster fsck-times? Or is it really just about supporting lager disks?
It's really about the larger disks. My 750GB partition is FFS, not FFS 2.
Reply With Quote
  #5   (View Single Post)  
Old 13th September 2012
drm drm is offline
New User
 
Join Date: Sep 2012
Posts: 8
Thanked 0 Times in 0 Posts
Default

Ok, now i got it. Thanks
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
Advantages of FreeBSD over OpenBSD [Desktop] EverydayDiesel FreeBSD General 38 17th May 2013 05:18 PM
ffs2 knasbas OpenBSD General 5 29th September 2012 01:07 PM
OpenBSD home stretch to OpenBSD 5.2! ocicat News 2 16th July 2012 01:33 PM
NFS mount /usr/home? giddyupman FreeBSD General 1 1st September 2008 07:06 PM
FFS2 in OpenBSD, what do you need? Sunnz OpenBSD General 0 5th May 2008 08:05 AM


All times are GMT. The time now is 07:43 AM.


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