Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New laptop, ZFS suggestions? - solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tenspd1370
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2017
Posts: 97

PostPosted: Sun Aug 25, 2019 4:28 pm    Post subject: New laptop, ZFS suggestions? - solved Reply with quote

Hi all,

Not sure if this is the correct forum, feel free to move this....

I have a shiny new envy 17 with a 250 GB the SSD and 1TB HDD. I'd like to use ZFS because I really like snapshots.. I was thinking a root pool on the SSD for the os and one pool on the bed for home/data. I know I won't have redundancy benefits from this setup, but I would be able to send snapshots to my backup box which is 4 4 the hdds, mirrored such that there are 2 pools of 4 TB each.

By now you probably guessed that the most I know how to do is mirror things. My questions are

1. Anyone have better ideas for the laptop, should I run with the above, or just scrap. ZFS on it?

2. Is there a better configuration for 4 drives I could use to get similar redundancy benefits but squeeze out more space?

Thanks!


Last edited by tenspd1370 on Wed Aug 28, 2019 7:11 am; edited 1 time in total
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 579

PostPosted: Mon Aug 26, 2019 10:21 am    Post subject: Reply with quote

I have a similar laptop. 128gb ssd is my root pool, 1tb spinning rust countains a small boot partition, 8 gigs swap and the rest a second pool for storage.
While /home/username is on the rootpool (so .local, .share etc. are on the ssd) I put the downloads, music etc. directories on the hdd. I also have /usr/portage/distfiles and /var/tmp/portage on the hdd to save writes to the ssd (should probably put all of /usr.portage on there but well...I didn't. Need to get around to that).

The setup you describe will work perfectly fine, the issue is you won't get the same performance as a native filesystem (although it's not bad by any means).

Something to factor in, I believe that since the release of 0.8.0 grub can no longer boot a kernel on a zfs dataset, I'm pretty sure this was discussed at a leadership meeting a few months ago (openzfs channel on youtube).

Also, have a look here https://wintelguy.com/zfs-calc.pl
Back to top
View user's profile Send private message
tenspd1370
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2017
Posts: 97

PostPosted: Tue Aug 27, 2019 12:52 am    Post subject: Reply with quote

Thanks for the input! I will look into the grub issue you describe - worst case scenario, I'll just run it straight out of UEFI with a kernel stub if I have to - I did that once in the past, I could probably figure it out again. As for the performance, ehh, I'll take a little degredation for all the nice stuff zfs offers :) After I get my system up and running, do the same as you and move things around to avoid unecessary writes.

Thanks for the calculator as well - I may rebuild my backup stuff

Have a good one!
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5908

PostPosted: Tue Aug 27, 2019 8:56 pm    Post subject: Reply with quote

I've run zfs on my laptops for quite some time now, as long as you have enough memory to spare (or adjust the arc_max accordingly), you should be fine. Works really nice on an NVME as well.

Cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
tenspd1370
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2017
Posts: 97

PostPosted: Wed Aug 28, 2019 7:10 am    Post subject: Reply with quote

Thanks! I found a good "how to" using ryao's documentation here:

https://github.com/ryao/zfs-overlay/blob/master/zfs-install

I decided to spread stuff up and put the build directory on my hdd - takes longer but reduces nvme wear. I am most interested in the snapshots, etc. for my laptop. Either way, if it works well, I may open it up and see what kind of expansion ability I have later. Maybe add some memory to put build directory on tmpfs, etc.

Take care!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum