autofs는 동일한 볼륨을 여러 번 마운트합니다.

autofs는 동일한 볼륨을 여러 번 마운트합니다.

저는 Fedora15에서 실행되는 삼바 공유를 구현하기 위해 Fedora34에서 자동 마운트를 사용하고 있습니다. 다음 구성은 이전 Fedora27에서 잘 작동했지만 이를 추가하여 forceuidFedora34 forcegid에서 작동하도록 해야 했습니다.

$ cat /etc/auto.autofs 
public -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
$ tail -n 3 /etc/auto.master
+auto.master

/autofs /etc/auto.autofs

이제 내 문제는 자동 마운트가 볼륨을 연속으로 5번 마운트하고 시간 초과 후 그 중 하나만 마운트 해제하는 경우가 있다는 것입니다. autofs 서비스를 비활성화하고 더 이상 실행 중인 인스턴스가 없는지 확인했습니다. 그런 다음 자동 마운트를 수동으로 실행했고 이것이 출력입니다(더 나은 가독성을 위해 줄 바꿈).

$ sudo automount -vdf
Starting automounter version 5.1.7-17.fc34, master map auto.master
using kernel protocol version 5.05
lookup_nss_read_master: reading master sss auto.master
do_init: parse(sun): init gathered global options: (null)
can't connect to sssd, retry for 10 seconds
lookup_nss_read_master: auto.master not found, replacing '.' with '_'
do_init: parse(sun): init gathered global options: (null)
can't connect to sssd, retry for 10 seconds
lookup_nss_read_master: no map - continuing to next source
lookup_nss_read_master: reading master files auto.master
do_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /misc
lookup_read_master: lookup(file): read entry /net
lookup_read_master: lookup(file): read entry +dir:/etc/auto.master.d
lookup_nss_read_master: reading master dir /etc/auto.master.d
lookup_read_master: lookup(dir): scandir: /etc/auto.master.d
lookup_read_master: lookup(file): read entry +auto.master
lookup_nss_read_master: reading master sss auto.master
do_init: parse(sun): init gathered global options: (null)
can't connect to sssd, retry for 10 seconds
lookup_nss_read_master: no map - continuing to next source
lookup_nss_read_master: reading master files auto.master
do_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /autofs
master_do_mount: mounting /misc
automount_path_to_fifo: fifo name /run/autofs.fifo-misc
lookup_nss_read_map: reading map file /etc/auto.misc
do_init: parse(sun): init gathered global options: (null)
mounted indirect on /misc with timeout 300, freq 75 seconds
st_ready: st_ready(): state = 0 path /misc
master_do_mount: mounting /net
automount_path_to_fifo: fifo name /run/autofs.fifo-net
lookup_nss_read_map: reading map hosts (null)
do_init: parse(sun): init gathered global options: (null)
lookup_read_map: lookup(hosts): read hosts map
lookup_read_map: lookup(hosts): map not browsable, update existing host entries only
mounted indirect on /net with timeout 300, freq 75 seconds
st_ready: st_ready(): state = 0 path /net
master_do_mount: mounting /autofs
automount_path_to_fifo: fifo name /run/autofs.fifo-autofs
lookup_nss_read_map: reading map file /etc/auto.autofs
do_init: parse(sun): init gathered global options: (null)
mounted indirect on /autofs with timeout 300, freq 75 seconds
st_ready: st_ready(): state = 0 path /autofs
handle_packet: type = 3
handle_packet_missing_indirect: token 1, name public, request pid 4747
attempting to mount entry /autofs/public
lookup_mount: lookup(file): looking up public
lookup_mount: lookup(file): public -> -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): expanded entry: -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): gathered options: fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
parse_mount: parse(sun): dequote("://dixie.tessier-ashpool/public/") -> ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): core of entry: options=fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0, loc=://dixie.tessier-ashpool/public/
sun_mount: parse(sun): mounting root /autofs, mountpoint public, what //dixie.tessier-ashpool/public/, fstype cifs, options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
do_mount: //dixie.tessier-ashpool/public/ /autofs/public type cifs options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 using module generic
mount_mount: mount(generic): calling mkdir_path /autofs/public
mount(generic): calling mount -t cifs -o credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 //dixie.tessier-ashpool/public/ /autofs/public
mount_mount: mount(generic): mounted //dixie.tessier-ashpool/public/ type cifs on /autofs/public
dev_ioctl_send_ready: token = 1
mounted /autofs/public

st_expire: state 1 path /autofs
expire_proc: exp_proc = 139801751950912 path /autofs
expire_proc_indirect: expire /autofs/public
expire_proc_indirect: 1 remaining in /autofs
expire_cleanup: got thid 139801751950912 path /autofs stat 1
expire_cleanup: sigchld: exp 139801751950912 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /autofs

st_expire: state 1 path /autofs
expire_proc: exp_proc = 139801751950912 path /autofs
expire_proc_indirect: expire /autofs/public
expire_proc_indirect: 1 remaining in /autofs
expire_cleanup: got thid 139801751950912 path /autofs stat 1
expire_cleanup: sigchld: exp 139801751950912 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /autofs

st_expire: state 1 path /autofs
expire_proc: exp_proc = 139801751950912 path /autofs
expire_proc_indirect: expire /autofs/public
expire_proc_indirect: 1 remaining in /autofs
expire_cleanup: got thid 139801751950912 path /autofs stat 1
expire_cleanup: sigchld: exp 139801751950912 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /autofs

st_expire: state 1 path /autofs
expire_proc: exp_proc = 139801751950912 path /autofs
expire_proc_indirect: expire /autofs/public
expire_proc_indirect: 1 remaining in /autofs
expire_cleanup: got thid 139801751950912 path /autofs stat 1
expire_cleanup: sigchld: exp 139801751950912 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /autofs

st_expire: state 1 path /autofs
expire_proc: exp_proc = 139801751950912 path /autofs
expire_proc_indirect: expire /autofs/public
expire_proc_indirect: 1 remaining in /autofs
expire_cleanup: got thid 139801751950912 path /autofs stat 1
expire_cleanup: sigchld: exp 139801751950912 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /autofs

st_expire: state 1 path /autofs
expire_proc: exp_proc = 139801751950912 path /autofs
expire_proc_indirect: expire /autofs/public
expire_proc_indirect: 1 remaining in /autofs
expire_cleanup: got thid 139801751950912 path /autofs stat 1
expire_cleanup: sigchld: exp 139801751950912 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /autofs

st_expire: state 1 path /autofs
expire_proc: exp_proc = 139801751950912 path /autofs
expire_proc_indirect: expire /autofs/public

handle_packet: type = 4
handle_packet_expire_indirect: token 2, name public
expiring path /autofs/public
umount_multi: path /autofs/public incl 1
umount_subtree_mounts: unmounting dir = /autofs/public
rm_unwanted_fn: removing directory /autofs/public
expired /autofs/public
dev_ioctl_send_ready: token = 2

expire_cleanup: got thid 139801751950912 path /autofs stat 0
expire_cleanup: sigchld: exp 139801751950912 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /autofs

handle_packet: type = 3
handle_packet_missing_indirect: token 3, name public, request pid 5402
attempting to mount entry /autofs/public
lookup_mount: lookup(file): looking up public
lookup_mount: lookup(file): public -> -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): expanded entry: -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): gathered options: fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
parse_mount: parse(sun): dequote("://dixie.tessier-ashpool/public/") -> ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): core of entry: options=fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0, loc=://dixie.tessier-ashpool/public/
sun_mount: parse(sun): mounting root /autofs, mountpoint public, what //dixie.tessier-ashpool/public/, fstype cifs, options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
do_mount: //dixie.tessier-ashpool/public/ /autofs/public type cifs options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 using module generic
mount_mount: mount(generic): calling mkdir_path /autofs/public
mount(generic): calling mount -t cifs -o credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 //dixie.tessier-ashpool/public/ /autofs/public

handle_packet: type = 3
handle_packet_missing_indirect: token 4, name public, request pid 5397
attempting to mount entry /autofs/public
lookup_mount: lookup(file): looking up public
lookup_mount: lookup(file): public -> -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): expanded entry: -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): gathered options: fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
parse_mount: parse(sun): dequote("://dixie.tessier-ashpool/public/") -> ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): core of entry: options=fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0, loc=://dixie.tessier-ashpool/public/
sun_mount: parse(sun): mounting root /autofs, mountpoint public, what //dixie.tessier-ashpool/public/, fstype cifs, options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
do_mount: //dixie.tessier-ashpool/public/ /autofs/public type cifs options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 using module generic
mount_mount: mount(generic): calling mkdir_path /autofs/public
mount(generic): calling mount -t cifs -o credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 //dixie.tessier-ashpool/public/ /autofs/public

