Bug#868164: systemd: fakeraid + cryptsetup (root) + lvm results in 90s time out waiting for device at boot

2019-10-30 Thread Sergey Belyashov
Hi,
I have found, that my problem is caused only in case of mdraid device
partitioning. To reproduce:
1. Take 2 HDD (at least by 50 GB)
2. Run from any LiveCD
3. Make two partitions on each HDD: for 256-1024MB and for remaining space,
make first partition bootable
4. Create mdraid1 around second partitions of both HDD
5. Repartition md device by 3 partitions: 10GB (md0p1), 20GB (md0p2) and
remaining space (md0p3)
6. Using cryptsetup configure luks encryption over md0p2.
7. Install debian 9 or 10, using: /dev/sda1 - /boot, /dev/md0p1 - /root,
/dev/md0p2 - /var, /dev/mapper/ - /home
After reboot system do not start if default boot options are specified. It
will wait for some devices to be ready, but no any password prompt. There
is only one way to boot system: run rescue mode and then exit from rescue
shell using Ctrl-D.

If you create on HDDs four partitions and use them to build four RAID1
devices, then encrypted device configured on /dev/md3 will start on boot
successfully (after prompting password).

So I think, some boot scripts/services does not know anything about md
device partitioning.


Bug#868164: systemd: fakeraid + cryptsetup (root) + lvm results in 90s time out waiting for device at boot

2019-05-30 Thread Sergey Belyashov
Please ignore information about start of debian9 before /var mount in my
previous message. It was caused by strange config possibly kept from
Jessie (/etc/systemd/system/bind9.service.d/override.conf). After removing
it, bind starts after /var mount.

Best regards,
Sergey Belyashov


Bug#801316: netcf: ncftool fails when 'source-directory' directive is used in /etc/network/interfaces

2015-10-26 Thread Sergey Belyashov
Hi,
I think, roots of problem are in augeas project. It parses config files and
does not understand 'source-directory' instruction.
I have created bug about it:
https://github.com/hercules-team/augeas/issues/306

2015-10-24 5:28 GMT+03:00 Serge Hallyn :

> Hi,
>
> There is a new netcf package version 0.2.8-1, but looking at the code
> I don't expect that to help.
>
> I think the source-directory directive is simply un-implemented.  So
> someone would have to write the patch to src/drv_debian.c to implement
> it.
>


Bug#801316: netcf: ncftool fails when 'source-directory' directive is used in /etc/network/interfaces

2015-10-09 Thread Sergey Belyashov
$ cat 00_lo
# The loopback network interface
auto lo
iface lo inet loopback
dns-nameservers 127.0.0.1
dns-search igrosoft.lan
dns-domain igrosoft.lan

$ cat 10_eth0

$ cat 20_br0
auto br0
iface br0 inet static
pre-up vde_tunctl -t tap0
pre-up vde_switch -g vde2-net -m 770 -d -p /run/vde2.pid -t tap0
post-down kill `/bin/cat /run/vde2.pid`
post-down vde_tunctl -d tap0
bridge_ports eth0 tap0
address 192.168.1.1
broadcast 192.168.1.255
netmask 255.255.255.0

$ cat 30_eth1
auto eth1
allow-hotplug eth1
iface eth1 inet manual
up /sbin/ip link set eth1 up
down /sbin/ip link set eth1 down
# metric 100
post-up ifup ppp0=ppp0
pre-down ifdown ppp0=ppp0

$ cat 40_eth2
#auto eth2
allow-hotplug eth2
iface eth2 inet dhcp
metric 30

$ cat 50_eth3
auto eth3
allow-hotplug eth3
iface eth3 inet dhcp
metric 20

$ cat 90_ppp0
# PPPoE connection
iface ppp0 inet ppp
provider dsl-provider
# metric 10

