Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Anyone using zfs on a laptop?
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
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1670

PostPosted: Tue May 21, 2024 5:09 am    Post subject: Anyone using zfs on a laptop? Reply with quote

Anyone using zfs on Gentoo laptop?
If so whats your setup like?
Are you using GPT partitions?
Dual boot with Grub?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 177
Location: Ancient Rome

PostPosted: Tue May 21, 2024 4:14 pm    Post subject: Reply with quote

Two NVMEs, both with GPT, and two partitions. First partitions are 1GB ESP in mirror mdraid with metadata v1.0, which makes those two partitions looks like regular partitions for UEFI, but Linux is aware this is raid. On ESP there is rEFInd and kernel+initramfs (because rEFInd can't load from ZFS), and UEFI has two separate entries for both partitions. Second partitions are mirrored ZFS.

Code:
lekto@lapek ~ $ lsblk
NAME        MAJ:MIN RM    SIZE RO TYPE  MOUNTPOINTS
(…)
nvme0n1     259:0    0  476.9G  0 disk 
├─nvme0n1p1 259:1    0      1G  0 part 
│ └─md127     9:127  0 1023.9M  0 raid1
└─nvme0n1p2 259:2    0  475.9G  0 part 
nvme1n1     259:3    0  476.9G  0 disk 
├─nvme1n1p1 259:4    0      1G  0 part 
│ └─md127     9:127  0 1023.9M  0 raid1
└─nvme1n1p2 259:5    0  475.9G  0 part


Code:
lekto@lapek ~ $ efibootmgr
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0002,0001,0016,0017,0018,0019,001A,001B,001C,0000
(…)
Boot0002* rEFInd (2242)   HD(1,GPT,d4460a01-33ef-4a5c-bcb4-c0d5581d850b,0x800,0x200000)/File(\EFI\BOOT\bootx64.efi)
Boot0003* rEFInd (2280)   HD(1,GPT,de6b62e3-8868-4b5b-87e1-b78047aeca84,0x800,0x200000)/File(\EFI\BOOT\bootx64.efi)
(…)


Code:
lekto@lapek ~ $ zpool status
(…)
config:

   NAME                                                        STATE     READ WRITE CKSUM
   lapek_datapool                                              ONLINE       0     0     0
     mirror-0                                                  ONLINE       0     0     0
       nvme-UMIS_RPJTJ512MEE1OWX_SS0W76184Z1CD11N22RL-part2    ONLINE       0     0     0
       nvme-WDC_PC_SN530_SDBPNPZ-512G-1114_21260E806723-part2  ONLINE       0     0     0
(…)
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 795
Location: over here

PostPosted: Wed May 22, 2024 12:34 pm    Post subject: Reply with quote

I do started with zfs-0.6.2

It's one of those laptops with with two disk ports so It has an 128G m.2 and a 1TB 2.5".

So, two 1 disk pools. The small disk is / the big one has /home (datasets for documents, music, etc) and an ext2 boot partition on it. iirc grub didn't support booting zfs at the time of installation. Also have an 8G zvol for swap (yes I know I shouldn't have but I can't be bothered to backup and restore, I use the same amount of zram to get around lockups).

Legacy bios, msdos labels.
_________________
Bus conductors learned to code.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1670

PostPosted: Wed May 22, 2024 2:19 pm    Post subject: Reply with quote

Interesting thanks I'll give it a try. I have always used ext4
_________________
Donate to Gentoo
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