16:00:31 #startmeeting Infrastructure (2023-02-02) 16:00:31 Meeting started Thu Feb 2 16:00:31 2023 UTC. 16:00:31 This meeting is logged and archived in a public location. 16:00:31 The chair is mkonecny. Information about MeetBot at https://fedoraproject.org/wiki/Zodbot#Meeting_Functions. 16:00:31 Useful Commands: #action #agreed #halp #info #idea #link #topic. 16:00:31 The meeting name has been set to 'infrastructure_(2023-02-02)' 16:00:31 #meetingname infrastructure 16:00:31 The meeting name has been set to 'infrastructure' 16:00:31 #chair nirik zlopez nb bodanel dtometzki jnsamyak 16:00:31 #info Agenda is at: https://board.net/p/fedora-infra 16:00:31 Current chairs: bodanel dtometzki jnsamyak mkonecny nb nirik zlopez 16:00:32 #info About our team: https://docs.fedoraproject.org/en-US/cpe/ 16:00:32 #info Fedora Infra documentation: https://docs.fedoraproject.org/en-US/infra 16:00:32 #topic greetings! 16:00:38 Hi everyone 16:00:55 morning 16:00:58 Morning 16:01:04 .hi 16:01:06 darknao: darknao 'Francois Andrieu' 16:01:26 Welcome aboard of today's voyage 16:01:45 I will be our captain for today 16:01:54 .hi 16:01:55 phsmoura: phsmoura 'Pedro Moura' 16:02:04 .hello eddiejennings 16:02:07 eddiejenningsjr: eddiejennings 'Eddie Jennings' 16:03:34 So let's look if there is anyone new aboard this ship :-) 16:03:35 #topic New folks introductions 16:03:35 #info This is a place where people who are interested in Fedora Infrastructure can introduce themselves 16:03:36 #info Getting Started Guide: https://fedoraproject.org/wiki/Infrastructure/GettingStarted 16:03:38 Don't be shy and introduce yourself 16:05:10 We won't bite :) 16:05:32 we are a pretty friendly bunch. or try to be. :) 16:06:34 It seems that there is nobody new today 16:06:35 So let's look for the captain of next voyage 16:06:41 #topic Next chair 16:06:41 #info magic eight ball says: 16:06:41 #info chair 2023-02-02 - mkonecny 16:06:42 #info chair 2023-02-09 - dtometzki 16:06:42 #info chair 2023-02-16- ? 16:07:19 I can do 2023-02-16 :) 16:07:56 Hear, hear, the captain for voyage on 2023-02-16 will be Eddie Jennings, Jr. 16:08:29 #info chair 2023-02-16- eddiejennings 16:09:12 Let's see if there is any volunteer for next one 16:09:14 #info chair 2023-02-22 - ??? 16:09:24 Oh, sorry 16:09:27 #info chair 2023-02-23 - ??? 16:10:57 I guess I could take it if no one else... or we could just punt and fill it next week? 16:11:26 I will leave it to next week, we already have captains for next two weeks assigned 16:12:20 Let's check what the radio operator heard on radio 16:12:24 #topic announcements and information 16:12:25 #info CPE Infra&Releng EU-hours team has a Monday through Thursday 30 minute meeting going through tickets at 1030 Europe/paris in #centos-meeting 16:12:25 #info CPE Infra&Releng NA-hours team has a Monday through Thursday 30 minute meeting going through tickets at 1800 UTC in #fedora-meeting-3 16:12:27 #info If your team wants support from the Fedora Program Management Team, file an isssue: https://pagure.io/fedora-pgm/pgm_team/issues?template=support_request 16:12:27 #info oncall should also handling #fedora-releng pings if possible 16:12:27 #info F38 branching from rawhide on 2023-02-07 16:12:36 Anything he missed? 16:13:24 #info DNS problems with mail have been tracked and fixed ? 16:13:50 mainly in case someone wants to know where their @fedoraproject.org email may have gone 16:14:25 #info bodhi is now refreshing critpath every day 16:14:56 #info Test monitoring/alerting in staging openshift cluster. Coming soon to more apps near you 16:17:03 This seems that the radio operator really missed few messages 16:17:29 I think we missed sending them before hand. ;) 16:17:54 yeah 16:18:08 I had to come via a runner boat with this message 16:18:30 Thanks for delivering them 16:19:00 And now let's check who is appointed to the lookout post 16:19:09 #topic Oncall 16:19:09 #info https://fedoraproject.org/wiki/Infrastructure/Oncall 16:19:09 #info https://docs.fedoraproject.org/en-US/cpe/day_to_day_fedora/ 16:19:20 #info darknao is on call from 2023-01-26 to 2023-02-02 16:19:20 #info jednorozec is on call from 2023-02-02 to 2023-02-09 16:19:21 #info mkonecny is on call from 2023-02-09 to 2023-02-16 16:19:40 It seems that we are pretty full for next few weeks 16:20:03 #info ??? is on call from 2023-02-17 to 2023-02-23 16:20:22 Could we find a volunteer for the following week? 16:21:24 If not, no worries we can fill this post in upcoming weeks 16:21:52 .hi 16:21:53 dtometzki: dtometzki 'Damian Tometzki' 16:22:04 Alas, I'll be out of town much of that week. 16:22:08 a little bit late :-( 16:22:42 Let's keep it empty for now and fill the post in upcoming weeks 16:23:00 And now what the current lookout saw in the distance 16:23:01 #info Summary of last week: (from current oncall ) 16:23:46 Do we have darknao on board? 16:23:51 only one ping last week 16:23:57 Fri 01-27: login timeouts from id.fp-o. Was solved by rebooting ipsilon01. 16:24:03 and that's it 16:24:47 OK and now for the chief engineer to hear about the status of our engines 16:24:57 #topic Monitoring discussion [nirik] 16:24:57 #info https://nagios.fedoraproject.org/nagios 16:24:57 #info Go over existing out items and fix 16:25:10 aye aye captain 16:25:36 nothing really new to report here... same alerts for the most part. 16:25:47 There's a ticket to fix some of them if anyone wants to look into them. 16:26:01 otherwise the engines are churning along. 16:26:31 Good to hear chief engineer 16:27:15 And now for our VIP guest Eddie Jennings, Jr. , who will talk about BTRFS 16:27:22 #topic Learning topic 16:27:22 #info 2023-02-02 Using Btrbk for BTRFS snapshot backups [eddiejennings] 16:27:58 :D 16:28:26 As always this comes with the preface of I'm no master of BTRFS. I'm learning along with the rest of us :) 16:29:11 There are no masters of BTRFS, just those that know more than others :-D 16:29:11 Also, I'm at work right now, so hopefully I won't be summoned in the next 30 minutes. 16:33:15 If you're wanting to use BTRFS's snapshot capability for backups, this is the basic overview of how that would work. 16:33:15 1. Create a BTRFS subvolume such as /.snapshots to store your snapshots locally 16:33:15 2. Use btrfs subvolume snapshot -r to make a read-only snapshot of the BTRFS volume you want to backup 16:33:15 3. Use btrfs send | brtfs receive to send the snapshot to a different medium or offsite. 16:34:17 The key when doing this method is the -r when making the snapshot as this will make it read-only (immutable). Note it can be deleted, but not altered. 16:35:07 So it is entirely possible to write a BASH script to do this and run it as a cron job or with systemd timers; however. . . 16:36:11 While I do enjoy writing my own stuff, sometimes its best to not reinvent the wheel. That's where btrbk comes in. https://github.com/digint/btrbk 16:37:03 Before I talk about btrbk, are there any questions about the general backup concept of, take a snapshot, have it stored locally, then send it to a remote place? 16:39:10 Seeing none, I'll keep going. 16:39:23 does send/receive use ssh? or it's own transport? or ? 16:41:16 Yes :) If you send remotely, you'll likely be using ssh. If you're sending to say an external hard drive, you'd just have btrfs send your_snapshot | btrfs receive /path/to/your/device/dir 16:42:08 You can install btrbk via Fedora repos (dnf install btrbk). 16:43:28 nice. I didn't know you could do that locally... makes sense though. 16:44:10 The general setup for btrbk is that you edit its configuration file. Then schedule /usr/bin/btrbk run. 16:44:26 It really is that simple. 16:45:04 Now, you can create as much complexity as you want. I'll describe what I tested and describe the success. 16:46:27 btrbk provides a btrbk.conf.example file, which is useful for building your own config file. What you'll probably do is just take the example file and simply alter it to your needs. I don't have my file in a public repo, else I'd share it here (might make it public one day). 16:48:06 For sending snapshots over SSH, the easiest setup for that is to setup ssh key authentication to the root account on the receiving server, and just connecting via root. I didn't want to do that, as I do try to not use root when I don't have to for things. 16:49:40 So what I did was create a different user account for btrbk to connect as. However, doing this required me to grant this user sudo privileges, since btrfs commands require elevated privileges. 16:50:40 At first I thought all I needed to do was give it permission to use sudo with btrfs-receive; however, I learned that there's a bit more happening with btrbk's connection (because of the features brtbk provides). 16:50:59 What I ended up using for the account was ALL=(ALL) NOPASSWD: /usr/sbin/btrfs*,/usr/bin/readlink* 16:51:31 allowing it to use any command starting with btrfs (which includes options and such) and readlink. 16:52:55 So while the account won't own the entire server, it can do what it wants with btrfs. The other safety measure I have is that this account has no password; thus, it can only authenticate with ssh keys. Should someone get console access to my backup server, they wouldn't be able to login as my backup service user. 16:55:18 Once I got the authentication and sudo figured out, snapshots started flowing well. I had btrbk keep hourly snapshots for a day, and daily snapshots for a week. You can configure it to do retention on the target server, but for my tests I chose not to do that. 16:55:39 Now, there is a gotcha with btrfs sending to a remote. In my experience it CANNOT handle a connection interruption. So if your ssh connection dies, you have to start over, else you are left with an incomplete snapshot. 16:56:16 So for your very first snapshot send, it may take a while. But subsequent sends are diffs, so they are quick. 16:57:43 We are almost at end of this meeting 16:57:48 The way I handled potential incomplete snapshots was I scheduled a script that ran btrbk run, as well as btrbk clean, which deleted incomplete snapshots on the server side. That way I didn't have to worry about keeping incomplete snapshots around, and since I was snapshotting hourly missing a few wasn't a problem. 16:57:53 Alas, yes we are :( 16:58:12 I thought I'd have less to say :P 16:58:52 I'd be happy to do a part 2 of btrbk and take questions and go through my setup more at a late rmeeting 16:59:12 and go over restoration of backups 16:59:24 It was plenty of information :-) 16:59:59 eddiejenningsjr++ 17:00:28 eddiejenningsjr++ 17:00:36 Thank you everyone for joining our voyage today 17:00:37 Let's see you next time 17:00:47 eddiejennings++ 17:00:47 darknao: Karma for eddiejennings changed to 7 (for the current release cycle): https://badges.fedoraproject.org/tags/cookie/any 17:00:52 Thanks for steering the ship zlopez :) 17:00:57 zlopez++ 17:01:01 #endmeeting