Автомаатическое монтирование nfs.

Discussion in 'Linux, Freebsd, *nix' started by c45c9c69a026, 1 Jul 2017.

  1. c45c9c69a026

    c45c9c69a026 New Member

    Joined:
    1 Jun 2017
    Messages:
    4
    Likes Received:
    2
    Reputations:
    0
    Есть nfs сервер (Debian GNU/Linux 8) и nfs клиент (Debian GNU/Linux 7). С сервером проблем нет. Можно в ручном режиме примонтировать директорию на nfs сервере, используя команду:
    mount.nfs 192.168.1.80:/media/backup/repository /mnt/nfsmx
    Также можно размонтировать указанную директорию используя:
    umount -a -t nfs
    При этом в /etc/fstab содежится:

    192.168.1.80:/media/backup/repository /mnt/nfsmx nfs timeo=250,fg,hard,ro 0 0

    Сеть (wlan0) стартует автоматом, через wicd.
    Содержание /etc/netwrok/interfaces:
    auto lo
    iface lo inet loopback

    auto eth0
    #iface eth0 inet dhcp
    iface eth0 inet static
    address 192.168.1.103
    netmask 255.255.255.0
    gateway 192.168.1.1
    hwaddress ether 00:23:23:01:02:03

    auto wlan0
    #iface wlan0 inet dhcp
    iface wlan0 inet static
    address 192.168.1.103
    netmask 255.255.255.0
    gateway 192.168.1.1
    hwaddress ether 00:0E:18:04:05:06

    При этом автоматического монтирования nfs ресурса не происходит. Пробовол различные значения в параметрах записи в /etc/fstab, как-то:
    192.168.1.80:/media/backup/repository /mnt/nfsmx nfs defaults 0 0
    Или
    192.168.1.80:/media/backup/repository /mnt/nfsmx nfs auto 0 0
    Всё без толку. В чём может быть причина?
     
  2. Tw!m4

    Tw!m4 Elder - Старейшина

    Joined:
    15 Jun 2007
    Messages:
    187
    Likes Received:
    19
    Reputations:
    0
    Думаю, начать надо с правельного распределения айпишек, ибо они у тебя на двух интерфейсах одинаковые... что пишет syslog и dmesg?
     
  3. c45c9c69a026

    c45c9c69a026 New Member

    Joined:
    1 Jun 2017
    Messages:
    4
    Likes Received:
    2
    Reputations:
    0
    ip, как и подсети сменил, теперь:

    auto lo
    iface lo inet loopback

    auto eth0
    #iface eth0 inet dhcp
    iface eth0 inet static
    address 192.168.5.110
    netmask 255.255.255.0
    gateway 192.168.5.1
    hwaddress ether 00:23:23:01:02:03

    auto wlan0
    #iface wlan0 inet dhcp
    iface wlan0 inet static
    address 192.168.1.103
    netmask 255.255.255.0
    gateway 192.168.1.1
    hwaddress ether 5c:ac:4c:04:05:06

    Syslog. Что конкретно, вот вывод:
    cat /var/log/boot
    Sun Jul 2 18:37:18 2017: [....] Setting preliminary keymap...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:18 2017: [....] Activating swap...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:18 2017: [....] Checking root file system...fsck from util-linux 2.20.1
    Sun Jul 2 18:37:18 2017: /dev/sda1: clean, 269708/3424256 files, 1697144/13674496 blocks
    Sun Jul 2 18:37:18 2017: ^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:18 2017: [^[[36minfo^[[39;49m] Loading kernel module loop.
    Sun Jul 2 18:37:18 2017: [....] Cleaning up temporary files... /tmp^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:37:18 2017: [....] Activating lvm and md swap...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:18 2017: [....] Checking file systems...fsck from util-linux 2.20.1
    Sun Jul 2 18:37:18 2017: files: clean, 215029/91774976 files, 168198528/367094272 blocks
    Sun Jul 2 18:37:18 2017: ^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:18 2017: [....] Mounting local filesystems...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:19 2017: [....] Activating swapfile swap...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:19 2017: [....] Cleaning up temporary files...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:37:19 2017: [....] Setting kernel variables ...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:37:19 2017: [....] Configuring network interfaces...Starting rpcbind daemon...rpcbind: cannot create socket for udp6
    Sun Jul 2 18:37:20 2017: rpcbind: cannot create socket for tcp6
    Sun Jul 2 18:37:20 2017: .
    Sun Jul 2 18:37:20 2017: Starting NFS common utilities: statd idmapd.
    Sun Jul 2 18:39:33 2017: mount.nfs: Connection timed out
    Sun Jul 2 18:39:34 2017: RTNETLINK answers: File exists
    Sun Jul 2 18:39:34 2017: Failed to bring up wlan0.
    Sun Jul 2 18:39:34 2017: ^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:39:34 2017: [^[[36minfo^[[39;49m] Already running: rcpbind.
    Sun Jul 2 18:39:34 2017: [....] Starting NFS common utilities: statd idmapd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:34 2017: [....] Cleaning up temporary files...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:34 2017: [....] Setting up ALSA...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:39:35 2017: [^[[36minfo^[[39;49m] Setting console screen modes.
    Sun Jul 2 18:39:35 2017: ^[[9;30]^[[14;30][^[[36minfo^[[39;49m] Skipping font and keymap setup (handled by console-setup).
    Sun Jul 2 18:39:35 2017: [....] Setting up console font and keymap...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
    Sun Jul 2 18:39:35 2017: [....] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:35 2017: INIT: Entering runlevel: 2
    Sun Jul 2 18:39:35 2017: [^[[36minfo^[[39;49m] Using makefile-style concurrent boot in runlevel 2.
    Sun Jul 2 18:39:35 2017: [....] Starting NFS common utilities: statd idmapd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:35 2017: [....] Enabling additional executable binary formats: binfmt-support^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:36 2017: Starting file alteration monitor: FAM.
    Sun Jul 2 18:39:36 2017: [....] Starting enhanced syslogd: rsyslogd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:37 2017: [....] Starting ACPI services...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:38 2017: ^[[71G done
    Sun Jul 2 18:39:38 2017: [....] Starting system message bus: dbus^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:38 2017: [....] Starting virtual private network daemon:^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:39 2017: [....] Starting K Display Manager: kdm^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:39 2017: [....] Starting anac(h)ronistic cron: anacron^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:39 2017: [....] Starting web server: apache2^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:41 2017: [....] Saved ALSA mixer settings detected; aumix will not touch mixer. ...^[[?25l^[[?1c^[7^[[1G[^[[33mwarn^[[39;49m^[8^[[?25h^[[?0c ^[[33m(warning).^[[39;49m
    Sun Jul 2 18:39:41 2017: [....] Starting deferred execution scheduler: atd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:42 2017: [....] Starting automount...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:43 2017: [....] Starting periodic command scheduler: cron^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:39:44 2017: [....] Starting MySQL database server: mysqld . . . . .snmpd: Permission denied
    Sun Jul 2 18:39:50 2017: tor: Permission denied
    Sun Jul 2 18:39:50 2017: saned disabled; edit /etc/default/saned
    Sun Jul 2 18:39:50 2017: Starting netfilter userspace log daemon: ulogd.
    Sun Jul 2 18:39:54 2017: Starting VMware services:
    Sun Jul 2 18:39:54 2017: Virtual machine monitor^[[71G done
    Sun Jul 2 18:39:54 2017: Virtual machine communication interface^[[71G done
    Sun Jul 2 18:39:54 2017: VM communication interface socket family^[[71G done
    Sun Jul 2 18:39:54 2017: Blocking file system^[[71G done
    Sun Jul 2 18:39:55 2017: Virtual ethernet^[[71G done
    Sun Jul 2 18:40:11 2017: VMware Authentication Daemon^[[71G done
    Sun Jul 2 18:40:11 2017: Shared Memory Available^[[71G done
    Sun Jul 2 18:40:11 2017: . . .^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
    Sun Jul 2 18:40:11 2017: [^[[36minfo^[[39;49m] Checking for tables which need an upgrade, are corrupt or were
    Sun Jul 2 18:40:11 2017: not closed cleanly..
    Sun Jul 2 18:40:11 2017: dovecot: Permission denied
    Sun Jul 2 18:40:11 2017: postfix: Permission denied
    Sun Jul 2 18:40:12 2017: [....] Starting Network connection manager: wicd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.

    Меня немного смущается строка
    Sun Jul 2 18:37:20 2017: .
    Когда я пробовал получить доступ к nfs ресурсу используя eth0 никаких точек не было.

    [ 5.364949] ACPI: AC Adapter [ACAD] (off-line)
    [ 5.382892] acpi device:02: registered as cooling_device1
    [ 5.383023] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/LNXVIDEO:00/input/input7
    [ 5.383110] ACPI: Video Device [VGA] (multi-head: yes rom: no post: no)
    [ 5.383396] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input6
    [ 5.383469] ACPI: Power Button [PWRB]
    [ 5.473567] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.07
    [ 5.473668] iTCO_wdt: Found a HM55 TCO device (Version=2, TCOBASE=0x0460)
    [ 5.473830] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
    [ 5.511397] ACPI: Requesting acpi_cpufreq
    [ 5.724629] Bluetooth: Core ver 2.16
    [ 5.724651] NET: Registered protocol family 31
    [ 5.724653] Bluetooth: HCI device and connection manager initialized
    [ 5.724656] Bluetooth: HCI socket layer initialized
    [ 5.724658] Bluetooth: L2CAP socket layer initialized
    [ 5.724663] Bluetooth: SCO socket layer initialized
    [ 5.744877] ACPI: Battery Slot [BAT1] (battery present)
    [ 5.745162] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input8
    [ 5.750207] ACPI: Lid Switch [LID0]
    [ 5.750281] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input9
    [ 5.750348] ACPI: Power Button [PWRF]
    [ 5.879190] [drm] Initialized drm 1.1.0 20060810
    [ 5.887448] cfg80211: Calling CRDA to update world regulatory domain
    [ 5.910213] Bluetooth: Generic Bluetooth USB driver ver 0.6
    [ 5.910367] usbcore: registered new interface driver btusb
    [ 6.157039] [drm] radeon kernel modesetting enabled.
    [ 6.200926] radeon 0000:01:00.0: setting latency timer to 64
    [ 6.200939] [drm] initializing kernel modesetting (RV730 0x1002:0x9480 0x10CF:0x1615).
    [ 6.200976] [drm] register mmio base: 0xCFEF0000
    [ 6.200977] [drm] register mmio size: 65536
    [ 6.201125] ATOM BIOS: BR37696.002
    [ 6.201149] radeon 0000:01:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
    [ 6.201153] radeon 0000:01:00.0: GTT: 512M 0x0000000040000000 - 0x000000005FFFFFFF
    [ 6.201927] [drm] Detected VRAM RAM=1024M, BAR=256M
    [ 6.201930] [drm] RAM width 128bits DDR
    [ 6.204141] [TTM] Zone kernel: Available graphics memory: 2994840 kiB
    [ 6.204143] [TTM] Zone dma32: Available graphics memory: 2097152 kiB
    [ 6.204146] [TTM] Initializing pool allocator
    [ 6.204151] [TTM] Initializing DMA pool allocator
    [ 6.204183] [drm] radeon: 1024M of VRAM memory ready
    [ 6.204185] [drm] radeon: 512M of GTT memory ready.
    [ 6.204210] [drm] GART: num cpu pages 131072, num gpu pages 131072
    [ 6.204681] [drm] radeon: ib pool ready.
    [ 6.205791] [drm] Loading RV730 Microcode
    [ 6.278938] platform radeon_cp.0: firmware: agent loaded radeon/RV730_pfp.bin into memory
    [ 6.388661] platform radeon_cp.0: firmware: agent loaded radeon/RV730_me.bin into memory
    [ 6.440597] platform radeon_cp.0: firmware: agent loaded radeon/R700_rlc.bin into memory
    [ 6.441799] [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
    [ 6.441916] radeon 0000:01:00.0: WB enabled
    [ 6.441922] [drm] fence driver on ring 0 use gpu addr 0x40000c00 and cpu addr 0xffff8801b31a0c00
    [ 6.441930] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [ 6.441934] [drm] Driver supports precise vblank timestamp query.
    [ 6.442002] radeon 0000:01:00.0: irq 43 for MSI/MSI-X
    [ 6.442022] radeon 0000:01:00.0: radeon: using MSI.
    [ 6.442075] [drm] radeon: irq initialized.
    [ 6.488643] [drm] ring test on 0 succeeded in 1 usecs
    [ 6.488954] [drm] ib test on ring 0 succeeded in 0 usecs
    [ 6.489280] [drm] Radeon Display Connectors
    [ 6.489283] [drm] Connector 0:
    [ 6.489284] [drm] VGA
    [ 6.489286] [drm] DDC: 0x7fa0 0x7fa0 0x7fa4 0x7fa4 0x7fa8 0x7fa8 0x7fac 0x7fac
    [ 6.489288] [drm] Encoders:
    [ 6.489290] [drm] CRT1: INTERNAL_KLDSCP_DAC1
    [ 6.489291] [drm] Connector 1:
    [ 6.489293] [drm] HDMI-A
    [ 6.489294] [drm] HPD1
    [ 6.489296] [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
    [ 6.489298] [drm] Encoders:
    [ 6.489299] [drm] DFP1: INTERNAL_UNIPHY
    [ 6.489301] [drm] Connector 2:
    [ 6.489302] [drm] LVDS
    [ 6.489304] [drm] DDC: 0x7f10 0x7f10 0x7f14 0x7f14 0x7f18 0x7f18 0x7f1c 0x7f1c
    [ 6.489306] [drm] Encoders:
    [ 6.489307] [drm] LCD1: INTERNAL_UNIPHY2
    [ 6.489344] [drm] Internal thermal controller with fan control
    [ 6.489392] [drm] radeon: power management initialized
    [ 6.574832] ath9k 0000:04:00.0: setting latency timer to 64
    [ 6.587628] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
    [ 6.587657] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
    [ 6.625533] ath: EEPROM regdomain: 0x6a
    [ 6.625535] ath: EEPROM indicates we should expect a direct regpair map
    [ 6.625539] ath: Country alpha2 being used: 00
    [ 6.625540] ath: Regpair used: 0x6a
    [ 6.642257] psmouse serio4: synaptics: Touchpad model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04733/0xa40000/0xa0000
    [ 6.668504] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
    [ 6.668798] Registered led device: ath9k-phy0
    [ 6.668806] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xffffc900117c0000, irq=17
    [ 6.702070] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input10
    [ 6.745157] Linux media interface: v0.10
    [ 6.760418] Linux video capture interface: v2.00
    [ 6.768455] uvcvideo: Found UVC 1.00 device USB Webcam (0408:1fc3)
    [ 6.796006] input: USB Webcam as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input11
    [ 6.796189] usbcore: registered new interface driver uvcvideo
    [ 6.796193] USB Video Class driver (1.1.1)
    [ 6.898192] hda_codec: ALC269: SKU not ready 0x90970130
    [ 6.899800] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input12
    [ 6.903378] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
    [ 6.903574] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
    [ 6.941989] [drm] fb mappable at 0xD0142000
    [ 6.941992] [drm] vram apper at 0xD0000000
    [ 6.941993] [drm] size 5767168
    [ 6.941995] [drm] fb depth is 24
    [ 6.941996] [drm] pitch is 5632
    [ 6.942121] fbcon: radeondrmfb (fb0) is primary device
    [ 7.319236] cfg80211: World regulatory domain updated:
    [ 7.319238] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 7.319241] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    [ 7.319244] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    [ 7.319246] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
    [ 7.319248] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
    [ 7.319250] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
    [ 7.319252] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm)
    [ 7.319255] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)
    [ 7.319257] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
    [ 7.452932] Console: switching to colour frame buffer device 160x48
    [ 7.460794] fb0: radeondrmfb frame buffer device
    [ 7.460798] drm: registered panic notifier
    [ 7.460809] [drm] Initialized radeon 2.16.0 20080528 for 0000:01:00.0 on minor 0
    [ 7.461034] snd_hda_intel 0000:01:00.1: irq 45 for MSI/MSI-X
    [ 7.461078] snd_hda_intel 0000:01:00.1: setting latency timer to 64
    [ 7.514167] HDMI status: Codec=0 Pin=3 Presence_Detect=0 ELD_Valid=0
    [ 7.514401] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
    [ 9.302673] EXT3-fs (sda1): using internal journal
    [ 9.471584] loop: module loaded
    [ 10.766903] fuse init (API version 7.17)
    [ 11.102374] kjournald starting. Commit interval 5 seconds
    [ 11.102606] EXT3-fs (sda6): using internal journal
    [ 11.102616] EXT3-fs (sda6): mounted filesystem with ordered data mode
    [ 11.136307] kjournald starting. Commit interval 5 seconds
    [ 11.136535] EXT3-fs (sda7): using internal journal
    [ 11.136544] EXT3-fs (sda7): mounted filesystem with ordered data mode
    [ 11.256771] kjournald starting. Commit interval 5 seconds
    [ 11.258380] EXT3-fs (sda8): using internal journal
    [ 11.258389] EXT3-fs (sda8): mounted filesystem with ordered data mode
    [ 11.934957] r8169 0000:08:00.0: firmware: agent loaded rtl_nic/rtl8168e-2.fw into memory
    [ 12.073942] r8169 0000:08:00.0: eth0: link down
    [ 12.684360] RPC: Registered named UNIX socket transport module.
    [ 12.684366] RPC: Registered udp transport module.
    [ 12.684370] RPC: Registered tcp transport module.
    [ 12.684374] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 12.755488] FS-Cache: Loaded
    [ 12.798868] FS-Cache: Netfs 'nfs' registered for caching
    [ 12.822821] Installing knfsd (copyright (C) 1996 [email protected]).
    [ 153.893672] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 155.233266] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
    [ 163.093441] /dev/vmmon[3417]: Module vmmon: registered with major=10 minor=165
    [ 163.093449] /dev/vmmon[3417]: Using tsc_khz as TSC frequency: 1995000
    [ 163.093454] /dev/vmmon[3417]: Module vmmon: initialized
    [ 163.517684] [3429]: VMCI: shared components initialized.
    [ 163.517764] [3429]: VMCI: host components initialized.
    [ 163.517843] [3429]: VMCI: Module registered (name=vmci, major=10, minor=58).
    [ 163.517846] [3429]: VMCI: Using host personality
    [ 163.517849] [3429]: VMCI: Module (name=vmci) is initialized
    [ 170.723924] /dev/vmnet: open called by PID 3657 (vmnet-netifup)
    [ 170.723936] /dev/vmnet: hub 1 does not exist, allocating memory.
    [ 170.723961] /dev/vmnet: port on hub 1 successfully opened
    [ 171.457907] /dev/vmnet: open called by PID 3674 (vmnet-dhcpd)
    [ 171.457923] /dev/vmnet: port on hub 1 successfully opened
    [ 171.786201] /dev/vmnet: open called by PID 3690 (vmnet-natd)
    [ 171.786213] /dev/vmnet: hub 8 does not exist, allocating memory.
    [ 171.786236] /dev/vmnet: port on hub 8 successfully opened
    [ 172.611964] userif-2: sent link down event.
    [ 172.611970] userif-2: sent link up event.
    [ 172.614496] /dev/vmnet: open called by PID 3695 (vmnet-netifup)
    [ 172.614514] /dev/vmnet: port on hub 8 successfully opened
    [ 183.778397] /dev/vmnet: open called by PID 3707 (vmnet-dhcpd)
    [ 183.778579] /dev/vmnet: port on hub 8 successfully opened
    [ 198.541733] userif-2: sent link down event.
    [ 198.541736] userif-2: sent link up event.
    [ 200.669795] r8169 0000:08:00.0: eth0: link down
    [ 200.680689] userif-2: sent link down event.
    [ 200.680693] userif-2: sent link up event.
    [ 205.733573] wlan0: authenticate with bc:67:1c:41:6c:6a (try 1)
    [ 205.735722] wlan0: authenticated
    [ 205.735762] wlan0: associate with bc:67:1c:41:6c:6a (try 1)
    [ 205.738588] wlan0: RX AssocResp from bc:67:1c:41:6c:6a (capab=0x411 status=0 aid=2)
    [ 205.738594] wlan0: associated
    [ 206.786319] /dev/vmnet: open called by PID 3633 (vmnet-bridge)
    [ 206.786332] /dev/vmnet: hub 0 does not exist, allocating memory.
    [ 206.786355] /dev/vmnet: port on hub 0 successfully opened
    [ 206.786370] bridge-wlan0: device is wireless, enabling SMAC
    [ 206.786374] bridge-wlan0: up
    [ 206.786378] bridge-wlan0: attached
    [ 206.986083] userif-2: sent link down event.
    [ 206.986090] userif-2: sent link up event.
    [ 207.206352] userif-2: sent link down event.
    [ 207.206356] userif-2: sent link up event.
    [ 656.284828] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
    [ 3242.758471] r8169 0000:08:00.0: eth0: link down
    [ 3242.815998] userif-2: sent link down event.
    [ 3242.816005] userif-2: sent link up event.
    [62160.471664] r8169 0000:08:00.0: eth0: link up
    [62161.814143] userif-2: sent link down event.
    [62161.814147] userif-2: sent link up event.
    [62423.379549] r8169 0000:08:00.0: eth0: link down
    [62423.379561] r8169 0000:08:00.0: eth0: link down
    [62423.391950] userif-2: sent link down event.
    [62423.391954] userif-2: sent link up event.
    [62425.487259] r8169 0000:08:00.0: eth0: link up
    [62425.688474] userif-2: sent link down event.
    [62425.688478] userif-2: sent link up event.

    Может немного в сторону, но тем не менее. Что может значить симптом:
    root@fujitsu:~# /etc/init.d/networking restart
    [warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
    [....] Reconfiguring network interfaces...RTNETLINK answers: File exists
    Failed to bring up eth0.
    RTNETLINK answers: File exists
    Failed to bring up wlan0.
    done.

    Может ли быть причина в "RTNETLINK answers: File exists". Если да, может есть какие-нибудь мысли как избавиться от этих симптомов.
     
  4. Tw!m4

    Tw!m4 Elder - Старейшина

    Joined:
    15 Jun 2007
    Messages:
    187
    Likes Received:
    19
    Reputations:
    0
    Я думаю проблема в том, что ось пытается автоматом примонтировать шару через твой влановский интерфейс, так как айпишка находится в той же сетке, в который находится и сервак.

    Code:
    auto wlan0
    #iface wlan0 inet dhcp
    iface wlan0 inet static
    address 192.168.1.103
    netmask 255.255.255.0
    gateway 192.168.1.1
    hwaddress ether 5c:ac:4c:04:05:06
    
    ----
    
    192.168.1.80:/media/backup/repository /mnt/nfsmx nfs timeo=250,fg,hard,ro 0 0
    
    При старте SSID еще не ассоциирован с wifi картой и с тем самым нет конекта к серваку.
    Если есть доступ к шаре через eth0 интерфейс, можно в параметрах мониторвки указать clientaddr=192.168.5.110, чтоб соединение шло через eth0 интерфейс.

    Code:
    man nfs
    ...
           clientaddr=n.n.n.n
           clientaddr=n:n:...:n
                          Specifies a single IPv4 address (in  dotted-quad  form),
                          or  a  non-link-local  IPv6 address, that the NFS client
                          advertises to allow servers to  perform  NFS  version  4
                          callback  requests against files on this mount point. If
                          the  server is unable to establish callback  connections
                          to  clients,  performance  may  degrade,  or accesses to
                          files may temporarily hang.
    
                          If this option is not specified,  the  mount(8)  command
                          attempts  to  discover  an  appropriate callback address
                          automatically.  The automatic discovery process  is  not
                          perfect,  however.   In  the presence of multiple client
                          network interfaces, special routing policies, or  atypi‐
                          cal  network  topologies,  the  exact address to use for
                          callbacks may be nontrivial to determine.
    ...
    
    Что то в этом роде:
    Code:
    192.168.1.80:/media/backup/repository /mnt/nfsmx nfs clientaddr=192.168.5.110,timeo=250,fg,hard,ro 0 0
    
    Ну и конечно же на nfs серваке нужно дать разрешение, чтоб с этого айпишника (192.168.5.110) могли присоедениться.

    Code:
    На серваке
    
    # exportfs
    /media/backup/repository 
                          192.168.5.110
    
    $ cat /etc/exports
    ...
    /media/backup/repository 192.168.5.110(ro,option,option,option....)
    ...