Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Rozwiązane trim nie dzała na partycji home
#31
0
(18-12-2020, 14:16)dedito napisał(a): 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.
Tylko musiałem potwierdzić hasłem i nic nie pokazało.
#32
0
zrób jeszcze enable na fstrim.service
#33
0
(18-12-2020, 15:00)dedito napisał(a): zrób jeszcze enable na fstrim.service
wynik z komendy: systemctl enable fstrim.service

Kod:
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.

Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.
#34
0
Zrestartuj system i spróbuj uruchomić
Kod:
systemctl start fstrim.service
i
Kod:
systemctl start fstrim.timer
może wtedy coś się pojawi w logach
Kod:
sudo journalctl -xe | tail -n 50
#35
0
(18-12-2020, 15:15)dedito napisał(a): Zrestartuj system i spróbuj uruchomić
Kod:
systemctl start fstrim.service
i
Kod:
systemctl start fstrim.timer
może wtedy coś się pojawi w logach
Kod:
sudo journalctl -xe | tail -n 50

Wynik z komendy: systemctl start fstrim.service

Kod:
Job for fstrim.service failed because the control process exited with error code.
See "systemctl status fstrim.service" and "journalctl -xe" for details.

wynik komendy: systemctl start fstrim.timer nic nie pokazało

i ostatnia komenda: sudo journalctl -xe | tail -n 50
Kod:
gru 18 14:27:15 linuxmint20 polkitd(authority=local)[1299]: Operator of unix-session:c2 successfully authenticated as unix-user:vegeta to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.102 [systemctl start fstrim.timer] (owned by unix-user:vegeta)
gru 18 14:27:15 linuxmint20 polkitd(authority=local)[1299]: Unregistered Authentication Agent for unix-process:4206:39707 (system bus name :1.101, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8) (disconnected from bus)
gru 18 14:27:41 linuxmint20 sudo[4239]: pam_unix(sudo:auth): Couldn't open /etc/securetty: Nie ma takiego pliku ani katalogu
gru 18 14:27:46 linuxmint20 sudo[4239]: pam_unix(sudo:auth): Couldn't open /etc/securetty: Nie ma takiego pliku ani katalogu
gru 18 14:27:46 linuxmint20 sudo[4239]:   vegeta : TTY=pts/0 ; PWD=/home/vegeta ; USER=root ; COMMAND=/bin/journalctl -xe
gru 18 14:27:46 linuxmint20 sudo[4239]: pam_unix(sudo:session): session opened for user root by (uid=0)
gru 18 14:27:46 linuxmint20 sudo[4239]: pam_unix(sudo:session): session closed for user root
gru 18 14:28:33 linuxmint20 gnome-terminal-[3842]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
gru 18 14:30:01 linuxmint20 CRON[4357]: pam_unix(cron:session): session opened for user root by (uid=0)
gru 18 14:30:01 linuxmint20 CRON[4358]: (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 14:30:01 linuxmint20 CRON[4357]: pam_unix(cron:session): session closed for user root
gru 18 14:31:19 linuxmint20 sudo[4434]:   vegeta : TTY=unknown ; PWD=/home/vegeta ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
gru 18 14:31:19 linuxmint20 sudo[4434]: pam_unix(sudo:session): session opened for user root by (uid=0)
gru 18 14:31:19 linuxmint20 sudo[4434]: pam_unix(sudo:session): session closed for user root
gru 18 14:31:19 linuxmint20 sudo[4437]:   vegeta : TTY=unknown ; PWD=/home/vegeta ; USER=root ; COMMAND=/usr/bin/mint-refresh-cache
gru 18 14:31:19 linuxmint20 sudo[4437]: pam_unix(sudo:session): session opened for user root by (uid=0)
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:19 linuxmint20 systemd-resolved[1218]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
gru 18 14:31:22 linuxmint20 dbus-daemon[1282]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.104' (uid=0 pid=7339 comm="/usr/bin/gdbus call --system --dest org.freedeskto")
gru 18 14:31:22 linuxmint20 systemd[1]: Starting PackageKit Daemon...
-- Subject: Rozpoczęto wykonywanie zadania uruchamiania dla jednostki packagekit.service
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Rozpoczęto wykonywanie zadania uruchamiania dla jednostki packagekit.service.
--
-- Identyfikator zadania: 2349.
gru 18 14:31:22 linuxmint20 PackageKit[7342]: daemon start
gru 18 14:31:22 linuxmint20 dbus-daemon[1282]: [system] Successfully activated service 'org.freedesktop.PackageKit'
gru 18 14:31:22 linuxmint20 systemd[1]: Started PackageKit Daemon.
-- Subject: Pomyślnie ukończono zadanie uruchamiania dla jednostki packagekit.service
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Pomyślnie ukończono zadanie uruchamiania dla jednostki packagekit.service.
--
-- Identyfikator zadania: 2349.
gru 18 14:31:22 linuxmint20 sudo[4437]: pam_unix(sudo:session): session closed for user root
gru 18 14:31:32 linuxmint20 sudo[7388]:   vegeta : TTY=pts/0 ; PWD=/home/vegeta ; USER=root ; COMMAND=/bin/journalctl -xe
gru 18 14:31:32 linuxmint20 sudo[7388]: pam_unix(sudo:session): session opened for user root by (uid=0)
#36
1
Better response on post RE: trim nie dzała na ssdWszystko jest w porządku. Usługa fstrim.service ma być nieaktywna inactive (dead) ponieważ we właściwym czasie będzie uruchomiona usługą fstrim.timer która jest aktywna active (waiting).
#37
0
(18-12-2020, 16:00)magnus napisał(a): Wszystko jest w porządku. Usługa fstrim.service ma być nieaktywna inactive (dead) ponieważ we właściwym czasie będzie uruchomiona usługą fstrim.timer która jest aktywna active (waiting).
aha ok dzięki za pomoc
#38
0
Gdzieś widziałem, że fstrim.timer jest dead, ale widać pomyliło mi się z wynikami z fstrim.service.
Dla pewności pokaż jeszcze wynik systemctl list-timers .
#39
0
(18-12-2020, 16:58)dedito napisał(a): Gdzieś widziałem, że fstrim.timer jest dead, ale widać pomyliło mi się z wynikami z fstrim.service.
Dla pewności pokaż jeszcze wynik systemctl list-timers .
wynik komendy: systemctl list-timers
Kod:
NEXT                        LEFT          LAST                        PASSED       UNIT                         ACTIVATES                     
Sat 2020-12-19 00:13:51 CET 13min left    n/a                         n/a          systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Sat 2020-12-19 00:33:14 CET 32min left    Thu 2020-12-17 17:29:04 CET 1 day 6h ago motd-news.timer              motd-news.service             
Sat 2020-12-19 00:58:56 CET 58min left    Fri 2020-12-18 09:14:13 CET 14h ago      fstrim.timer                 fstrim.service               
Sat 2020-12-19 00:58:56 CET 58min left    Fri 2020-12-18 09:14:13 CET 14h ago      logrotate.timer              logrotate.service             
Sat 2020-12-19 00:58:56 CET 58min left    Fri 2020-12-18 09:14:13 CET 14h ago      man-db.timer                 man-db.service               
Sat 2020-12-19 01:00:14 CET 59min left    Fri 2020-12-18 17:32:38 CET 6h ago       anacron.timer                anacron.service               
Sat 2020-12-19 05:48:17 CET 5h 48min left Fri 2020-12-18 16:42:18 CET 7h ago       fwupd-refresh.timer          fwupd-refresh.service         
Sat 2020-12-19 06:42:58 CET 6h left       Fri 2020-12-18 16:13:12 CET 7h ago       apt-daily-upgrade.timer      apt-daily-upgrade.service     
Sat 2020-12-19 09:27:36 CET 9h left       Thu 2020-12-17 17:02:33 CET 1 day 6h ago apt-daily.timer              apt-daily.service             
Sun 2020-12-20 03:10:44 CET 1 day 3h left Wed 2020-12-16 09:41:43 CET 2 days ago   e2scrub_all.timer            e2scrub_all.service           

10 timers listed.
Pass --all to see loaded but inactive timers, too.
#40
0
Jest na liście
Kod:
Sat 2020-12-19 00:58:56 CET 58min left    Fri 2020-12-18 09:14:13 CET 14h ago      fstrim.timer                 fstrim.service
Podsumowując w pliku "/lib/systemd/system/fstrim.service"
Zmienną ProtectHome ustawiamy na no aby włączyć partycję home do obsługi przez usługę fstrim

Oznaczam wątek jako rozwiązany.
Zamykam wątek.


Skocz do:




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