Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

luks, zfs, /var

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
deathraccoon
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Tue Jan 27, 2015 10:14 am

luks, zfs, /var

  • Quote

Post by deathraccoon » Thu Dec 17, 2015 7:53 pm

I m reinstalling Gentoo. I have two drives, a primary SSD which holds the system. This is formatted with XFS and Ext4. My secondary, data, drive is encrypted with LUKS and uses a ZFS filesystem.

I want to mount a dataset from the encrypted (secondary) drive onto /var in the primary drive in order to use compression and take the load off the SSD.

My question: during the boot process, will /var need to be available to the system *before* decryption of the secondary drive occurs and the zpool is imported, or can I boot into the system without /var?
Top
Roman_Gruber
Advocate
Advocate
Posts: 3854
Joined: Tue Oct 03, 2006 8:43 am
Location: Austro Bavaria

  • Quote

Post by Roman_Gruber » Thu Dec 17, 2015 8:25 pm

In short, you need an initramfs.

Personal opinion.

encrypt the hole box or leave it. (too much to go into details, the internet is full why, temp files, .. configs, lint ... not good to only encrypt a subset)

i used for years encryption on t9500 cpu (thats 7+ years old now)
past 2-3 years ssd with encryption

now a new box. disc wise there is not much difference

t9500 wiht encryption vs t4300 without encryption (two gentoo notebooks)

i have

25 gb used for everything for / (on a 120gb adata ssd)
*) /usr/portage does not have to be on the ssd
*) /var/log ... same
*) with Downloand folder which will be soon a temporary folder(5gb)

1tb drive for distfiles, and a few junk files from the past which i do not care


I am quite sure i can slim down my hole gentoo box to 20gb, which is easy to backup in a few minutes via usb-3.0 and a ssd in it.

cheapest sata ssd will do the job becaue you use encryption.
Top
deathraccoon
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Tue Jan 27, 2015 10:14 am

  • Quote

Post by deathraccoon » Thu Dec 17, 2015 9:29 pm

I know what I must do now. Simply create a new zpool at /var. I was thinking in terms of needing to use the one zpool at the encrypted drive, but there's no reason I can't make another.
Top
likewhoa
l33t
l33t
Posts: 778
Joined: Wed Oct 04, 2006 12:28 pm
Location: Brooklyn, New York
Contact:
Contact likewhoa
Website

  • Quote

Post by likewhoa » Fri Dec 18, 2015 3:25 pm

You won't need /var mounted for ZFS or the system to boot and ZFS should mount your dataset once the system switches to the real root. So no initramfs needed unless you encrypt /.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic