Freigaben auf BackupDC nach Update verschwunden

Hallo,

ich habe gestern meinen DC und meinen BackupDC aktualisiert. Alles scheint gut gelaufen zu sein, bis auf eine Sache: Die Freigaben auf dem BackupDC sind nicht mehr verfügbar.

In der Domänenverwaltung sind sie weiterhin eingetragen - die Verzeichnisse bestehen auch noch - alle weiteren Dienste und Anwendungen auf dem BackupDC (ownClound und Apache2, MySQL) laufen und können aufgerufen werden. Nur keine Dateifreigaben.

root@ucsbackupdc:~# smbclient -L localhost
Enter root's password:
session setup failed: NT_STATUS_LOGON_FAILURE

log.nmbd

[2016/02/15 07:50:32.071958,  0, pid=4286] ../source3/nmbd/nmbd.c:58(terminate)
  Got SIGTERM: going down...
[2016/02/15 07:50:34.269030,  0, pid=7732] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2016/02/15 07:50:34.269280,  0, pid=7732] ../source3/nmbd/nmbd_logonnames.c:162(add_logon_names)
  add_domain_logon_names:
  Attempting to become logon server for workgroup UCSDOMAIN on subnet 169.254.231.43
[2016/02/15 07:50:38.274503,  0, pid=7732] ../source3/nmbd/nmbd_logonnames.c:123(become_logon_server_success)
  become_logon_server_success: Samba is now a logon server for workgroup UCSDOMAIN on subnet 169.254.231.43
[2016/02/15 07:50:58.934119,  0, pid=7732] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****

  Samba name server UCSBACKUPDC is now a local master browser for workgroup UCSDOMAIN on subnet 169.254.231.43

  *****

Interessant dabei ist, das mein IP Range bei 192.168.2.xxx liegt

Die anderen Logs sind ohne weiteren nennenswerten Hinweise. Hat jemand eine Idee, was ich noch überprüfen sollte und/oder woran es liegen könnte?

LG
Michael

Wie ist die Ausgabe von ifconfig?

root@ucs002254:~# ifconfig
br0       Link encap:Ethernet  Hardware Adresse 74:d4:35:ef:85:56
          inet Adresse:[b]192.168.2.XXX[/b]  Bcast:192.168.2.255  Maske:255.255.255.0
          inet6-Adresse: fe80::76d4:35ff:feef:8556/64 Gültigkeitsbereich:Verbin                                                                                                           dung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:89191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226100 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:209643464 (199.9 MiB)  TX bytes:276156348 (263.3 MiB)

docker0   Link encap:Ethernet  Hardware Adresse 8e:f0:ef:b2:66:5e
          inet Adresse:172.17.42.1  Bcast:0.0.0.0  Maske:255.255.0.0
          inet6-Adresse: fe80::8cf0:efff:feb2:665e/64 Gültigkeitsbereich:Verbin                                                                                                           dung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

eth0      Link encap:Ethernet  Hardware Adresse 74:d4:35:ef:85:56
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:265152 errors:0 dropped:320 overruns:0 frame:0
          TX packets:233849 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:294680029 (281.0 MiB)  TX bytes:278650518 (265.7 MiB)

eth1      Link encap:Ethernet  Hardware Adresse 74:d4:35:ef:85:54
          inet Adresse:[b]169.254.231.43[/b]  Bcast:169.254.255.255  Maske:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:65536  Metrik:1
          RX packets:23406 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23406 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:4813031 (4.5 MiB)  TX bytes:4813031 (4.5 MiB)

Naja da ist dann also schon mal klar woher die Adresse 169.254.231.43 kommt. Wird eth1 benötigt? Was ist die Ausgabe von

ucr search interfaces

[quote=“SirTux”]Naja da ist dann also schon mal klar woher die Adresse 169.254.231.43 kommt. Wird eth1 benötigt? Was ist die Ausgabe von

ucr search interfaces [/quote]

Vielen Dank für deine Mühe und Rückmeldung.

Das eth1 wird zur Zeit noch nicht verwendet. Eine Zugriff über 192.168.2.xxx ist schon möglich. Ich greife über SSH und der 2er Adresse auf den Server zu. Was mich nur wundert ist, das es bis zum Update funktionierte und erst nachdem Update “verbogen” wurde/ist.

interfaces/.*/address: <empty>
 A variable in the form interfaces/INTERFACE/address configures the IPv4 address of the network interface. For a dynamic assignment using DHCP, see 'interfaces/.*/type'. If DHCP is used, no address is specified.

