LINUX.ORG.RU
решено ФорумAdmin

Debian testing - nfs через autofs перестал работать

 ,


0

1

Использую debian testing на домашнем сервере и клиенте. С недавних пор перестала монтироваться nfs через autofs. Причем autofs ошибок вроде никаких не пишет. Напрямую через mount все монтируется.

Вот что на клиенте:

root@indvdum-desktop:~# cat /etc/auto.indvdum-server 
public     indvdum-server:/media/public/
root@indvdum-desktop:~# cat /etc/auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc  /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
#/net   -hosts
#
# Include /etc/auto.master.d/*.autofs
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
root@indvdum-desktop:~# cat /etc/auto.master.d/indvdum-server.autofs 
/mnt/indvdum-server       /etc/auto.indvdum-server      --ghost --timeout=60
root@indvdum-desktop:~#

Пробую через automount:

root@indvdum-desktop:~# invoke-rc.d autofs stop
$Stopping automount: ...done.
root@indvdum-desktop:~# automount -dv
root@indvdum-desktop:~# ls /media/indvdum-server/
root@indvdum-desktop:~#
Вот что появляется в /var/log/syslog:
Sep  2 23:32:47 indvdum-desktop automount[6905]: Starting automounter version 5.0.6, master map /etc/auto.master
Sep  2 23:32:47 indvdum-desktop automount[6905]: using kernel protocol version 5.02 
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_nss_read_master: reading master file /etc/auto.master
Sep  2 23:32:47 indvdum-desktop automount[6905]: parse_init: parse(sun): init gathered global options: (null)
Sep  2 23:32:47 indvdum-desktop automount[6905]: spawn_mount: mtab link detected, passing -n to mount
Sep  2 23:32:47 indvdum-desktop automount[6905]: spawn_umount: mtab link detected, passing -n to mount
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_read_master: lookup(file): read entry +dir:/etc/auto.master.d
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_nss_read_master: reading master dir /etc/auto.master.d
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_read_master: lookup(dir): scandir: /etc/auto.master.d
Sep  2 23:32:47 indvdum-desktop automount[6905]: include_file: lookup(dir): include: /etc/auto.master.d/indvdum-server.autofs
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_nss_read_master: reading master file /etc/auto.master.d/indvdum-server.autofs
Sep  2 23:32:47 indvdum-desktop automount[6905]: parse_init: parse(sun): init gathered global options: (null)
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_read_master: lookup(file): read entry /mnt/indvdum-server
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_read_master: lookup(file): read entry +auto.master
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_nss_read_master: reading master files auto.master
Sep  2 23:32:47 indvdum-desktop automount[6905]: parse_init: parse(sun): init gathered global options: (null)
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup(file): failed to read included master map auto.master
Sep  2 23:32:47 indvdum-desktop automount[6905]: master_do_mount: mounting /mnt/indvdum-server
Sep  2 23:32:47 indvdum-desktop automount[6905]: automount_path_to_fifo: fifo name /run/autofs.fifo-mnt-indvdum-server
Sep  2 23:32:47 indvdum-desktop automount[6905]: lookup_nss_read_map: reading map file /etc/auto.indvdum-server
Sep  2 23:32:47 indvdum-desktop automount[6905]: parse_init: parse(sun): init gathered global options: (null)
Sep  2 23:32:47 indvdum-desktop automount[6905]: spawn_mount: mtab link detected, passing -n to mount
Sep  2 23:32:47 indvdum-desktop automount[6905]: spawn_umount: mtab link detected, passing -n to mount
Sep  2 23:32:47 indvdum-desktop automount[6905]: mounted indirect on /mnt/indvdum-server with timeout 60, freq 15 seconds
Sep  2 23:32:47 indvdum-desktop automount[6905]: st_ready: st_ready(): state = 0 path /mnt/indvdum-server
Sep  2 23:32:47 indvdum-desktop automount[6905]: ghosting enabled
Монтирую через mount:
root@indvdum-desktop:~# mount.nfs indvdum-server:/media/public /media/indvdum-server/
root@indvdum-desktop:~# ls /media/indvdum-server/
downloads  files  links  sites  temp  torrents  torrents auto load  Video  virtualbox  windows 7 netbook
Что тут можно еще проверить?

★★★★★

Последнее исправление: orm-i-auga (всего исправлений: 2)

так а если через mount монтируется - может и нет никаких проблем?...

ps: testing на сервере? разве что без обновлений

flant ★★★
()
Ответ на: комментарий от flant

Testing на момент проверки был полностью обновлен. Похоже на проблему в autofs, пробовал разные версии пакета - из stable, testing, unstable - результат один и тот же. Пробовал подключаться с нетбука на этот же сервер, autofs так же молча не работает.

orm-i-auga ★★★★★
() автор топика
5 декабря 2012 г.

Заработало недавно после какого-то из обновлений.

orm-i-auga ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.