00:44:09 deimosBSD: if you like ipfw, you might be interested in a primer i wrote for it a few months ago. 00:44:49 https://www.jimby.name/fbsd/ipfw/en/books/ipfw-primer/ 00:44:55 enjoy :-) 07:34:05 Guys, any way of testing a geli password on a running machine (/ and swap are encrypted)? I don't remember which of my like 50 passwords I used to do the disk encryption.. :) so ideally I'd like to find out which one it is before I do a reboot and have half an hour downtime guessing the password. 07:49:05 Onepamopa: you can backup data from these partitions before reboot 07:49:32 I know I can. There's not much to backup, it's a production server with a few services running. 07:49:51 So, there's no way to test passwords? 08:02:48 The F-ing chatgpt gives me geli attach -n -j /dev/stdin /dev/ada0p3  (-n without an argument) to do a "dry-run" without creating an .eli but from what I see on man geli ... that doesn't seem to be the case, at least according to the man.. 08:03:28 don't trust chatgpt with your data 08:03:47 or with anything for that matter … 08:03:49 That's exactly why I asked here first... 08:05:25 you could try to change the password. it should ask you to give the current one before allowing to change to a new one ( from: https://forums.freebsd.org/threads/verifying-password-for-geli.58634/ ) 08:06:30 also found -C (dry-run) 08:10:00 chatgpt is endless source of false information that feels strangely true 08:10:09 btw, the encryption was done manually (UFS, not ZFS via the setup) 08:12:28 since the encryption is geli, the filesystem will not matter for this (imo) 08:13:55 dry-run only seems to work for `geli attach`, but it checks the password and informs if it's wrong. it did so for me with a wrong password (but currently can't test with the correct one) 08:14:03 So, geli attach -C -n 1 -j /dev/stdin /dev/ada0p3  should work for testing the password 08:14:04 (-n 1 because the key is 0x01 according to geli dump) 08:14:41 i lmfao'd when it told me who my parents are, gave a source too but there was nothing like that on that page! 08:14:52 lol :) 08:14:56 so why using it for geli... 08:15:13 I was waiting for a response here, so I decided to "give it a shot" 08:15:20 Wasn't about to do what it told me tho .. 09:59:13 how's 14.4 looking? 12:51:19 is beadm still something that i can use to create boot environments for rolling back? 12:58:24 Macer yes, but also make sure you have an updated boot archive. 12:58:28 bootadm list-archive 13:12:41 it's a fresh install. i haven't really done much to it yet. i'm just prepping it to use cbsd on it for jails/vms 13:13:17 yeah, beadm is still and will continue to be well-supported 13:13:58 xv8: did you mean beadm? 13:14:06 i don't see a bootadm 13:14:28 let me take a look at https://wiki.freebsd.org/BootEnvironments 13:27:33 Macer oh gosh, forgive me, I thought I was in the #solaris channel xD 13:28:29 Waking up and giving advice uncaffeinated is not recommended. 13:35:03 lol 13:35:28 Solaris, FreeBSD, same thing really... at least filesystem wise >:) 13:35:52 a piece of me is wondering if it would be possible to just zfs send the proxmox zvols of VM vdisks over and run them in bhyve untouched. 13:36:09 i'm pretty sure proxmox doesn't do anything special to them. they're just raw disk zvols. 13:36:19 why not try? :P 13:36:26 whats the worse than could happen, you have to zfs send them again? 13:41:57 i can't yet. no disks in the freebsd server yet 13:42:58 https://social.macer.life/@elite/114542558422668917 13:43:47 but i did manage to get freebsd on the ancient supermicro 1u in that picture. i had a hard time of it since i'm using usb drives connected in the two internal usb ports (on the motherboard) for booting freebsd and after the install finished it took like 10 minutes to shut down. 13:44:20 maybe flushing the usb drive cache? not really sure. i attempted to re-install like 4 times and this time waited at the end to see if it would eventually shut down. 13:44:28 probably 13:44:35 sync & 13:44:44 that's still valid command 13:45:45 so beadm looks pretty straighforward, but do you have to reboot for the new be to accept changes? 13:46:06 ie: you're still making changes to default until you reboot? 13:47:13 Seems like N = now and R = reboot? 13:49:29 seems so 13:50:26 Macer: we have bectl(8) 13:50:32 doh! 13:50:35 yeah.. lol 13:50:52 let me give it a read 13:51:16 beadm was deprecated, right? 13:51:26 I just set this up a week or two ago and it was my first time with boot environments 13:52:56 i really wish this 1u didn't take like 5 minutes just to post. i need to take a hard look at the bios and see if i can speed that up at all. 13:53:58 wip_01 NR / 1.80G 2025-05-21 08:49 13:54:00 nice 14:15:09 beadm doesn't give you a menu on boot does it? 14:15:35 i didn't have the ipmi console open when i reboot 14:16:50 IIRC, if you've more than one BE, you should see an option at the bootloader 14:16:53 #8 I think 14:20:26 i see. let me reboot and take a look 14:23:38 ah it sure does. nice. 14:28:32 though, fun fact: the BE is kinda only a suggestion, as I got myself into a situation where the bootloader was properly showing the BEs and letting me apparently boot into them, but FreeBSD was grabbing completely the wrong disk for the root FS 14:28:51 the 'old' root FS was on another disk and wasn't even ZFS 15:39:27 hi, i'm seeing a weird thing on freebsd 15:39:52 if i compile something that uses std::thread on linux it also pulls in -pthread 15:39:59 on freebsd it does not and i have to add it manually 15:40:16 i don't understand why it's required 15:41:35 this is with -static btw 15:41:55 so surely since i'm touching thread stuff it should pull in all the pthread, no? 17:06:39 what's a good filesystem to share between freebsd and linux (' ^ ' )? 17:07:52 ext2fs 17:07:53 Probably depends on what kind of storage medium it is. For large drives with file structures where UNIX permissions are important, ZFS might work, the implementation used on FreeBSD is also available for Linux 17:08:34 Granted, it's not shipped by default on Linux because of licensing concerns 17:09:54 oooh 17:10:12 ... and actually moving a drive between those two systems is rather annoying, as you have to export it / import it each time 17:10:22 (a ZFS drive, that is) 17:10:51 how about xfs 17:15:03 unwrapped_monad: check what fuse fs are available, or use an nfs share? 17:15:37 DaliborFox: is linux just going to go forever without zfs then? 17:15:38 unwrapped_monad: I use ZFS even on USB disks, to share data between MacOS, Linux, Windows and FreeBSD. Works great! FAT32 is very common too, which what I used before. 17:16:45 johnjaye: Ubuntu ships it, NixOS ships it(with rootfs abilities) but yes it's not allowed in the kernel directly without a license change, which has roughly a 0% chance of changing. 17:17:51 probably the most annoying part about FAT32 is the 4GB file limit. Back in the 90s, it was no issue, but nowadays, you can't even store an uncompressed DVD image on that 17:18:20 I think exfat got rid of that limitation? Do we support exfat? 17:21:00 looks like it's in ports as FUSE: /usr/ports/sysutils/fusefs-exfat 17:24:11 so to get the ball rolling i'm going to put one 8TB platter in and set up mountpoints and add a mirror later. i'd have to create it as a stripe for now right? then just add a disk to the vdev as a mirror later? 17:25:35 zie: i'll try sharing a zfs partition (⁠◍⁠•⁠ᴗ⁠•⁠◍⁠) 17:27:09 just beware that ZFS is more than just a filesystem, which means there's a bit of a learning curve to all of the tools and such 17:27:36 since it's also a software raid solution 17:30:17 ooh (⁠・⁠o⁠・⁠;) 17:54:23 unwrapped_monad: Good Luck! If it's a network share, it will be NFS or SMB(via samba) probably. Otherwise you have to do the export/import thing to physically move the disk between machines. 18:18:27 well that wasn't good lol 18:19:02 i think my sloppy method of migrating unwanted zfs datasets off the usb boot drives was not the best way to go about doing it 18:19:24 hopefully they pop back up when it reboots 18:20:47 oh yeah. that's totally broken now 18:23:39 guess i'll have to pull that thing out and start from scratch. i don't think there's really any recovering from it 19:16:28 lattera: congrats ! I have just read about this cool initiative ! 19:16:49 mzar: thanks! 20:00:51 i really wish the fbsd installer gave you the option to create secondary pools and ask if you'd like to create mountpoints. ie: if you use usb drives or maybe smaller nvmes to boot but want to put the meat of fbsd on SSDs or platters 20:01:45 seems like the only way to do that is to either use the advanced partition section which really doesn't help for that or drop into a shell after install and do a lot of manual work for it 20:02:26 in my case i'm booting from mirrored usb drives but want /usr et al on a mirrored platter pool 20:02:40 Macer: you can create pools by hand, install bootloader and extract kern and base 20:02:54 so it's completely supported 20:03:41 yeah. i managed to get it going and i get that it's supported. but it definitely takes a lot more elbow grease than being an option in the installer 20:03:59 neat 20:04:07 in my case i just let the installer install on the usb drives then set the mount points by hand after sending /usr over to the new pool 20:05:25 the only option in the installer that's automated is using disks in whatever vdev method you choose and it's all or nothing without an option to create more than one pool to change mountpoints. like there should probably be a boot/root pool and data pool option in the installer for that 21:12:13 so i have a single disk pool and i want to take that single disk and add another drive to mirror it.. that should be zomething like zpool add pool mirror gpt/disk1 gpt/disk2 right? 21:12:19 do i have to force that since it's in an active pool? 21:26:43 oh i guess you just have to attach it. haven't done that in quite a while. 21:28:29 I read that and knew something was wrong because the add command cited was adding two disks not one. 21:29:44 yeah. i just had to attach it to the existing disk. i have a mirror now. 21:30:15 Woot! \o/ 21:30:28 i just dug up 2 8TB platters to give this a go 21:30:49 what happens if i replace disks with disks that are too small. like for instance i find cheap 8TB SSDs and want to just swap them out? 21:31:00 but they're slightly smaller or something 21:31:21 does zfs have any tolerance for that sort of replacement? 21:32:38 i want to give cbsd a spin to see how well i can run jails and VMs 21:34:15 You can change to larger data slices. You can't change to smaller data slices. 21:35:27 You have a bucket that is full. You want to put it into a smaller bucket and use the smaller bucket. What do you do with the water that does not fit? 21:36:29 what if the bucket is only 1/3 full though? :) 21:37:07 i guess i can swap out the 8TB for 10TB SSDs if that ever becomes a thing 21:40:34 Let's assume the feature you want worked. At some point you would need to have both the old large disk and the new small disk online at the same time to do the copy. Which means that you can simply create a new array using the small disks as you want, mount them up ("import" them), and then simply copy the files. And by copy I mean "zfs send|recv" the datasets. 21:43:29 figured if the disk was larger then zfs autoexpand would kick in and eat up the larger size 21:44:20 i thought a way to do it if you wanted to grow was to replace each disk one by one with larger ones and it will fill the space on the last resilver depending on the vdev 21:44:53 yeah going smaller. yeah i can see that being an issue. i was just curious if zfs had any tolerance to a disk being a little smaller. for instance the difference in size between a platter an SSD where it's like 1GB smaller because of some manufacturing nonsense 21:45:00 You can GROW the disks to larger ones. But you said "what happens if i replace disks with disks that are too small 21:45:48 i guess they're supposed to be "the same size" but i can see something being slightly smaller 21:47:30 At one time in the far distant past it was typical use the entire raw disk for one of the zfs devices, for various reasons. But now I will just state that the best practice is to partition disks with GPT partitions, add GPT labels to the partitions desired, and then use the partitions for zfs devices. That's best. 21:48:21 Doing that means that partitions used for zfs will always be slightly smaller than the entire disk. The partitions should always be aligned. And then you will have some slop factor available. 22:22:00 I have a bunch of FreeBSD machines. I ssh into them from a Mac laptop. There is one machine the connection stays up forever. There are some other machines that I notice they all seem to lose their ssh connection and I have to log in again. I notice the machine that keeps its connection is 12.1 and the others are like 14.1. I looked in /etc/ssh/sshd_config but didn't see anything different, any suggestions? 22:25:54 Macer you can drop into a shell before the install and manually create and mount zfs partitions as you'd like them to be and then exit the shell and continue the unzip part of the install and post configuration. I do that all the time as I just want one large partition with all of FreeBSD installed clean including the /var directories. I just keep my homes directory separate and reuse that from install to install 22:28:35 crb, My first thought is that the connection between drops such as due to a NAT table timing out or something. I always set ServerAliveInterval 200 to keep a keepalive/makedead running. Maybe?? 22:29:28 rwp: machines on both sides are inside the firewall so I doubt it's NAT 22:30:38 rwp: I don't see that option in either the machines that drop connection or the one that doesn't 22:33:05 "man ssh_config" look for ServerAliveInterval 22:34:14 Also check /var/log/auth.log and see if there are clues there. 22:36:21 rwp: nothing in my /var/log/messages except the usual failed attempts to log in 22:38:04 rwp::rwp: ServerAliveInterval does not appear in man sshd_config 22:40:55 crb: it's in ssh_config. 22:41:19 as he said 22:41:21 you typo'd 22:42:46 Right! :-) 22:43:10 ok 22:43:18 since I'm ssh'ing from the same machine the same options should apply to the machines that drop and the one that doesn't if it's a client side option 22:43:30 have cbsd working but that took some doing as well considering it automagically creates zpool/jails .. not sure if there is an option to change the default pool there 22:43:43 or maybe it puts it on zroot because nothing else exists 22:46:37 not sure why it sends me to /var/empty when i just type cbsd though. i wonder if i missed something or if that's normal 23:12:42 cbsd sure feels a lot like smartos