handle_packet: type = 3
handle_packet_missing_indirect: token 5, name public, request pid 5413
attempting to mount entry /autofs/public
lookup_mount: lookup(file): looking up public
lookup_mount: lookup(file): public -> -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): expanded entry: -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): gathered options: fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
parse_mount: parse(sun): dequote("://dixie.tessier-ashpool/public/") -> ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): core of entry: options=fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0, loc=://dixie.tessier-ashpool/public/
sun_mount: parse(sun): mounting root /autofs, mountpoint public, what //dixie.tessier-ashpool/public/, fstype cifs, options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
do_mount: //dixie.tessier-ashpool/public/ /autofs/public type cifs options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 using module generic
mount_mount: mount(generic): calling mkdir_path /autofs/public
mount(generic): calling mount -t cifs -o credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 //dixie.tessier-ashpool/public/ /autofs/public

handle_packet: type = 3
handle_packet_missing_indirect: token 6, name public, request pid 5419
attempting to mount entry /autofs/public
lookup_mount: lookup(file): looking up public
lookup_mount: lookup(file): public -> -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): expanded entry: -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): gathered options: fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
parse_mount: parse(sun): dequote("://dixie.tessier-ashpool/public/") -> ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): core of entry: options=fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0, loc=://dixie.tessier-ashpool/public/
sun_mount: parse(sun): mounting root /autofs, mountpoint public, what //dixie.tessier-ashpool/public/, fstype cifs, options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
do_mount: //dixie.tessier-ashpool/public/ /autofs/public type cifs options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 using module generic
mount_mount: mount(generic): calling mkdir_path /autofs/public
mount(generic): calling mount -t cifs -o credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 //dixie.tessier-ashpool/public/ /autofs/public

handle_packet: type = 3
handle_packet_missing_indirect: token 7, name public, request pid 5408
attempting to mount entry /autofs/public
lookup_mount: lookup(file): looking up public
lookup_mount: lookup(file): public -> -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): expanded entry: -fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): gathered options: fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
parse_mount: parse(sun): dequote("://dixie.tessier-ashpool/public/") -> ://dixie.tessier-ashpool/public/
parse_mount: parse(sun): core of entry: options=fstype=cifs,credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0, loc=://dixie.tessier-ashpool/public/
sun_mount: parse(sun): mounting root /autofs, mountpoint public, what //dixie.tessier-ashpool/public/, fstype cifs, options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0
do_mount: //dixie.tessier-ashpool/public/ /autofs/public type cifs options credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 using module generic
mount_mount: mount(generic): calling mkdir_path /autofs/public
mount(generic): calling mount -t cifs -o credentials=/home/stefan/.dixie_credentials,rw,nobrl,rsize=61568,uid=stefan,forceuid,gid=stefan,forcegid,file_mode=0660,dir_mode=0770,vers=1.0 //dixie.tessier-ashpool/public/ /autofs/public

mount_mount: mount(generic): mounted //dixie.tessier-ashpool/public/ type cifs on /autofs/public
dev_ioctl_send_ready: token = 3
mounted /autofs/public

mount_mount: mount(generic): mounted //dixie.tessier-ashpool/public/ type cifs on /autofs/public
dev_ioctl_send_ready: token = 5
mounted /autofs/public

mount_mount: mount(generic): mounted //dixie.tessier-ashpool/public/ type cifs on /autofs/public
dev_ioctl_send_ready: token = 4
mounted /autofs/public

mount_mount: mount(generic): mounted //dixie.tessier-ashpool/public/ type cifs on /autofs/public
dev_ioctl_send_ready: token = 6
mounted /autofs/public

mount_mount: mount(generic): mounted //dixie.tessier-ashpool/public/ type cifs on /autofs/public
dev_ioctl_send_ready: token = 7
mounted /autofs/public

handle_packet: type = 3
handle_packet_missing_indirect: token 8, name .hidden, request pid 5433
attempting to mount entry /autofs/.hidden
lookup_mount: lookup(file): looking up .hidden
key ".hidden" not found in map source(s).
dev_ioctl_send_fail: token = 8
failed to mount /autofs/.hidden

이 동작의 최종 결과는 다음과 같습니다.

$ ll /autofs                                                                                                                                                                                                                   stefan@fedora
ls: Zugriff auf '/autofs/public' nicht möglich: Ist kein Verzeichnis
insgesamt 0
d????????? ? ? ? ?             ? public

질문이 있으신가요?

답변1

이는 노틸러스가 범인임을 시사합니다. 자동 마운트된 /autofs/public 폴더의 북마크가 있을 때 노틸러스가 시작될 때 이런 일이 발생합니다. 북마크 없이도 작동합니다.

관련 정보