| 24 Mar 2024 |
conr | * ElvishJerricco: I created the zpool already but do i need to destroy and, encrpyt the raw disks, then do the zpool create ... with the luks devices? | 19:53:29 |
ElvishJerricco | conr: Yes, the zfs pool will live on the virtual devices e.g. /dev/mapper/foo, and LUKS will live on the physical devices.
What do you mean you created the zpool already? You can't have already created the pool on the physical devices and also created LUKS volumes on the physical devices too :P
| 19:55:59 |
ElvishJerricco | or have you not tried to make the LUKS volumes yet? | 19:56:26 |
conr | oh i created uncrypted... before i did this LUKS setup. | 19:56:43 |
conr | i have not tried to make the LUKS volumes yet. | 19:56:53 |
conr | i'm going to eat some lunch and come back. | 19:57:10 |
conr | ElvishJerricco: do i still need boot.zfs.extraPools = [ "jjpool" ]; if i am going do it with /etc/crypttab? | 20:50:08 |
ElvishJerricco | conr: Yea. NixOS needs something to tell it to import the pool, and the only way to do that is to either have legacy file systems in the nixos fileSystems config, or to put the pool in boot.zfs.extraPools | 21:02:40 |
conr | ElvishJerricco: how do you remove the filesystem name and label with cfdisk? | 21:43:25 |
ElvishJerricco | oh, cfdisk is just a partitioning tool. It doesn't format the partitions themselves | 21:43:56 |
conr | still shows
Filesystem UUID: 1529979882388306283 │
Filesystem LABEL: jjpool │
Filesystem: zfs_member
| 21:43:59 |
conr | so use fdisk? | 21:44:14 |
ElvishJerricco | no fdisk is just a CLI version of cfdisk | 21:44:24 |
ElvishJerricco | Just use wipefs to actually wipe a partition | 21:44:29 |
conr | i think i have to instlal it | 21:44:42 |
conr | * i think i have to install it | 21:44:48 |
ElvishJerricco | don't think so? | 21:44:48 |
conr | oh right | 21:45:05 |
conr | so i want to wipe all the magic strings with -a? | 21:47:37 |
ElvishJerricco | conr: that's what I do | 21:49:32 |
conr | hmm still shows the same name and label in cfdisk. | 21:54:59 |
conr | it did ask me witch filesystem i wanted, gpt, fat, etc... | 21:56:16 |
conr | * it did ask me which filesystem i wanted, gpt, fat, etc... | 21:56:25 |
ElvishJerricco | conr: did you wipefs the individual partitions or the whole disk? Like wipefs -a /dev/nvme0n1 will just erase the GPT but the file systems on the partitions will remain | 21:58:57 |
ElvishJerricco | well, on what used to be the partitions | 21:59:07 |
ElvishJerricco | so when you create the same partition table again they'll get "resurrected" so to speak | 21:59:24 |
conr | i deleted the partitions with cfdisk first | 21:59:37 |
conr | then tried wipefs. | 21:59:42 |
ElvishJerricco | right, that's just wiping the partition table | 21:59:48 |
ElvishJerricco | so when you put back the same partitions, their contents are still the same as they used to be | 22:00:00 |