bin nicht sicher ob fstrim ausgeführt wird

Hast Du Probleme mit Hardware, die durch die anderen Foren nicht abgedeckt werden? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
Taomon
Beiträge: 627
Registriert: 08.03.2011 16:34:38
Lizenz eigener Beiträge: GNU Free Documentation License

bin nicht sicher ob fstrim ausgeführt wird

Beitrag von Taomon » 30.05.2019 09:04:53

Debian stretch. Ich bin mir nicht sicher ob fstrim Regelmäßig ausgeführt wird.
2x hintereinander war meine /var/lib/dpkg/status nicht in Ordnung. Heißt es gab Pakete mit
unklarem Status. Ich frage das automatisch ab wenn ich updates einspiele.
Ich habe die betroffenen Pakete neu installiert.

Code: Alles auswählen

root@Taomon:/home/alex# lsblk -f
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
├─sda1 ext4         88411b09-1aaa-4775-9fc7-f60041049d6c / #SSD
└─sda2 swap         c3c5da03-36db-4ad5-8817-05215fe43b6d 
sdb                                                      
├─sdb1 ext4         0ddc8e0a-4b8a-479c-9502-5478ed3c4036 
├─sdb2 swap         927f38a0-c962-47de-9361-f1730032704e [SWAP]
└─sdb3 ext4         1ebf0f02-cdd8-44d9-80f9-7078de79e191 /home
root@Taomon:/home/alex# 
und

Code: Alles auswählen

root@Taomon:/home/alex# fdisk -l /dev/sda
Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6e43b068

Device     Boot    Start      End  Sectors Size Id Type
/dev/sda1           2048 73402367 73400320  35G 83 Linux
/dev/sda2       73402368 85985279 12582912   6G 82 Linux swap / Solaris
root@Taomon:/home/alex# 
Die swap auf der SSD habe ich aus versehen angelegt.

Code: Alles auswählen

root@Taomon:/home/alex# smartctl -i /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.19.0-0.bpo.5-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SandForce Driven SSDs
Device Model:     SanDisk SDSSDA120G
Serial Number:    173003A01451
LU WWN Device Id: 5 001b44 8b4ded500
Firmware Version: Z33130RL
User Capacity:    120.034.123.776 bytes [120 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu May 30 08:52:59 2019 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
root@Taomon:/home/alex# 
Die Prüfung von der Platte zeigt leider einige unbekannte Attribute. NoPaste-Eintrag40744

So das ich nicht viel damit anfangen kann.

Code: Alles auswählen

root@Taomon:/home/alex# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=88411b09-1aaa-4775-9fc7-f60041049d6c  /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda3 during installation
#UUID=f7217969-9cde-4eff-940b-761ebb06189b  /home           ext4    defaults        0       2
# /home neu
UUID=1ebf0f02-cdd8-44d9-80f9-7078de79e191  /home           ext4    defaults        0       2
# swap neu
UUID=927f38a0-c962-47de-9361-f1730032704e    none            swap    sw              0       0
# swap was on /dev/sda2 during installation
#UUID=f923fdf9-3416-420d-898c-e481c82a757b   none            swap    sw              0       0
# /dev/sr0       /media/cdrom0   udf,iso9660 user,noauto     0       0
# nfsmount ubuntu-server
# 172.16.0.2:/media/cdrom   /media/ubuntu/dvd nfs  rw,users,noauto,intr,soft,bg,nolock 0  0 
# 172.16.0.2:/home/alex /media/ubuntu/home  nfs  rw,users,noauto,intr,soft,bg,nolock   0  0
# Test
# LABEL=backup /media/backup   ext3  ro,user,noauto                 0    0 
root@Taomon:/home/alex# 
Ich habe fstrim aus Ubuntu manuell angestoßen mit der Meldung 12,4 GB getrimmt.
Das erscheint mir als viel.

Code: Alles auswählen

root@Taomon:/home/alex# systemctl list-timers --all
NEXT                          LEFT          LAST                          PASSED     UNIT                         ACTIVATES
Thu 2019-05-30 09:02:25 CEST  2min 14s left Thu 2019-05-30 08:12:14 CEST  47min ago  anacron.timer                anacron.service
Fri 2019-05-31 04:30:24 CEST  19h left      Thu 2019-05-30 08:12:14 CEST  47min ago  apt-daily.timer              apt-daily.service
Fri 2019-05-31 06:25:57 CEST  21h left      Thu 2019-05-30 08:12:14 CEST  47min ago  apt-daily-upgrade.timer      apt-daily-upgrade.service
Fri 2019-05-31 08:27:44 CEST  23h left      Thu 2019-05-30 08:27:44 CEST  32min ago  systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.servic
Mon 2019-06-03 00:00:00 CEST  3 days left   Mon 2019-05-27 08:55:30 CEST  3 days ago fstrim.timer                 fstrim.service
5 timers listed.
lines 1-8/8 (END)
und

Code: Alles auswählen

root@Taomon:/home/alex# systemctl status fstrim
● fstrim.service - Discard unused blocks
   Loaded: loaded (/etc/systemd/system/fstrim.service; static; vendor preset: enabled)
   Active: inactive (dead)
root@Taomon:/home/alex# 
Memtest habe ich 22 Stunden laufen lassen ohne Fehl und Tadel.

Danke un Gruß Taomon
Bitte gelegentliche Schreibfehler übersehen. Ich habe ADHS. Danke.

Benutzeravatar
kalle123
Beiträge: 2702
Registriert: 28.03.2015 12:27:47
Wohnort: Mönchengladbach

Re: bin nicht sicher ob fstrim ausgeführt wird

Beitrag von kalle123 » 30.05.2019 11:08:47

Und was sagt das bei dir?

Hier .....

Code: Alles auswählen

~$ systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
   Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: ena
   Active: active (waiting) since Thu 2019-05-30 10:46:36 CEST; 19min ago
  Trigger: Mon 2019-06-03 00:00:00 CEST; 3 days left
     Docs: man:fstrim

Mai 30 10:46:36 nostromo systemd[1]: Started Discard unused blocks once a week.

Benutzeravatar
Taomon
Beiträge: 627
Registriert: 08.03.2011 16:34:38
Lizenz eigener Beiträge: GNU Free Documentation License

Re: bin nicht sicher ob fstrim ausgeführt wird

Beitrag von Taomon » 30.05.2019 11:20:14

Erzählt mir

Code: Alles auswählen

root@Taomon:/home/alex# systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
   Loaded: loaded (/etc/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
   Active: active (waiting) since Thu 2019-05-30 08:12:14 CEST; 3h 6min ago
     Docs: man:fstrim

Mai 30 08:12:14 Taomon systemd[1]: Started Discard unused blocks once a week.
root@Taomon:/home/alex# 
Gruß Taomon
Bitte gelegentliche Schreibfehler übersehen. Ich habe ADHS. Danke.

Antworten