interfaces/.*/broadcast: <empty>
 A variable in the form interfaces/INTERFACE/broadcast configures the broadcast address of the network interface. The broadcast address is optional.

interfaces/.*/ipv6/.*/address: <empty>
 A variable in the form interfaces/INTERFACE/ipv6/IDENTIFIER/address configures the static IPv6 address of the network interface. For a dynamic assignment using SLAAC, see 'interfaces/eth0/ipv6/acceptRA'. If SLAAC is used, no address is specified.

interfaces/.*/ipv6/.*/prefix: <empty>
 A variable in the form interfaces/INTERFACE/ipv6/IDENTIFIER/prefix configures the IPv6 prefix length of the network interface (CIDR notation). For a dynamic assignment using SLAAC, see 'interfaces/eth0/ipv6/acceptRA'. If SLAAC is used, no prefix is specified.

interfaces/.*/ipv6/acceptRA: <empty>
 If this option is activated, Stateless Address Autoconfiguration (SLAAC) is used for the network interface. In this, the IP address is assigned from the routers of the local network segment.

interfaces/.*/mac: <empty>
 A variable in the form interfaces/INTERFACE/address reconfigures the MAC address of the network interface (unless permitted by driver/hardware).

interfaces/.*/netmask: <empty>
 A variable in the form interfaces/INTERFACE/netmask configures the netmask of the network interface.

interfaces/.*/network: <empty>
 A variable in the form interfaces/INTERFACE/network configures the network address of the network interface. The address is optional.

interfaces/.*/options/.*: <empty>
 A variable in the form interfaces/INTERFACE/options/INDEX allows the configuration of additional options per network interface (see 'man 5 interfaces').

interfaces/.*/order: <empty>
 A variable in the form interfaces/INTERFACE/network configures the order of the network interfaces. A number can be configured per network interface. Based on that the interfaces are sorted in ascending order.

interfaces/.*/route/.*: <empty>
 A variable in the form interfaces/INTERFACE/route/INDEX allows the configuration of additional routes per network interface. The value must be formatted like 'host a.b.c.d' or 'net a.b.0.0 netmask 255.255.0.0' (see 'man 8 route').

interfaces/.*/start: <empty>
 A variable in the form interfaces/INTERFACE/network configures the automatic start of the network interface. If set to 'no', no automatic start occurs. If set to 'yes' or if the variable is unset, it is started automatically.

interfaces/.*/type: <empty>
 Defines the type of IP assignment: 'static' configures the interface according to the values configured in additional variables (e.g. 'interfaces/eth0/address'). 'dhcp' configures dynamic assignment over DHCP. 'manual' required manual configuration.

interfaces/br0/address: 192.168.2.254
 A variable in the form interfaces/INTERFACE/address configures the IPv4 address of the network interface. For a dynamic assignment using DHCP, see 'interfaces/.*/type'. If DHCP is used, no address is specified.

interfaces/br0/broadcast: 192.168.2.255
 A variable in the form interfaces/INTERFACE/broadcast configures the broadcast address of the network interface. The broadcast address is optional.

interfaces/br0/ipv6/acceptRA: false
 If this option is activated, Stateless Address Autoconfiguration (SLAAC) is used for the network interface. In this, the IP address is assigned from the routers of the local network segment.

interfaces/br0/netmask: 255.255.255.0
 A variable in the form interfaces/INTERFACE/netmask configures the netmask of the network interface.

interfaces/br0/network: 192.168.2.0
 A variable in the form interfaces/INTERFACE/network configures the network address of the network interface. The address is optional.

interfaces/br0/options/0: bridge_fd 0
 A variable in the form interfaces/INTERFACE/options/INDEX allows the configuration of additional options per network interface (see 'man 5 interfaces').

interfaces/br0/options/1: bridge_ports eth0
 A variable in the form interfaces/INTERFACE/options/INDEX allows the configuration of additional options per network interface (see 'man 5 interfaces').

interfaces/br0/order: 3
 A variable in the form interfaces/INTERFACE/network configures the order of the network interfaces. A number can be configured per network interface. Based on that the interfaces are sorted in ascending order.

interfaces/br0/start: true
 A variable in the form interfaces/INTERFACE/network configures the automatic start of the network interface. If set to 'no', no automatic start occurs. If set to 'yes' or if the variable is unset, it is started automatically.

interfaces/br0/type: static
 Defines the type of IP assignment: 'static' configures the interface according to the values configured in additional variables (e.g. 'interfaces/eth0/address'). 'dhcp' configures dynamic assignment over DHCP. 'manual' required manual configuration.

