Nfsd Not Starting At Boot

Hello,
I can't get nfsd start at boot on openwrt linux.

I followed this guide:
http://wiki.openwrt.org/doc/howto/nfs.server

but when I turn the computer on:

Code:
root@OpenWrt:~# showmount -e localhost
clnt_create: RPC: Program not registered

Code:
root@OpenWrt:~# dmesg | tail
[   22.252000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   24.228000] eth1: link UP - 100/full - flow control off
[   24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   30.124000] svc: failed to register nfsdv3 RPC service (errno 5).
[   31.588000] device eth1 entered promiscuous mode
[   31.596000] br-lan: port 1(eth1) entered forwarding state
[   31.600000] br-lan: port 1(eth1) entered forwarding state
[   31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.684000] eth1: link UP - 100/full - flow control off
[   33.604000] br-lan: port 1(eth1) entered forwarding state

but if I do
Code:
root@OpenWrt:~# /etc/init.d/nfsd start
root@OpenWrt:~# showmount -e localhost
Export list for localhost:
/mnt/3tb *

so it works well, but I look at dmesg
Code:
root@OpenWrt:~# dmesg | tail
[   24.228000] eth1: link UP - 100/full - flow control off
[   24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   30.124000] svc: failed to register nfsdv3 RPC service (errno 5).
[   31.588000] device eth1 entered promiscuous mode
[   31.596000] br-lan: port 1(eth1) entered forwarding state
[   31.600000] br-lan: port 1(eth1) entered forwarding state
[   31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.684000] eth1: link UP - 100/full - flow control off
[   33.604000] br-lan: port 1(eth1) entered forwarding state
[16642.280000] svc: failed to register lockdv1 RPC service (errno 124).

I tried several times
Code:
root@OpenWrt:~# /etc/init.d/portmap enable
root@OpenWrt:~# /etc/init.d/nfsd  enable

and reboot but, again, I have to start nfsd manually after every reboot.

What am I doing wrong? On Attitude Adjustment I never had any issue.

Please help!


Similar Content



Failed To Bring Up Eth1 - Debian Wheezy

Hi,

I tried to configure my ethernet interface on a Debian Wheezy VM, but I've a problem. When I try to restart /etc/init.d/networking, I've no error message.
But my eth1 interface isn't up and when I try to up it with : ifup eth1, it return me :

Code:
root@debian-main:/# ifup eth1
RTNETLINK answers: File exists
Failed to bring up eth1

My /etc/network/interface file is :

Code:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp


iface eth1 inet static
        address 192.168.10.1
        netmask 255.255.255.0
        gateway 192.168.10.254

Eth0 is my internet interface and eth1 is a local interface. I want to install a DNS and a DHCP server on eth1 to be able to connect client with this VM and give them an ip adress.

Thanks guys

How To Check Which Interfacce Port Has Cable Connected

Hi

We are going to move some servers from one location to another. How to verify whether the cables are connected to the right interface port?

like one server has eth0 active and eth1 is down. now if the tech guys connect the cable on eth1 port then how to know that

Is it /sys/class/net/eth1 and look for carrier or there is a better way ?

thanks in advance

Access A Host From A Different Subnet In Linux

Hi all,

I have a host#1 with ip=192.168.3.100 and a host#2 with ip=192.168.2.100. Both hosts are connected to some linux device with 2 interfaces : eth0 with ip=192.168.2.1 and eth1 with ip=192.168.3.1.

So host#1 is connected to eth1 and host#2 to eth0. I would like to ping host#2 from host#1 and vice versa. How can I do that ?

I tried :
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

but it didn't work

PS
This is my first post here, so please don't be very strict to me
Looking forward to hearing from anybody as I'm out of ideas...

BR,
Dmitry

Linux Proxy Server Configuration

I am trying to set up a "Proxy Server" in Linux, without using Squid (Part of my project). However I have beginner's knowledge of iptables. I am using the following script from "http://www.aboutdebian.com/proxy.

#!/bin/sh
INTIF="eth1"
EXTIF="eth0"
EXTIP="`/sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_conntrack_irc
/sbin/modprobe iptable_nat
/sbin/modprobe ip_nat_ftp
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
iptables -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE

Question is there is no packet forwarding from eth1 to eth0 (verified from wireshark, a windows is using eth1's ip address as its default gateway)

Any help would be highly appreciated!

How To Change The Primary IP Addres?

Java Application that we are currently using, read the IP information via using sigar library(sigar.getNetInterfaceConfig()

when we use the sigar.getNetInterfaceConfig(), it brings Primary Network Interface from the

server, and this is the problem for us.

we are using Centos server now and connected with 2 of network which are eth0, eth1.

we need to gather the IP from etho0, however in sigar, it brings the ip from eth1.

It seems that primary IP of current server set as eth1.

Therefore, we were looking for answer to modify primary IP at Centos, but could not find yet.

We really want to know how to modify or set up primary IP at Centos.

Thanks for reading such a long story from us.

Regards,

Kihong, Ko

ps. i used CentOS6

Openstack-nova-{compute,network,api,metadata-api} As It Says Pid File Exists But Dead

Hi all, I am working on configuring icehouse on centos 6.6 and I am facing following issues on compute node, I am unable to start services (openstack-nova-{compute,network,api,metadata-api}) as it says pid file exists but it is dead, on compute node I have two interfaces eth0 and eth1 where eth0 is management network and eth1 is external and IP is unplumbed on it, I am unable to get logs in /var/log/nova directory, can someone let me know what am I doing wrong.

Thanks

Systemd And Loading Init File

I recently changed from Debian 7 to 8 which now uses systemd as the default init.
I had a init file that worked fine (see below) and works fine when directly invoked
Code:
$ sudo /etc/init.d/iptables start

however fails when indirectly invoked
Code:
$ sudo service iptables start
Job for iptables.service failed. See 'systemctl status iptables.service' and 'journalctl -xn' for details.

Code:
$ systemctl status iptables.service
 iptables.service - LSB: Iptable setup
   Loaded: loaded (/etc/init.d/iptables)
   Active: failed (Result: exit-code) since Mon 2015-05-25 17:18:37 PDT; 5s ago
  Process: 4825 ExecStart=/etc/init.d/iptables start (code=exited, status=203/EXEC)

Code:
$ journalctl -xn
No journal files were found.

I don't understand the error except that it "failed" and is loaded.
I have disabled and re-enabled the service with these commands:

Code:
sudo systemctl disable iptables
sudo systemctl enable iptables

which completes successfully but did not fix the problem.


INIT file
Code:
### BEGIN INIT INFO
# Provides:          iptables
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Should-Start:      $portmap
# Should-Stop:       $portmap
# X-Start-Befo     nis
# X-Stop-After:      nis
# Default-Start:     2 
# Default-Stop:      1
# X-Interactive:     false
# Short-Description: Iptable setup
# Description:       Sets iptable rules
#                    
### END INIT INFO

ipt=/sbin/iptables

loadrules() {

if [ -e /etc/iptables_ruleset ]; then iptables-restore < /etc/iptables_ruleset && exit 0; fi

$ipt -F
$ipt -X

# Policies and Chains
$ipt -P INPUT DROP
$ipt -P FORWARD DROP
$ipt -P OUTPUT ACCEPT
$ipt -N SSH
$ipt -N WEBSERVER

$ipt -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
$ipt -A INPUT -i lo -j ACCEPT # Allow loopback

# Services
$ipt -A INPUT -p tcp -m multiport --dport 443,80 -j WEBSERVER # WEBSERVER chain 
$ipt -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW -j SSH # Jump to SSH chain
$ipt -A INPUT -p tcp -s 192.168.1.1/24 --dport 445 -j ACCEPT # samba

# Reject message for LAN
$ipt -A INPUT -s 192.168.1.1/24 -j REJECT

# WEBSERVER chain
$ipt -A WEBSERVER -p tcp -m multiport --dport 443,80 -m conntrack --ctstate NEW -j LOG
$ipt -A WEBSERVER -p tcp -m multiport --dport 443,80 -j ACCEPT

# SSH chain
$ipt -A SSH -p tcp --dport 22 -m recent --set --name SSH # Set SSH recent
$ipt -A SSH -p tcp --dport 22 -m recent --name SSH --update --seconds 10 --hitcount 2 --rttl -j LOG # Log if over counter
$ipt -A SSH -p tcp --dport 22 -s 192.168.1.1/24 -m recent --name SSH --update --seconds 10 --hitcount 10 --rttl -j REJECT # Reject from lan if over counter
$ipt -A SSH -p tcp --dport 22 ! -s 192.168.1.1/24 -m recent --name SSH --update --seconds 10 --hitcount 2 --rttl -j DROP # Drop if over counter
$ipt -A SSH -p tcp --dport 22 -j ACCEPT

iptables-save > /etc/iptables_ruleset
}

removerules() {
$ipt -P INPUT ACCEPT
$ipt -P FORWARD ACCEPT
$ipt -P OUTPUT ACCEPT
$ipt -F
$ipt -X
}

restartrules() {
rm /etc/iptables_ruleset
loadrules
}

case "$1" in
	start)
		loadrules
		;;
	stop)
		removerules
		;;
        restart)
                restartrules
                ;;
    	*)
        	echo "Usage: $0 start|stop|restart" >&2
        	exit 3
        	;;
esac

Edit:
Checking /var/log/daemon.log gives me this info:
Code:
May 25 19:13:29 hostname systemd[6004]: Failed at step EXEC spawning /etc/init.d/iptables: Exec format error
May 25 19:13:29 hostname systemd[1]: iptables.service: control process exited, code=exited status=203
May 25 19:13:29 hostname systemd[1]: Failed to start LSB: Iptable setup.
May 25 19:13:29 hostname systemd[1]: Unit iptables.service entered failed state.

OpenWRT Linux Command Question

