/srv/irclogs.ubuntu.com/2023/05/20/#ubuntu-server.txt

fooIs 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
fooProbably some smart command I want?00:39
sarnoldsmartctl -a /dev/whatever  or smartctl -x /dev/whatever   aren't bad starting points, if your drive does smart00:41
sarnoldthere'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 experience00:41
foosarnold: hey, thank you! 00:42
sarnoldyou 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:42
foosarnold: thanks! 00:44
sarnoldyou're welcome foo :)00:45
fooI'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
sarnoldif it were me I'd probably use LUKS on the drive and create the filesystem within that00:45
sarnoldthis guide looks reasonable enough https://www.cyberciti.biz/security/howto-linux-hard-disk-encryption-with-luks-cryptsetup-command/00:47
sarnoldI'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
foosarnold: I wonder if I can set that up remotely on a drive? Or do I need to be with the drive? 00:47
foosarnold: ah, interesting. I have generally heard good things of zfs. 00:48
sarnoldfoo: it probably works fine to set it up remotely00:48
sarnoldfoo: 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 yet00:49
sarnoldhttps://gist.github.com/rincebrain/622ee4991732774037ff44c6768085ab#encryption00:49
fooOdd. https://bpa.st/UAZ2W - this explains why DNS ain't working, I think? Heh. 01:16
sarnoldfoo: ooh! this gives me a chance to share one of my favourite tools! :D   namei -l /etc/resolv.conf01:18
sarnoldfoo: I'm headed out, have fun :)01:20
foosarnold: hey! That's cool. Output: https://bpa.st/T2CQ401:28
fooEnjoy your weekend :) 01:29
fooFixed it, did this: sudo systemctl restart systemd-resolved01:35
=== chris14_ is now known as chris14
=== shokohsc0 is now known as shokohsc
=== shokohsc8 is now known as shokohsc
evitI 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/mysql18:34
evitShould I not have done the last step of removing the /var/lib and var/log files?18:34
sdezielevit: removing /var/lib/mysql probably removed the DBs themselves18:35
evitThey were empty18:35
evitI was replaceing Mysql w/ Maria18:35
evitI don't see any logfile for mariadb18:40
evitAnyone know the proper way to remove Mysql and replace with Mariadb? I think I removed something I shouldn't have18:42
JanCI think by default mariadb logs to the same place/files as mysql18:42
JanCso /var/log/mysql.log and not /var/log/mariadb.log or something like that18:48
evitI removed maria completely and reinstalled. Still same issue19:00
evit=019:00
evitLooks like /var/log/mysql is empty19:03
JanCit should also be logging to the systemd journal on modern systems19:10
evitI've got nginx and php 8.0 running, created by database and gave user privs. Still getting Error establishing a database connection19:11
=== shokohsc2 is now known as shokohsc
=== JanC is now known as Guest7776
=== JanC_ is now known as JanC
=== shokohsc3 is now known as shokohsc

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!