this post was submitted on 13 Dec 2023
19 points (95.2% liked)

Linux

48090 readers
667 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

One for those running #ZFS on #Linux systems. I realise that you can't have hibernate aka suspend to disk on a swap in the encrypted zpool but if you don't use hibernation then is it OK to use swap using the likes of the command example below to set it up in the encrypted pool?

I should point out that I'm thinking of switching from my current Void Linux luks lvm setup to Void with fully encrypted zpool and zfsbootmenu on my ThinkPad P14s AMD Gen 1which has 16Gb ram that I may upgrade to 40Gb. It also has a 1Tb nvme.

zfs create -V "${v_swap_size}G" -b "$(getconf PAGESIZE)" -o compression=zle -o logbias=throughput -o sync=always -o primarycache=metadata -o secondarycache=none -o com.sun:auto-snapshot=false "$v_rpool_name/swap"

you are viewing a single comment's thread
view the rest of the comments
[–] JustineSmithies@lemmy.world 4 points 11 months ago (2 children)
[–] socphoenix@midwest.social 3 points 11 months ago (1 children)

You might try adding a cache drive instead. It can help lessen the memory usage zfs needs to maintain speed. My server is spinning rust with an ssd drive attached to the pool as cache.

Command would be “zpool add pool_name cache /dev/sdX” where pool_name is the pool you want the cache on, and /dev/sdX is the empty drive you want to use with it (or partition). Make sure to encrypt this drive before setting this up, my knowledge is zfs doesn’t do that for you.

see here for a bit more information on caching.

[–] aodhsishaj@lemmy.world 4 points 11 months ago* (last edited 11 months ago) (1 children)
[–] socphoenix@midwest.social 1 points 11 months ago* (last edited 11 months ago) (1 children)

It’s 512GB of ssd cache plus 128GB of ram, so for now that’s been enough

[–] aodhsishaj@lemmy.world 3 points 11 months ago

Ah sorry I responded to the wrong post somehow. Meant that for OP

[–] aodhsishaj@lemmy.world 2 points 11 months ago

ZFS was built initially for large SANs so it's very cache driven. You should get two SSDs and add both for cache.