Hello everyone from stackexchange,

I am a total Linux newbie, and for a short school task I have to perform the following action in Linux OpenWRT running in my virtualbox. I have tried multiple commands and googled a lot but I can't get it working. If someone could help me out on what to do, that would be awesome. I have looked through the manuals too but it doesnt seem to work.

Task: http://i.imgur.com/MeLcGJh.png

My OpenWRT screen: http://imgur.com/98OLB9Y

Many thanks.

ACPI Error At The End Of Boot; How To Delete That Error?

Hello,
know anybody how to delete that error at the end of dmesg?
If was not here before I installed the fglrx instead of the radeon driver.

Dmesg:
Code:
...
[    1.596047] Switching to clocksource tsc
[    1.631859] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    3.546830] udevd[345]: starting version 175
[    4.065641] microcode: CPU0 sig=0xf43, pf=0x10, revision=0x4
[    4.176993] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2
[    4.177008] ACPI: Power Button [PBTN]
[    4.177320] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[    4.177330] ACPI: Power Button [PWRF]
[    4.613393] Linux agpgart interface v0.103
[    4.626342] microcode: CPU1 sig=0xf43, pf=0x10, revision=0x4
[    4.631009] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[    4.638056] intel_rng: Firmware space is locked read-only. If you can't or
[    4.638056] intel_rng: don't want to disable this in firmware setup, and if
[    4.638056] intel_rng: you are certain that your system has a functional
[    4.638056] intel_rng: RNG, try using the 'no_fwh_detect' option.
[    4.681411] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    4.690751] input: PC Speaker as /devices/platform/pcspkr/input/input4
[    4.696106] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    4.709723] wmi: Mapper loaded
[    5.049796] iTCO_vendor_support: vendor-support=0
[    5.061788] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.10
[    5.061833] iTCO_wdt: Found a ICH6 or ICH6R TCO device (Version=2, TCOBASE=0xf860)
[    5.062003] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[    5.086318] snd_intel8x0 0000:00:1e.2: setting latency timer to 64
[    5.508031] intel8x0_measure_ac97_clock: measured 54792 usecs (2640 samples)
[    5.508037] intel8x0: clocking to 48000
[    6.353849] fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[    6.353855] Disabling lock debugging due to kernel taint
[    6.387515] <6>[fglrx] Maximum main memory to use for locked dma buffers: 2894 MBytes.
[    6.387775] <6>[fglrx]   vendor: 1002 device: 68f9 revision: 0 count: 1
[    6.388429] <6>[fglrx] ioport: bar 4, base 0x1000, size: 0x100
[    6.388842] <6>[fglrx] Kernel PAT support is enabled
[    6.388877] <6>[fglrx] module loaded - fglrx 14.50.2 [Nov 20 2014] with 1 minors
[    7.410180] EXT4-fs (sda2): re-mounted. Opts: (null)
[    7.710355] EXT4-fs (sda2): re-mounted. Opts: (null)
[    9.227365] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   10.685717] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.789404] RPC: Registered named UNIX socket transport module.
[   10.789411] RPC: Registered udp transport module.
[   10.789415] RPC: Registered tcp transport module.
[   10.789419] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.802294] NET: Registered protocol family 17
[   10.832966] FS-Cache: Loaded
[   10.886960] FS-Cache: Netfs 'nfs' registered for caching
[   10.951772] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   12.242071] tg3 0000:40:00.0 eth0: Link is up at 100 Mbps, full duplex
[   12.242078] tg3 0000:40:00.0 eth0: Flow control is on for TX and on for RX
[   12.242097] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.919842] lp: driver loaded but no devices found
[   13.211684] ppdev: user-space parallel port driver
[   20.378549] fglrx_pci 0000:06:00.0: irq 42 for MSI/MSI-X
[   20.380599] <6>[fglrx] Firegl kernel thread PID: 2736
[   20.380738] <6>[fglrx] Firegl kernel thread PID: 2737
[   20.380875] <6>[fglrx] Firegl kernel thread PID: 2738
[   20.381103] <6>[fglrx] IRQ 42 Enabled
[   20.406460] <6>[fglrx] Reserved FB block: Shared offset:0, size:1000000 
[   20.406465] <6>[fglrx] Reserved FB block: Unshared offset:f8ff000, size:3000 
[   20.406468] <6>[fglrx] Reserved FB block: Unshared offset:f902000, size:3fe000 
[   20.406472] <6>[fglrx] Reserved FB block: Unshared offset:1fff3000, size:d000 
[   20.479905] ACPI Error: [ATPX] Evaluation of object type [Mutex] is not supported (20120913/nseval-201)

Detect NIC Interface In Linux

Dear Friends ,

One of My linux server , I have 4 NIC card . I plugged a network cable one of NIC card . Now How can I understand which interface (eth0 or eth1 or eth2 or eth3) is connected with the cable ?

Which command I need to use to find it ?


My second question is :
using 'ethtool ' output I got a line : "Link detected : yes"
what does it means ?