The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,570 other followers

Archive for the ‘*nix’ Category

systemd – How to clear journalctl – Unix & Linux Stack Exchange

Posted by jpluimers on 2019/05/24

Some tips on pruning entries from the systemd journal:

For stock opensuse, this is also relevant, as it seems to allow indefinite growth: [WayBack] systemd – journald Settings likey need your attention

You can view disk usage with this command:

journalctl --disk-usage

–jeroen

Posted in *nix, Linux, Power User, systemd | Leave a Comment »

Scheduled jobs and jitter…

Posted by jpluimers on 2019/05/23

Too bad G+ doesn’t allow the WayBack machine or Archive.is to archive the whole thread at [WayBack] [Archive.isDas es inzwischen fast überall Standard ist die Uhren mit einem guten Zeitsignal zu synchronisiseren (NTP, DCF-77, GPS etc) ist eigentlich eine gute Sache… – Kristian Köhntopp – Google+ so here are a few quotes below.

The generatel conclusions seem to be that:

This was the start:
Nils Ketelsen originally shared:

Guckt man live sieht es schon anders aus: Während die RunQueue meist so bei 4-5 liegt (bei 21vCPUs kein Problem) springt sie jede volle Minute einige Sekunden lang auf 20. Bei durch 2 Teilbaren Minuten auf ca. 40. Bei durch 10 Teilbaren Minuten auf 70, bei durch 15 teilbaren Minuten auf 150…. Ich habe eben durch einen schlecht getimten Toilettenbesuch die volle Stunde verpasst, das muss ich gleich mal anders hinbekommen, aber ich gehe davon aus, daß es da noch schlimmer ist.

And these some of the comments:

Read the rest of this entry »

Posted in *nix, *nix-tools, Algorithms, cron, Development, Power User, Software Development | Leave a Comment »

Not sure if this btrfs error was benign or not.

Posted by jpluimers on 2019/05/17

Booting the VM gave this in the log:

# btrfs balance /
WARNING:

    Full balance without filters requested. This operation is very
    intense and takes potentially very long. It is recommended to
    use the balance filters to narrow down the scope of balance.
    Use 'btrfs balance start --full-balance' option to skip this
    warning. The operation will start in 10 seconds.
    Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting balance without any filters.
ERROR: error during balancing '/': Input/output error
There may be more info in syslog - try dmesg | tail
diaspore:~# dmesg | tail
[ 2261.857360] BTRFS info (device sda2): found 144 extents
[ 2261.922014] BTRFS info (device sda2): found 144 extents
[ 2262.003653] BTRFS info (device sda2): found 144 extents
[ 2262.146557] BTRFS info (device sda2): found 144 extents
[ 2262.268034] BTRFS info (device sda2): relocating block group 20951597056 flags data
[ 2268.255631] BTRFS info (device sda2): found 19765 extents
[ 2278.541549] BTRFS info (device sda2): found 19758 extents
[ 2278.685372] BTRFS info (device sda2): relocating block group 14558429184 flags data
[ 2278.714483] BTRFS warning (device sda2): csum failed root -9 ino 269 off 65150976 csum 0x27374190 expected csum 0x7091fbbc mirror 1
[ 2278.714619] BTRFS warning (device sda2): csum failed root -9 ino 269 off 65150976 csum 0x27374190 expected csum 0x7091fbbc mirror 1

Booting from a rescue DVD, then checking with an unmounted /dev/sda2 nothing is wrong:

localhost:~ # btrfs check /dev/sda2
Checking filesystem on /dev/sda2
UUID: 23d33d0f-0468-4408-b73c-b0eec9387d82
checking extents
checking free space cache
checking fs roots
checking csums
checking root refs
checking quota groups
found 6460166144 bytes used, no error found
total csum bytes: 5795704
total tree bytes: 214171648
total fs tree bytes: 193740800
total extent tree bytes: 12910592
btree space waste bytes: 40754145
file data blocks allocated: 35720101888
 referenced 11352182784

Both had the same version:

# btrfs version
btrfs-progs v4.13

If I ever need recovery, then these links likely help:

–jeroen

Posted in *nix, *nix-tools, btrfs, File-Systems, Power User | Leave a Comment »

Reset Linux Desktop To Default Settings With A Single Command – OSTechNix

Posted by jpluimers on 2019/05/16

To reset Ubuntu Unity or any other Linux desktop with GNOME/MATE DEs to its default settings, run:

dconf reset -f /

Source: [WayBack] Reset Linux Desktop To Default Settings With A Single Command – OSTechNix

I need to check if it works on OpenSuSE with XFCE as there the dconf command is installed, but I still have a default desktop (mainly because most of the work I do is using a terminal over ssh).

–jeroen

via: [Archive.is] Never thought about dconf reset… Joe C. Hecht – Google+

Posted in *nix, *nix-tools, Linux, Power User, X11 | Leave a Comment »

command line – How to access a usb flash drive from the terminal? – Ask Ubuntu

Posted by jpluimers on 2019/05/13

Based on [WayBackcommand line – How to access a usb flash drive from the terminal? – Ask Ubuntu

Figure out the device:

  • lsblk
  • sudo blkid
  • sudo fdisk -l

Mount the device (assuming it is /dev/sdb1):

  • sudo mount /dev/sdb1 /media/usb
  • pmount /dev/sdb1
  • udisksctl mount -b /dev/sdb1

Unmounting and eject is in [WayBack] Linux (Ubuntu): safely remove USB flash disk via command line – Stack Overflow

–jeroen

Posted in *nix, *nix-tools, Linux, Power User | Leave a Comment »

 
%d bloggers like this: