[00:39] <foo> Is there a way to check disk health? I used to do badblocks /dev/sdb1 ... but it's throwing this: "badblocks: Value too large for defined data type invalid end block (7814025216): must be 32-bit value"
[00:39] <foo> Probably some smart command I want?
[00:41] <sarnold> smartctl -a /dev/whatever  or smartctl -x /dev/whatever   aren't bad starting points, if your drive does smart
[00:41] <sarnold> there's an nvme command line tool that can get some informatoin out of nvme drives that didn't implement smart -- but that's even harder to understand, in my experience
[00:42] <foo> sarnold: hey, thank you! 
[00:42] <sarnold> you can also use dd to read the whole disk, that'll be similar to the badblocks reading-only mode; you can also use dd to write to the disk, but that's not nearly as good as badblocks for this specific case -- badblocks knows how to check for specific values being read back :)
[00:44] <foo> sarnold: thanks! 
[00:45] <sarnold> you're welcome foo :)
[00:45] <foo> I'm trying to copy data from one system to another. This second system has a USB drive attached, 8TB. Is there a way to remotely create an encrypted partition somehow that I can password protect? That plays nice with rsyrnc.
[00:45] <sarnold> if it were me I'd probably use LUKS on the drive and create the filesystem within that
[00:47] <sarnold> this guide looks reasonable enough https://www.cyberciti.biz/security/howto-linux-hard-disk-encryption-with-luks-cryptsetup-command/
[00:47] <sarnold> I'm a big fan of zfs, and zfs now has native encryption, but I keep hearing that it has issues :( I don't really understand them, but it's enough that I don't think I'd want 8tb of stuff I don't understand..
[00:47] <foo> sarnold: I wonder if I can set that up remotely on a drive? Or do I need to be with the drive? 
[00:48] <foo> sarnold: ah, interesting. I have generally heard good things of zfs. 
[00:48] <sarnold> foo: it probably works fine to set it up remotely
[00:49] <sarnold> foo: yeha, I've got zfs on several systems, on something like 15 drives total, I like it :) but I don't think the encryption is quite there yet
[00:49] <sarnold> https://gist.github.com/rincebrain/622ee4991732774037ff44c6768085ab#encryption
[01:16] <foo> Odd. https://bpa.st/UAZ2W - this explains why DNS ain't working, I think? Heh. 
[01:18] <sarnold> foo: ooh! this gives me a chance to share one of my favourite tools! :D   namei -l /etc/resolv.conf
[01:20] <sarnold> foo: I'm headed out, have fun :)
[01:28] <foo> sarnold: hey! That's cool. Output: https://bpa.st/T2CQ4
[01:29] <foo> Enjoy your weekend :) 
[01:35] <foo> Fixed it, did this: sudo systemctl restart systemd-resolved
[18:34] <evit> I am attempting to remove Mysql and replace it with Mariadb. I did sudo apt purge mysql-server* and $ sudo rm -r /etc/mysql /var/lib/mysql and sudo rm -r /var/log/mysql
[18:34] <evit> Should I not have done the last step of removing the /var/lib and var/log files?
[18:35] <sdeziel> evit: removing /var/lib/mysql probably removed the DBs themselves
[18:35] <evit> They were empty
[18:35] <evit> I was replaceing Mysql w/ Maria
[18:40] <evit> I don't see any logfile for mariadb
[18:42] <evit> Anyone know the proper way to remove Mysql and replace with Mariadb? I think I removed something I shouldn't have
[18:42] <JanC> I think by default mariadb logs to the same place/files as mysql
[18:48] <JanC> so /var/log/mysql.log and not /var/log/mariadb.log or something like that
[19:00] <evit> I removed maria completely and reinstalled. Still same issue
[19:00] <evit> =0
[19:03] <evit> Looks like /var/log/mysql is empty
[19:10] <JanC> it should also be logging to the systemd journal on modern systems
[19:11] <evit> I've got nginx and php 8.0 running, created by database and gave user privs. Still getting Error establishing a database connection