17.01.2017 17:19, Carlos E. R. пишет:
On Saturday, 2017-01-07 at 05:02 +0100, Carlos E. R. wrote:
Hi,
When I try restart syslog, I get this prompt instead.
Telcontar:~ # systemctl restart rsyslog.service Please enter passphrase for disk ST2000DM001-1CH1 (cr_other) on /data/other! Telcontar:~ #
This has not happened again, but what is happening now is that on boot the system asks for the password for that mount.
-----
UNIT LOAD ACTIVE SUB DESCRIPTION ? apache2.service loaded failed failed The Apache Webserver ? systemd-cryptsetup@cr_other.service loaded failed failed Cryptography Setup for cr_other
LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type.
Telcontar:~ # grep cr_other /etc/crypttab cr_other /dev/disk/by-uuid/334b5f7a-cd23-4d0a-8899-a517e5c371a5 none noauto Telcontar:~ # grep cr_other /etc/fstab /dev/mapper/cr_other /data/other xfs noauto,nofail,lazytime 1 5 Telcontar:~ #
It is noauto in both /etc/crypttab and /etc/fstab, so I don't see any reason to try to mount it automatically.
It also tries to mount this other one:
cr_Aux_01 /dev/disk/by-uuid/fd7d909c-1e8a-40a7-b73f-29b539725c13 none noauto
/dev/mapper/cr_Aux_01 /data/aux_01 xfs noauto,nofail,lazytime 1 6
A theory I have is that it is trying to fsck it, not mount it.
<3.4> 2017-01-17 15:06:35 Telcontar systemd 1 - - dev-mapper-cr_other.device: Job dev-mapper-cr_other.device/start timed out. <3.3> 2017-01-17 15:06:35 Telcontar systemd 1 - - Timed out waiting for device dev-mapper-cr_other.device. <3.4> 2017-01-17 15:06:35 Telcontar systemd 1 - - Dependency failed for /data/other. <3.4> 2017-01-17 15:06:35 Telcontar systemd 1 - - Dependency failed for NFS server and services.
nfs-server comes with systemd generator that automatically adds RequiresMountsFor for each exported filesystem. So start of NFS server triggers mounting of these filesystems. Look at systemctl show -p RequiredBy -p WantedBy data-other.mount