Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 319423

Summary: sys-apps/openrc: nfs-rooted system hangs with Memory access error when reboot or shutdown
Product: Gentoo Hosted Projects Reporter: holger.gleissner
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: CONFIRMED ---    
Severity: normal CC: jer
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description holger.gleissner 2010-05-12 14:25:01 UTC
After (properly) upgrade from baselayout-1 to baselayout-2 (-2.0.1) with openrc-0.6.1-r1 the system hangs when i want to reboot or shutdown. The system is actual, the special is, that the system is a nfs-root mounted system. I have re-emerged baselayout-2 and openrc but without success.


Reproducible: Always

Steps to Reproduce:
1. upgrade the system to baselayout-2 from bsaelayout-1
2. reboot the system

Actual Results:  
the system hangs and error messages "...Speicherzugriffsfehler..." (...Memory access error...) appears

Expected Results:  
the system will shutdown/reboot properly without errors



Messages from shutdown/reboot screen:
:::
* Stopping sshd ...							[ ok ]
* Stopping OpenAFS client ...
*   Unmounting /afs ...
umount: /afs: device is busy.						[ !! ]
:::
* Unmounting NFS filesystems ...
* umount.nfs: /: device is busy						[ !! ]
* Stopping NFS statd ...						[ ok ]
* Stopping rpcbind ...							[ ok ]
* Unloading lm_sensors modules...
:::
* Stopping avahi-dnsconfd ...						[ ok ]
* Stopping avahi-daemon ...						[ ok ]
* Storing ALSA Mixer Levels ...						[ ok ]
* Stopping gdm ...							[ ok ]
* Stopping gpm ...							[ ok ]
* Stopping Hardware Abstraction Layer daemon  ...			[ ok ]
* Stopping D-BUS system messagebus ...					[ ok ]
* Stopping acpid ...							[ ok ]
* Stopping syslog-ng ...						[ ok ]
* Bringing down interface eth0
/lib64/rc/rc-functions.sh: Zeile 43:  4400 Speicherzugriffsfehler mountinfo
--quiet --netdev "$1"
/lib64/rc/rc-functions.sh: Zeile 43:  4401 Speicherzugriffsfehler mountinfo
--quiet --nonetdev "$1"
* Stopping dhcpcd on eth0 ...
====> System hangs
Comment 1 holger.gleissner 2010-05-12 14:47:27 UTC
Created attachment 231223 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-18 15:08:13 UTC
AFAIK there are two things you need to change:

1) Edit /etc/init.d/nfsmount to not run the umount command in stop().
2) Edit /etc/conf.d/network and set ifdown_eth0="true" so that the default `ifconfig eth0 down' command isn't run.

Assigning because we'll ultimately need to document this somewhere[1].


[1] http://www.gentoo.org/doc/en/diskless-howto.xml
Comment 3 holger.gleissner 2010-05-20 10:56:58 UTC
(In reply to comment #2)
> AFAIK there are two things you need to change:
> 
> 1) Edit /etc/init.d/nfsmount to not run the umount command in stop().
> 2) Edit /etc/conf.d/network and set ifdown_eth0="true" so that the default
> `ifconfig eth0 down' command isn't run.
> 

Thanks for the help!
The Edit in 1) works good.
The Edit in 2) has no effect, the error messages are the same as before:
:::
* Bringing down interface eth0
/lib64/rc/rc-functions.sh: Zeile 43:  4400 Speicherzugriffsfehler mountinfo
--quiet --netdev "$1"
/lib64/rc/rc-functions.sh: Zeile 43:  4401 Speicherzugriffsfehler mountinfo
--quiet --nonetdev "$1"
* Stopping dhcpcd on eth0 ...
====> System hangs

In /etc/conf.d/network are only comments excluding the Edit in 2). I have also tested and created an empty File /etc/ifdown.eth0 but with the same result.