Beiträge von frief

    oops, die Mails hatten sich überschnitten und inzwischen habe ich Platz freigeräumt und rebootet.
    Jetzt tritt die Write Loop nicht mehr auf. Und das jetzige dmesg scheint mir unauffällig:



    An den vorherigen dmesg komme ich zumindest so nicht ran:

    Code
    # journalctl -b -1 | grep -i btrfs
    Specifying boot ID or boot offset has no effect, no persistent journal was found.


    Damit ist der Status hier ok. Ich habe jedoch (etwa 3 Boots vorher) ein Image von /dev/sda2 erstellt. Dieses könnte ich vermutlich als loop device mounten, um dort (mit einem per Hand aufgerufenen balance) die Write Loop zu reproduzieren.


    Danke für Deinen Support! Extrem hilfreich!)

    iotop:



    Leider hängt cancel dauerhaft:


    Code
    # btrfs balance cancel /


    so dass ein balance start wohl keinen Sinn macht.


    Ebenfalls ohne Erfolg:


    Code
    # strace -p 420
    strace: attach: ptrace(PTRACE_SEIZE, 420): Operation not permitted
    kill -sigterm 420
    kill -sighup 420
    kill -9 420
    kill -9 420
    kill -9 420

    > System aktualisiert (Dist-Upgrade) von openSUSE Leap xyz auf openSUSE Leap 15.1?


    Ja, es ist ein "altes" System. (Wann / neu aufgesetzt wurde weiß ich leider nicht)


    > Snapper und quotas beabsichtigt deaktiviert?


    Nein.


    > Deine 40 GB BTRFS-Partition ist schlicht voll.


    Laut df (siehe unten) und "btrfs fi usage /" (siehe letzten Post) sind noch >3 GB frei.


    > Dazu kommt, dass /home ebenfalls auf dieser enthalten ist.


    Dies ist nicht der Fall.





    Auch bei voller Disk dürfte ein Dauerzustand mit ~165000 kByte written/s und ~0 kByte read/s (siehe unten) nicht auftreten.
    (Der Rechner hat nur 12 GByte RAM (i7 2600 mit multithreading disabled) und hätte (wenn er nichts liest) seinen Hauptspeicher in etwa anderthalb Minuten auf die Platte geschrieben.)
    Ich befürchte, dass Problem liegt tiefer. Wenn es von allgemeinem Interesse ist, kann ich versuchen, weitere Info zu liefern. Ansonsten setze ich die root Partition neu auf.


    nein, kein Raid. "Normaler" Desktop Rechner.


    Inzwischen 2x rebootet. Nach erneutem Hochfahren jeweils gleicher Zustand (Write mit ~180 MByte/s).


    Code
    # snapper ls
    Die Konfiguration "Root" ist nicht vorhanden. Snapper ist wahrscheinlich nicht konfiguriert.
    Weitere Anweisungen finden Sie in "man snapper".
    Code
    # btrfs device stats /
    [/dev/sda2].write_io_errs    0
    [/dev/sda2].read_io_errs     0
    [/dev/sda2].flush_io_errs    0
    [/dev/sda2].corruption_errs  0
    [/dev/sda2].generation_errs  0
    Code
    # btrfs qgroup show /
    ERROR: can't list qgroups: quotas not enabled

    Danke,

    Thx (hatte Schriftart Courier verwendet. Die verschluckten Leerzeichen gehen aufs Konto der Forensoftware)


    Code
    > sudo btrfs balance status -v /
    Balance on '/' is running
    0 out of about 1 chunks balanced (5 considered), 100% left
    Dumping filters: flags 0x11, state 0x1, force is off
      DATA (flags 0x2): balancing, usage=30

    journalctl


    ...skipping...
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:53 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:16:56 lake kernel: btrfs_printk: 230 callbacks suppressed


    usw. usw.

    Nov 06 19:21:07 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:07 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:07 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:07 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:07 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents
    Nov 06 19:21:08 lake kernel: BTRFS info (device sda2): found 10 extents


    df


    /dev/sda2 41943040 37985464 3458876 92% /
    /dev/sda3 98991640 85275816 8664240 91% /home


    mount


    /dev/sda2 on /opt type btrfs (rw,relatime,ssd,space_cache,subvolid=263,subvol=/@/opt)
    /dev/sda3 on /home type ext4 (rw,relatime,stripe=32684,data=ordered)




    inzwischen >500 GB written (Partition selber ist nur 41.9 GB)



    > iostat -m -d 30
    Linux 4.12.14-lp151.28.25-default (lake) 06.11.2019 _x86_64_ (4 CPU)


    Device tps MB_read/s MB_wrtn/s MB_read MB_wrtn
    sda 2433,22 0,61 178,34 1800 526364



    Hi,


    btrfs-balance scheint aktuell hier in einer Schreibschleife festzustecken.


    Auf die SSD wird seit dem Booten mit etwa 180 MByte/s geschrieben, während laut iostat nichts bzw. nahezu nichts gelesen wird:







    usw. usw.



    Da nichts gelesen wird, gehe ich davon aus, dass btrfs-balance jetzt ÜBERHAUPT nichts Sinnvolles macht!!!



    Code
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
    433 root 20 0 0 0 0 D 21,26 0,000 7:36.68 btrfs-balance



    Was tun?


    Damit von der SSD noch etwas übrig bleibt werde ich den Rechner um 19:20 neu booten (es sei denn, jemand klinkt sich ein).


    VG,
    Frieder


    Bitte benutze für Konsolenausgaben Code-Tags