LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-14-2014, 06:51 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Post [Hint] Building LFS with ZFS built-in


Figured I'd release my newest hint here. Enjoy and read thoroughly.

Comments and suggestions are welcome.
Attached Files
File Type: txt zfs-on-lfs-hint.txt (11.1 KB, 90 views)

Last edited by ReaperX7; 08-15-2014 at 04:29 AM.
 
Old 08-17-2014, 09:53 AM   #2
mjolnir
Member
 
Registered: Apr 2003
Posts: 815

Rep: Reputation: 99
Thanks for the file. I've never tried to build a LFS system but this may motivate me to try something new. I briefly toyed with OpenSolaris and later OpenIndiana and was always impressed with the ability to make changes to the system and if something screwed up you could easily just boot into the previous BE.
 
Old 08-17-2014, 08:06 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I will advise that this hint is experimental at the moment and I'm testing it with the latest SVN 8-15-2014 for stability purposes.

Bruce is being updated on the progress of this build so it can be authenticated for actual production level usage. However, if your intention is to create a test system, then by all means, otherwise sticking to file systems like JFS and Ext4 are more advised.

Keep tabs on your zpool at all times with this build and scrub only if the zpool status reflects it. Make backups always, and learn to use the zpool snapshots first and foremost.

As a last minute edit, I want to make this perfectly clear. The instructions in the hint are aimed at using a standard ZFS partition using legacy mountpoint and a single zvolume for swap. Anything else is beyond the scope of the hint and is not mentioned. This includes anything like encryption and compression setup, so don't do it.

A future revision may touch on things if and when I feel like it, but for now, stay within the hint, do not deviate, or else I can't help you.

Last edited by ReaperX7; 08-18-2014 at 01:42 AM.
 
Old 08-18-2014, 06:21 AM   #4
mjolnir
Member
 
Registered: Apr 2003
Posts: 815

Rep: Reputation: 99
Sure, no production here. :-) Just a bunch of junkie old computers I like to play with. The "sacrificial lamb" will be an old desktop that currently runs Ubuntu 12.04/XP - 12.04 Wubi.
 
Old 08-18-2014, 11:22 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
When the test build is completed I'll see about adding things like encryption support, compression, etc. but for now we're fine with the basics.

Last edited by ReaperX7; 08-18-2014 at 11:35 PM.
 
Old 08-20-2014, 07:00 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Update: I can confirm compression is stable and working.

You can set it as such:

Code:
zfs set compression=XXXX zfs-root
Possible compression algorithms are:

on(default is lzjb)
gzip
zle
lz4

A bit of a retraction, I'm still unable to get ZFS bootable. I'm working on some solutions but so far I can't recommend ZFS completely yet as stable or viable as root.

You can however use it for a stable long-term storage drive though.

Last edited by ReaperX7; 08-25-2014 at 03:02 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS with zfsroot (ZFS-On-Linux) ReaperX7 Linux From Scratch 12 03-25-2014 11:30 PM
ZFS and LFS re_nelson Linux From Scratch 2 05-25-2013 05:19 PM
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
No-name server, weird problem, pls hint-hint ButterflyMelissa Linux - Server 0 04-06-2009 12:21 PM
lfs hplip boot script hint? behmjoe Linux From Scratch 2 12-22-2005 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration