Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Rozwiązane trim nie dzała na partycji home
#21
0
wynik komendy systemctl status fstrim.service
Kod:
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
     Loaded: loaded (/lib/systemd/system/fstrim.service; static; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2020-12-18 10:16:09 CET; 44min ago
TriggeredBy: ● fstrim.timer
       Docs: man:fstrim(8)
    Process: 7867 ExecStart=/sbin/fstrim --fstab --verbose (code=exited, status=64)
   Main PID: 7867 (code=exited, status=64)

gru 18 10:15:56 linuxmint20 systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab...
gru 18 10:15:56 linuxmint20 fstrim[7867]: fstrim: /mnt/0CA6DF99A6DF821E: ioctl FITRIM nie powiódł się: Urządzenie lub zasoby zajęte
gru 18 10:16:09 linuxmint20 fstrim[7867]: /home: 1,1 GiB (1229807616 bytes) trimmed on /dev/sdc4
gru 18 10:16:09 linuxmint20 fstrim[7867]: /boot/efi: 279,7 MiB (293261312 bytes) trimmed on /dev/sdc1
gru 18 10:16:09 linuxmint20 fstrim[7867]: /: 322,7 MiB (338309120 bytes) trimmed on /dev/sdc2
gru 18 10:16:09 linuxmint20 systemd[1]: fstrim.service: Main process exited, code=exited, status=64/USAGE
gru 18 10:16:09 linuxmint20 systemd[1]: fstrim.service: Failed with result 'exit-code'.
gru 18 10:16:09 linuxmint20 systemd[1]: Failed to start Discard unused blocks on filesystems from /etc/fstab.

potem journalctl -xe

Kod:
-- Rozpoczęto wykonywanie zadania uruchamiania dla jednostki systemd-tmpfiles-clean.service.
--
-- Identyfikator zadania: 2698.
gru 18 10:16:49 linuxmint20 systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
-- Subject: Jednostka się powiodła
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Jednostka systemd-tmpfiles-clean.service pomyślnie przeszła do stanu „dead” (martwego).
gru 18 10:16:49 linuxmint20 systemd[1]: Finished Cleanup of Temporary Directories.
-- Subject: Pomyślnie ukończono zadanie uruchamiania dla jednostki systemd-tmpfiles-clean.service
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Pomyślnie ukończono zadanie uruchamiania dla jednostki systemd-tmpfiles-clean.service.
--
-- Identyfikator zadania: 2698.
gru 18 10:17:01 linuxmint20 CRON[7927]: pam_unix(cron:session): session opened for user root by (uid=0)
gru 18 10:17:01 linuxmint20 CRON[7928]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
gru 18 10:17:01 linuxmint20 CRON[7927]: pam_unix(cron:session): session closed for user root
gru 18 10:17:39 linuxmint20 PackageKit[7550]: daemon quit
gru 18 10:17:39 linuxmint20 systemd[1]: packagekit.service: Succeeded.
-- Subject: Jednostka się powiodła
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Jednostka packagekit.service pomyślnie przeszła do stanu „dead” (martwego).
gru 18 10:30:01 linuxmint20 CRON[8575]: pam_unix(cron:session): session opened for user root by (uid=0)
gru 18 10:30:01 linuxmint20 CRON[8576]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
gru 18 10:30:01 linuxmint20 CRON[8575]: pam_unix(cron:session): session closed for user root
gru 18 10:34:27 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:34:27 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:35:02 linuxmint20 gnome-terminal-[7824]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
gru 18 10:35:58 linuxmint20 gnome-terminal-[7824]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
gru 18 10:41:25 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:41:25 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:42:54 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:42:54 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:49:16 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:49:16 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:49:20 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:49:20 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:49:20 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:49:20 linuxmint20 rtkit-daemon[1964]: Supervising 7 threads of 2 processes of 1 users.
gru 18 10:49:20 linuxmint20 rtkit-daemon[1964]: Successfully made thread 9859 of process 9395 owned by '1000' RT at priority 10.
gru 18 10:49:20 linuxmint20 rtkit-daemon[1964]: Supervising 8 threads of 3 processes of 1 users.
gru 18 10:52:38 linuxmint20 gnome-terminal-[7824]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
gru 18 10:55:31 linuxmint20 gnome-terminal-[7824]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
gru 18 10:57:21 linuxmint20 gnome-terminal-[7824]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
gru 18 11:00:01 linuxmint20 CRON[10486]: pam_unix(cron:session): session opened for user root by (uid=0)
gru 18 11:00:01 linuxmint20 CRON[10487]: (root) CMD (timeshift --check --scripted)
gru 18 11:00:01 linuxmint20 crontab[10522]: (root) LIST (root)
gru 18 11:00:01 linuxmint20 crontab[10523]: (root) LIST (root)
gru 18 11:00:01 linuxmint20 CRON[10486]: pam_unix(cron:session): session closed for user root
gru 18 11:01:35 linuxmint20 gnome-terminal-[7824]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
gru 18 11:02:04 linuxmint20 jackett[1422]: 12-18 11:02:04 Info Checking for updates... Jackett variant: CoreLinuxAmdx64
gru 18 11:02:04 linuxmint20 jackett[1422]: 12-18 11:02:04 Info Jackett is already updated. Current version: v0.17.101
następna komeda: journalctl -xe | tail

Kod:
--
-- Identyfikator zadania: 2702.
gru 18 11:06:29 linuxmint20 systemd[1]: anacron.service: Succeeded.
-- Subject: Jednostka się powiodła
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Jednostka anacron.service pomyślnie przeszła do stanu „dead” (martwego).
gru 18 11:06:29 linuxmint20 anacron[10907]: Anacron 2.3 started on 2020-12-18
gru 18 11:06:29 linuxmint20 anacron[10907]: Normal exit (0 jobs run)
i ostatnia komenda: sudo /sbin/fstrim --fstab --verbose

Kod:
fstrim: /mnt/0CA6DF99A6DF821E: ioctl FITRIM nie powiódł się: Urządzenie lub zasoby zajęte
/home: 4,5 MiB (4689920 bytes) trimmed on /dev/sdc4
/boot/efi: 279,7 MiB (293261312 bytes) trimmed on /dev/sdc1
/: 70,6 MiB (74059776 bytes) trimmed on /dev/sdc2
#22
0
Czyli teraz partycja home została obsłużona.
Powinno być już ok.

Pokaż jeszcze status usługi fstrim.service
#23
0
(18-12-2020, 12:33)dedito napisał(a): Czyli teraz partycja home została obsłużona.
Powinno być już ok.

Pokaż jeszcze status usługi fstrim.service

status usługi: systemctl status fstrim.service

Kod:
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
     Loaded: loaded (/lib/systemd/system/fstrim.service; static; vendor preset: enabled)
     Active: inactive (dead)
TriggeredBy: ● fstrim.timer
       Docs: man:fstrim(8)
#24
0
Usługa załączona, ale nieaktywna.
Zobacz czy po restarcie będzie aktywna.

Tu jeszcze jakiś zasób coś nie działa. Jest potrzeba tam robić trim?
Kod:
gru 18 10:15:56 linuxmint20 fstrim[7867]: fstrim: /mnt/0CA6DF99A6DF821E: ioctl FITRIM nie powiódł się: Urządzenie lub zasoby zajęte
#25
0
(18-12-2020, 12:42)dedito napisał(a): Usługa załączona, ale nieaktywna.
Zobacz czy po restarcie będzie aktywna.

Tu jeszcze jakiś zasób coś nie działa. Jest potrzeba tam robić trim?
Kod:
gru 18 10:15:56 linuxmint20 fstrim[7867]: fstrim: /mnt/0CA6DF99A6DF821E: ioctl FITRIM nie powiódł się: Urządzenie lub zasoby zajęte
bo na tym dysku ssd na m.2 jest zainstalowany windows 10 i nie wiem czy to potrzebne robić tam.
po restarcie :
Kod:
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
     Loaded: loaded (/lib/systemd/system/fstrim.service; static; vendor preset:>
     Active: inactive (dead)
TriggeredBy: ● fstrim.timer
       Docs: man:fstrim(8)
#26
0
Dalej dead.
Co jest w wyniku
Kod:
systemctl cat fstrim.timer
i
Kod:
systemctl cat fstrim.service
?
#27
0
(18-12-2020, 12:58)dedito napisał(a): Dalej dead.
Co jest w wyniku
Kod:
systemctl cat fstrim.timer
?
Wynik komendy: systemctl cat fstrim.timer

Kod:
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim
ConditionVirtualization=!container

[Timer]
OnCalendar=daily
AccuracySec=1h
Persistent=true

[Install]
WantedBy=timers.target

i komenda: systemctl cat fstrim.service

Kod:
# /lib/systemd/system/fstrim.service
[Unit]
Description=Discard unused blocks on filesystems from /etc/fstab
Documentation=man:fstrim(8)
ConditionVirtualization=!container

[Service]
Type=oneshot
ExecStart=/sbin/fstrim --fstab --verbose --quiet
ProtectSystem=strict
ProtectHome=no
PrivateDevices=no
PrivateNetwork=yes
PrivateUsers=no
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
MemoryDenyWriteExecute=yes
SystemCallFilter=@default @file-system @basic-io @system-service
#28
0
Wygląda w porządku.
To spróbuj załączyć:
Kod:
systemctl enable fstrim.timer
#29
0
(18-12-2020, 13:29)dedito napisał(a): Wygląda w porządku.
To spróbuj załączyć:
Kod:
systemctl enable fstrim.timer

dalej to samo jak wpisałem: systemctl status fstrim.service

Kod:
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
     Loaded: loaded (/lib/systemd/system/fstrim.service; static; vendor preset: enabled)
     Active: inactive (dead)
TriggeredBy: ● fstrim.timer
       Docs: man:fstrim(8)
#30
0
Nie pokazałeś co się pojawiło w wyniku wpisania
Kod:
systemctl enable fstrim.timer
?
To jest mega istotne w ramach udzielania zdalnej pomocy.
Muszę wiedzieć co wpisujesz i jakie wyniki pojawiają się po wpisaniu.
Bez tego to tylko wróżka pomoże.


Skocz do:




Użytkownicy przeglądający ten wątek: 1 gości