interfaces/eth0/ipv6/acceptRA: false
 If this option is activated, Stateless Address Autoconfiguration (SLAAC) is used for the network interface. In this, the IP address is assigned from the routers of the local network segment.

interfaces/eth0/order: 2
 A variable in the form interfaces/INTERFACE/network configures the order of the network interfaces. A number can be configured per network interface. Based on that the interfaces are sorted in ascending order.

interfaces/eth0/start: true
 A variable in the form interfaces/INTERFACE/network configures the automatic start of the network interface. If set to 'no', no automatic start occurs. If set to 'yes' or if the variable is unset, it is started automatically.

interfaces/eth0/type: manual
 Defines the type of IP assignment: 'static' configures the interface according to the values configured in additional variables (e.g. 'interfaces/eth0/address'). 'dhcp' configures dynamic assignment over DHCP. 'manual' required manual configuration.

interfaces/eth1/address: 169.254.231.43
 A variable in the form interfaces/INTERFACE/address configures the IPv4 address of the network interface. For a dynamic assignment using DHCP, see 'interfaces/.*/type'. If DHCP is used, no address is specified.

interfaces/eth1/broadcast: 169.254.255.255
 A variable in the form interfaces/INTERFACE/broadcast configures the broadcast address of the network interface. The broadcast address is optional.

interfaces/eth1/ipv6/acceptRA: false
 If this option is activated, Stateless Address Autoconfiguration (SLAAC) is used for the network interface. In this, the IP address is assigned from the routers of the local network segment.

interfaces/eth1/netmask: 255.255.0.0
 A variable in the form interfaces/INTERFACE/netmask configures the netmask of the network interface.

interfaces/eth1/network: 169.254.0.0
 A variable in the form interfaces/INTERFACE/network configures the network address of the network interface. The address is optional.

interfaces/eth1/order: 1
 A variable in the form interfaces/INTERFACE/network configures the order of the network interfaces. A number can be configured per network interface. Based on that the interfaces are sorted in ascending order.

interfaces/eth1/start: true
 A variable in the form interfaces/INTERFACE/network configures the automatic start of the network interface. If set to 'no', no automatic start occurs. If set to 'yes' or if the variable is unset, it is started automatically.

interfaces/eth1/type: dhcp
 Defines the type of IP assignment: 'static' configures the interface according to the values configured in additional variables (e.g. 'interfaces/eth0/address'). 'dhcp' configures dynamic assignment over DHCP. 'manual' required manual configuration.

interfaces/handler: ifplugd
 Defines the program to manage network connections: 'ifplugd' or 'networkmanager'.

interfaces/primary: br0
 If multiple network interfaces exist on a system, this variable allows configuring the primary network interface. If no value is set, 'eth0' is assumed.

interfaces/restart/auto: <empty>
 This option configures, whether network interfaces are automatically restarted if the network-related UCR variables (interfaces/*) are modified. If the variable is unset, a restart occurs.

mail/postfix/inet/interfaces: 127.0.0.1
 The list of network interfaces, on which Postfix accepts incoming mail: 'all', 'loopback-only', or a selection of IP addresses.

samba/interfaces/bindonly: <empty>
 If this variable is set to 'yes', Samba only listens to requests on the network interfaces specified in the variable 'samba/interfaces'. If the variable is unset, Samba listens on all interfaces.

samba/interfaces: <empty>
 If the variable 'samba/interfaces/bindonly' is set to 'yes', Samba only binds to the interfaces listed in this variable. Multiple entries need to be separated by blanks.

samba/register/exclude/interfaces: docker0
 This variable defines network interfaces which are ignored by samba (e.g. eth0). Multiple values need to be separated by blanks.

Warum das Problem erst jetzt auftritt weiß ich nicht. Ich sehe da nun drei mögliche Lösungen:

  1. Du löschst eth1 über die UMC
  2. Du deaktivierst eth1 generell:
ucr set interfaces/eth1/start='no'

Danach mußt du wahrscheinlich noch rebooten.

  1. Du deaktivierst eth1 für Samba:
ucr set samba/interfaces='lo eth0' samba/interfaces/bindonly='yes' samba/register/exclude/interfaces='docker0 eth1'

Bei der 3. Möglichkeit bin ich mir nicht ganz sicher, ob meine Anleitung so richtig ist.

Danke für die Tipps

Ich hab mich für die Variante 2 entschieden - Und nach einem Neustart waren die Freigaben wieder erreichbar

Danke und LG
Michael

Mastodon