From: Timo Juhani Lindfors on
With

nfs:/home /home nfs defaults 0 0

in /etc/fstab I get

mount.nfs: Failed to resolve server nfs: Temporary failure in name resolution

on boot. This is because I use local bind9 and /etc/resolv.conf has

nameserver 127.0.0.1

I tried adding " bind9" to the $remote_fs line of /etc/insserv.conf but got

$ sudo insserv --dryrun
insserv: There is a loop between service bind9 and rsyslog if started
insserv: loop involving service rsyslog at depth 8
insserv: loop involving service bind9 at depth 7
insserv: loop involving service mountnfs at depth 5
insserv: loop involving service atd at depth 11
insserv: exiting now without changing boot order!

Any idea on how to proceed? I'd hate to use numeric IP addresses.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/8439us891e.fsf(a)sauna.l.org
From: Camaleón on
On Fri, 06 Aug 2010 11:01:01 +0300, Timo Juhani Lindfors wrote:

(...)

> I tried adding " bind9" to the $remote_fs line of /etc/insserv.conf but
> got
>
> $ sudo insserv --dryrun
> insserv: There is a loop between service bind9 and rsyslog if started
> insserv: loop involving service rsyslog at depth 8 insserv: loop
> involving service bind9 at depth 7 insserv: loop involving service
> mountnfs at depth 5 insserv: loop involving service atd at depth 11
> insserv: exiting now without changing boot order!
>
> Any idea on how to proceed? I'd hate to use numeric IP addresses.

Mmm, as per "man insserv" page, better try to force the availability of
bind9 by:

/etc/insserv.conf

***
$named bind9
***

(remove the "+" which means the service is optional)

And restore the original "$remote_fs" line...

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.06.09.08.50(a)gmail.com
From: Timo Juhani Lindfors on
Camale�n <noelamac(a)gmail.com> writes:
> $named bind9

Thanks for the effort but this does not seem to be enough:

$ grep -Ev "(^#|^$)" /etc/insserv.conf
$local_fs +mountall +mountoverflowtmp +umountfs
$network +networking +ifupdown
$named +named +dnsmasq +lwresd bind9 $network
$remote_fs $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs
$syslog +rsyslog +sysklogd +syslog-ng +dsyslog +inetutils-syslogd
$portmap portmap
$time +hwclock
<interactive> glibc udev console-screen keymap keyboard-setup console-setup cryptdisks cryptdisks-early checkfs-loop

$ sudo insserv -v
insserv: creating .depend.boot
insserv: creating .depend.start
insserv: creating .depend.stop

But during bootup I still get

mount.nfs: Failed to resolve server nfs: Temporary failure in name resolution

The complete bootup messages are:

Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-5-amd64 (Debian 2.6.32-18) (ben(a)decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-2) ) #1 SMP Sat Jul 24 01:47:24 UTC 2010
Command line: root=/dev/xvda ro console=hvc0
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
Centaur CentaurHauls
ACPI in unprivileged domain disabled
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 00000000000a0000 (usable)
Xen: 00000000000a0000 - 0000000000100000 (reserved)
Xen: 0000000000100000 - 0000000080000000 (usable)
DMI not present or invalid.
last_pfn = 0x80000 max_arch_pfn = 0x400000000
init_memory_mapping: 0000000000000000-0000000080000000
RAMDISK: 016a5000 - 03085000
No NUMA configuration found
Faking a node at 0000000000000000-0000000080000000
Bootmem setup node 0 0000000000000000-0000000080000000
NODE_DATA [0000000000008000 - 000000000000ffff]
bootmap [0000000000010000 - 000000000001ffff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 0080000000]
#0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
#1 [0003488000 - 00034a7000] XEN PAGETABLES ==> [0003488000 - 00034a7000]
#2 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000]
#3 [0001000000 - 0001684754] TEXT DATA BSS ==> [0001000000 - 0001684754]
#4 [00016a5000 - 0003085000] RAMDISK ==> [00016a5000 - 0003085000]
#5 [0003085000 - 0003488000] XEN START INFO ==> [0003085000 - 0003488000]
#6 [0000100000 - 00004e1000] PGTABLE ==> [0000100000 - 00004e1000]
Zone PFN ranges:
DMA 0x00000000 -> 0x00001000
DMA32 0x00001000 -> 0x00100000
Normal 0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0x00000000 -> 0x000000a0
0: 0x00000100 -> 0x00080000
SFI: Simple Firmware Interface v0.7 http://simplefirmware.org
SMP: Allowing 4 CPUs, 0 hotplug CPUs
No local APIC present
APIC: disable apic facility
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:80000000)
Booting paravirtualized kernel on Xen
Xen version: 3.4.1_19718_04-2.1 (preserve-AD)
NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:4 nr_node_ids:1
PERCPU: Embedded 30 pages/cpu @ffff8800034dd000 s90328 r8192 d24360 u122880
pcpu-alloc: s90328 r8192 d24360 u122880 alloc=30*4096
pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
Xen: using vcpu_info placement
Built 1 zonelists in Node order, mobility grouping on. Total pages: 516028
Policy zone: DMA32
Kernel command line: root=/dev/xvda ro console=hvc0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Initializing CPU#0
Checking aperture...
No AGP bridge found
Memory: 2025856k/2097152k available (3067k kernel code, 384k absent, 70912k reserved, 1887k data, 588k init)
SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:4352 nr_irqs:304
Console: colour dummy device 80x25
console [tty0] enabled
console [hvc0] enabled
installing Xen timer for CPU 0
Detected 2394.000 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 4788.00 BogoMIPS (lpj=9576000)
Security Framework initialized
SELinux: Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 0/0x3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
Performance Events: unsupported p6 CPU model 15 no PMU driver, software events only.
SMP alternatives: switching to UP code
installing Xen timer for CPU 1
SMP alternatives: switching to SMP code
Initializing CPU#1
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 1/0x3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
installing Xen timer for CPU 2
Initializing CPU#2
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 2/0x3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
installing Xen timer for CPU 3
Initializing CPU#3
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 3/0x3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
Brought up 4 CPUs
devtmpfs: initialized
Grant table initialized
regulator: core version 0.5
NET: Registered protocol family 16
PCI: Fatal: No config space access function found
bio: create slab <bio-0> at 0
ACPI: Interpreter disabled.
xen_balloon: Initialising balloon driver.
vgaarb: loaded
PCI: System does not support PCI
PCI: System does not support PCI
Switching to clocksource xen
pnp: PnP ACPI: disabled
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
Unpacking initramfs...
Freeing initrd memory: 26496k freed
platform rtc_cmos: registered platform RTC device (no PNP device found)
audit: initializing netlink socket (disabled)
type=2000 audit(1281087490.104:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4008
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Linux agpgart interface v0.103
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
input: Macintosh mouse button emulation as /devices/virtual/input/input0
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
rtc_cmos: probe of rtc_cmos failed with error -16
cpuidle: using governor ladder
cpuidle: using governor menu
No iBFT detected.
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
NET: Registered protocol family 17
registered taskstats version 1
XENBUS: Device with no driver: device/vbd/51712
XENBUS: Device with no driver: device/vbd/51728
XENBUS: Device with no driver: device/vbd/51744
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
/build/buildd-linux-2.6_2.6.32-18-amd64-qDNI1z/linux-2.6-2.6.32/debian/build/source_amd64_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Initalizing network drop monitor service
Freeing unused kernel memory: 588k freed
Write protecting the kernel read-only data: 4220k
Loading, please wait...
udev: starting version 158
Initialising Xen virtual ethernet driver.
blkfront: xvda: barriers enabled
xvda:
unknown partition table
blkfront: xvdb: barriers enabled
xvdb: unknown partition table
blkfront: xvdc: barriers enabled
xvdc: unknown partition table
nbd: registered device at major 43
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Setting up nbd-client ... Failure: Insufficient information to set up nbd, quitting (nbdsrv= nbdport= nbdroot= root=)
md: linear personality registered for level -1
Success: loaded module linear.
md: multipath personality registered for level -4
Success: loaded module multipath.
md: raid0 personality registered for level 0
Success: loaded module raid0.
md: raid1 personality registered for level 1
Success: loaded module raid1.
async_tx: api initialized (async)
xor: automatically using best checksumming function: generic_sse
generic_sse: 2612.000 MB/sec
xor: using function: generic_sse (2612.000 MB/sec)
raid6: int64x1 2009 MB/s
raid6: int64x2 2712 MB/s
raid6: int64x4 2128 MB/s
raid6: int64x8 1815 MB/s
raid6: sse2x1 4007 MB/s
raid6: sse2x2 4938 MB/s
raid6: sse2x4 7686 MB/s
raid6: using algorithm sse2x4 (7686 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
Success: loaded module raid456.
Success: loaded module raid5.
Success: loaded module raid6.
md: raid10 personality registered for level 10
Success: loaded module raid10.
done.
Begin: Assembling all MD arrays ... mdadm: No arrays found in config file or automatically
Failure: failed to assemble all arrays.
done.
done.
Begin: Running /scripts/local-premount ... done.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
udev: starting version 158
..
Synthesizing the initial hotplug events...done.
input: PC Speaker as /devices/platform/pcspkr/input/input1
done.
Setting hostname to 'lindi1'...done.
Setting parameters of disc: (none).
@Activating swap:swapon on /dev/xvdb
swapon: /dev/xvdb: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/xvdb: pagesize=4096, swapsize=6442450944, devsize=6442450944
Adding 6291448k swap on /dev/xvdb. Priority:-1 extents:1 across:6291448k SS
..
Will now check root file system:fsck from util-linux-ng 2.17.2
fsck.ext3 -a -C0 /dev/xvda
/dev/xvda: clean, 579904/1638400 files, 6011471/6553600 blocks
..
EXT3 FS on xvda, internal journal
Cleaning up ifupdown....
Setting up networking....
loop: module loaded
Loading kernel module loop.
Will now activate lvm and md swap:done.
Will now check all file systems.
fsck from util-linux-ng 2.17.2
Checking all file systems.
fsck.ext2 -a -C0 /dev/xvdc
/dev/xvdc: clean, 368635/7208960 files, 14748388/28835840 blocks
Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
Will now mount local filesystems:.
Will now activate swapfile swap:done.
Cleaning up temporary files...Cleaning /tmp...done.
Cleaning /var/run...done.
Cleaning /var/lock...done.
..
Checking minimum space in /tmp...done.
Bridge firewalling registered
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state

Waiting for br0 to get ready (MAXWAIT is 20 seconds).
Setting kernel variables ... /etc/sysctl.conf... /etc/sysctl.d/bindv6only.conf...done.
Initializing random number generator...done.
Setting up X server socket directory /tmp/.X11-unix....
Setting up ICE socket directory /tmp/.ICE-unix....
br0: port 1(eth0) entering forwarding state
Starting portmap daemon....
Starting NFS common utilities: statd.
mount.nfs: Failed to resolve server nfs: Temporary failure in name resolution
done.
Starting portmap daemon...Already running..
Starting NFS common utilities: statd.
Cleaning up temporary files....
Setting console screen modes and fonts.
cannot (un)set powersave mode
14;30]Starting filesystem in userspace: fuse[ 15.973682] fuse init (API version 7.13)
..
Recovering schroot sessions:.
Running scripts in rcS.d/ took 15 seconds.
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting portmap daemon...Already running..
Starting NFS common utilities: statd.
Enabling additional executable binary formats: binfmt-support.
Starting enhanced syslogd: rsyslogd.
Starting web server: apache2apache2: apr_sockaddr_info_get() failed for lindi1
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
..
Starting domain name service...: bind9.
Starting periodic command scheduler: cron.
Starting system message bus: dbus.
Starting nagios3 monitoring daemon: nagios3Starting Nagios Service Check Acceptor: nsca.
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshd.
..
Starting PostgreSQL 8.4 database server: main.
Starting MTA: exim4.
Running local boot scripts (/etc/rc.local)rc.local: mount nfs:/home /home
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Slow work thread pool: Starting up
Slow work thread pool: Ready
FS-Cache: Loaded
FS-Cache: Netfs 'nfs' registered for caching
svc: failed to register lockdv1 RPC service (errno 97).
..
Running scripts in rc2.d/ took 9 seconds.

Debian GNU/Linux squeeze/sid lindi1 hvc0

lindi1 login:


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/84bp9g6pbo.fsf(a)sauna.l.org
From: Camaleón on
On Fri, 06 Aug 2010 12:52:11 +0300, Timo Juhani Lindfors wrote:

> Camaleón writes:
>> $named bind9
>
> Thanks for the effort but this does not seem to be enough:
>
> $ grep -Ev "(^#|^$)" /etc/insserv.conf

(...)

> $named +named +dnsmasq +lwresd bind9 $network
> $remote_fs $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs

Tha looks right (according to the man page).

(...)

> $ sudo insserv -v
> insserv: creating .depend.boot
> insserv: creating .depend.start
> insserv: creating .depend.stop
>
> But during bootup I still get
>
> mount.nfs: Failed to resolve server nfs: Temporary failure in name
> resolution

So we are doing something wrong here.

Did you read the manual or the docs for insserv? Maybe we are missing some
step to fully populate the new boot sequence :-?

> The complete bootup messages are:

(...)

> Starting NFS common utilities: statd. mount.nfs: Failed to resolve
> server nfs: Temporary failure in name resolution done.

(...)

> Starting web server: apache2apache2: apr_sockaddr_info_get() failed for
> lindi1 apache2: Could not reliably determine the server's fully
> qualified domain name, using 127.0.0.1 for ServerName .

(side note: Apache is also giving you a warning)

> Starting domain name service...: bind9.

Still getting NFS service before bind9. Looks like changes are not applied
(or ignored).

Check the scripts (nfs and bind9) headers.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.06.10.25.04(a)gmail.com
From: Timo Juhani Lindfors on
Camale�n <noelamac(a)gmail.com> writes:
> Did you read the manual or the docs for insserv? Maybe we are missing some
> step to fully populate the new boot sequence :-?

I did try but the man page does not really mention when symlinks are
created. For example

$ echo /etc/rc*/*bind9
/etc/rc0.d/K02bind9 /etc/rc1.d/K02bind9 /etc/rc2.d/S19bind9 /etc/rc3.d/S19bind9 /etc/rc4.d/S19bind9 /etc/rc5.d/S19bind9 /etc/rc6.d/K02bind9
$ sudo rm /etc/rc*/*bind9
$ sudo insserv
$ echo /etc/rc*/*bind9
/etc/rc*/*bind9

does not seem to recreate them but

$ sudo update-rc.d bind9 enable
update-rc.d: using dependency based boot sequencing
update-rc.d: error: no runlevel symlinks to modify, aborting!
$ sudo ln -s ../init.d/bind9 /etc/rc2.d/S20bind9
$ sudo update-rc.d bind9 enable
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (2) of script `bind9' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (empty) of script `bind9' overwrites defaults (0 1 6).
$ echo /etc/rc*/*bind9
/etc/rc2.d/S19bind9

does (and note how S20 was turned into S19). A way to "regenerate"
symlinks for all runlevels thus becomes

$ sudo update-rc.d -f bind9 remove
update-rc.d: using dependency based boot sequencing
$ sudo update-rc.d bind9 defaults
update-rc.d: using dependency based boot sequencing
$ echo /etc/rc*/*bind9
/etc/rc0.d/K02bind9 /etc/rc1.d/K02bind9 /etc/rc2.d/S19bind9 /etc/rc3.d/S19bind9 /etc/rc4.d/S19bind9 /etc/rc5.d/S19bind9 /etc/rc6.d/K02bind9

If instead of changing "+bind9" to "bind9" in /etc/insserv.conf I
change

# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: $network $syslog
# Should-Stop: $network $syslog

to

# Required-Start: $local_fs
# Required-Stop: $remote_fs
# Should-Start: $network
# Should-Stop: $network $syslog

in /etc/init.d/bind9 then I do get desired ordering in runlevel 0:

$ echo /etc/rc*/*bind9
/etc/rc0.d/K02bind9 /etc/rc1.d/K02bind9 /etc/rc2.d/S01bind9 /etc/rc3.d/S01bind9 /etc/rc4.d/S01bind9 /etc/rc5.d/S01bind9 /etc/rc6.d/K02bind9
$ echo /etc/rc*/*mountnfs.sh
/etc/rc0.d/K05umountnfs.sh /etc/rc6.d/K05umountnfs.sh /etc/rcS.d/S16mountnfs.sh

This, however, does not help since mountnfs.sh is run already in
runlevel S. As an exercise I added bind9 to Required-Start of
/etc/init.d/mountnfs.sh

$ sudo update-rc.d -f mountnfs.sh remove
update-rc.d: using dependency based boot sequencing
$ sudo update-rc.d mountnfs.sh defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: mountnfs.sh start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (S)
update-rc.d: warning: mountnfs.sh stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
$ echo /etc/rc*/*mountnfs.sh
/etc/rc0.d/K05umountnfs.sh /etc/rc6.d/K05umountnfs.sh /etc/rcS.d/S16mountnfs.sh

but mountnfs still gets started in S runlevel and thus before
bind9. Next, I changed Default-Start of /etc/init.d/mountnfs.sh from
"S" to "2" and finally bind9 seems to start before mountnfs.sh:

$ echo /etc/rc*/*mountnfs.sh
/etc/rc0.d/K05umountnfs.sh /etc/rc2.d/S16mountnfs.sh /etc/rc6.d/K05umountnfs.sh
$ echo /etc/rc*/*bind9
/etc/rc0.d/K02bind9 /etc/rc1.d/K02bind9 /etc/rc2.d/S01bind9 /etc/rc3.d/S01bind9 /etc/rc4.d/S01bind9 /etc/rc5.d/S01bind9 /etc/rc6.d/K02bind9

I have a feeling that there must be a better way but I'll do a test
boot next...


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/847hk46kyh.fsf(a)sauna.l.org