# ifconfig -a
br0   Link encap:Ethernet  HWaddr 1c:6f:65:d8:6a:48
  inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
  inet6 addr: fe80::1e6f:65ff:fed8:6a48/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:43368819 errors:0 dropped:0 overruns:0 frame:0
  TX packets:79382482 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:60891919895 (56.7 GiB)  TX bytes:101952824144 (94.9 GiB)

eth0  Link encap:Ethernet  HWaddr 1c:6f:65:d8:6a:48
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:75200985 errors:0 dropped:358 overruns:0 frame:0
  TX packets:79383759 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:63371230862 (59.0 GiB)  TX bytes:101988171459 (94.9 GiB)

eth1  Link encap:Ethernet  HWaddr 00:40:f4:c0:a8:d9
  inet6 addr: fe80::240:f4ff:fec0:a8d9/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:36021428 errors:0 dropped:19 overruns:0 frame:0
  TX packets:23096348 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:43590943426 (40.5 GiB)  TX bytes:795115 (7.4 GiB)

eth2  Link encap:Ethernet  HWaddr 00:40:f4:8c:a4:39
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth3  Link encap:Ethernet  HWaddr f8:35:dd:ce:f7:19
  inet addr:172.16.0.12  Bcast:172.16.0.255  Mask:255.255.255.0
  inet6 addr: fe80::fa35:ddff:fece:f719/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:6 errors:0 dropped:0 overruns:0 frame:0
  TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:791 (791.0 B)  TX bytes:864 (864.0 B)

eth2:avahi Link encap:Ethernet  HWaddr 00:40:f4:8c:a4:39
  inet addr:169.254.8.122  Bcast:169.254.255.255  Mask:255.255.0.0
  UP BROADCAST MULTICAST  MTU:1500  Metric:1

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:65536  Metric:1
  RX packets:22761749 errors:0 dropped:0 overruns:0 frame:0
  TX packets:22761749 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:3343394986 (3.1 GiB)  TX bytes:3343394986 (3.1 GiB)

ppp0  Link encap:Point-to-Point Protocol
  inet addr:xx.xx.xx.xx  P-t-P:10.0.0.1  Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  RX packets:12811709 errors:0 dropped:0 overruns:0 frame:0
  TX packets:9410858 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3
  RX bytes:14985586147 (13.9 GiB)  TX bytes:4270100636 (3.9 GiB)

tap0  Link encap:Ethernet  HWaddr a2:ae:b6:e1:a0:03
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:1993 errors:0 dropped:0 overruns:0 frame:0
  TX packets:233122 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:500
  RX bytes:2084627 (1.9 MiB)  TX bytes:45499416 (43.3 MiB)



2015-10-09 2:24 GMT+03:00 Serge Hallyn :

> Thanks, I'll try to reproduce this (though won't be back until next week)
> Could you please show the contents of /etc/nework/interfaces.d and
> output of 'ifconfig -a' ?
>


Bug#801316: netcf: ncftool fails when 'source-directory' directive is used in /etc/network/interfaces

2015-10-08 Thread Sergey Belyashov
Package: netcf
Version: 1:0.2.6-1
Severity: normal

Dear Maintainer,

I try to use libvirt, but it spams internal errors to syslog, same as in
Bug#740114.
Next I try to run ncftool directly:
$ ncftool list
error: unspecified error
error: errors in loading some config files

$ sudo ncftool list
error: unspecified error
error: errors in loading some config files

Then I try to comment 'source-directory' line of my /etc/network/interfaces
and ncftool succeeded, but no output (it is correct, because file contains
only one directive):

$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source-directory interfaces.d

$ ls /etc/network/interfaces.d
00_lo  10_eth0  20_br0  30_eth1  40_eth2  50_eth3  90_ppp0

Then I try to upgrade netcf package to last possible varsion. But nothing
changed.


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages netcf depends on:
ii  libc6 2.19-18+deb8u1
ii  libnetcf1 1:0.2.6-1
ii  libreadline6  6.3-8+b3

netcf recommends no packages.

netcf suggests no packages.

-- no debconf information