Re: bind mounts and shutdown sequence

2006-10-25 Thread Goswin von Brederlow
jmt [EMAIL PROTECTED] writes:

 On Thursday 19 October 2006 15:33, Stephen Olander Waters wrote:
 I am running sid with amd64 architecture. I also have a chroot
 called /x86 to run openoffice, acroread, boinc, etc. In my /etc/fstab, I
 have several bind mounts into /x86.

 When I run shutdown -h now or shutdown -r now, the shutdown sequence
 stops with an error after stopping all the processes. I have to use Alt
 +SysRq to reboot. However, the shutdown sequence works OK if I manually
 unmount the bind mounts before executing shutdown.

 Is anyone else experiencing this problem?

 I can file a bug once I figure out what script is dying (it's hard for
 me to tell because the machine is unusable except Alt+SysRq!)

 Thanks so much,
 -s

 Are you sure you don't run the shutdown in the chroot ?

 I never tried that, because I think I could expect precisely this kind of 
 troubles ...

 jmt

Shouldn't make a difference. Afaik shutdown just tells the init to
change runlevels through the unix domain socket. If that is bind
mounted inside the chroot that still tells the init outside to do its
work.

MfG
Goswin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: bind mounts and shutdown sequence

2006-10-25 Thread Clive Menzies
  On Thursday 19 October 2006 15:33, Stephen Olander Waters wrote:
  I am running sid with amd64 architecture. I also have a chroot
  called /x86 to run openoffice, acroread, boinc, etc. In my /etc/fstab, I
  have several bind mounts into /x86.
 
  When I run shutdown -h now or shutdown -r now, the shutdown sequence
  stops with an error after stopping all the processes. I have to use Alt
  +SysRq to reboot. However, the shutdown sequence works OK if I manually
  unmount the bind mounts before executing shutdown.
 
  Is anyone else experiencing this problem?
 
  I can file a bug once I figure out what script is dying (it's hard for
  me to tell because the machine is unusable except Alt+SysRq!)

I've seen this sometimes. I have set up a chroot on my laptop a few
times and on one of the installations, I had this problem. Unfortunately
I've now wiped that system and the two I have now don't exhibit that
behaviour.  I wrote a short script to unmount the shares.  This was
using cifs which is where I thought the problem lay.

Regards

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: bind mounts and shutdown sequence

2006-10-25 Thread Stephen Olander Waters
On Mon, 2006-10-23 at 10:30 -0500, Stephen Olander Waters wrote:
 On 10/19/06, Stephen Olander Waters [EMAIL PROTECTED] wrote:
  I am running sid with amd64 architecture. I also have a chroot
  called /x86 to run openoffice, acroread, boinc, etc. In my /etc/fstab, I
  have several bind mounts into /x86.
 
  When I run shutdown -h now or shutdown -r now, the shutdown sequence
  stops with an error after stopping all the processes. I have to use Alt
  +SysRq to reboot. However, the shutdown sequence works OK if I manually
  unmount the bind mounts before executing shutdown.
 
  Is anyone else experiencing this problem?
 
  I can file a bug once I figure out what script is dying (it's hard for
  me to tell because the machine is unusable except Alt+SysRq!)
 
 
 Here is the error message I'm getting
 ---
 Asking non-system processes to terminate..done
 Killing non-system processes ...error: '/etc/init.d/rc'
 exited outside the expected codeflow.
 INIT: no more processes in this runlevel
 ---
 
 Here is my /etc/fstab
 ---
 # x86 mounts
 /home   /x86/home none  bind0   0
 /tmp/x86/tmp none   bind0   0
 /dev/x86/dev none   bind0   0
 sysfs   /x86/sys sysfs  none0   0
 proc/x86/proc proc  defaults0   0

I found a workaround. I don't know if it counts as a fix but it does
work. Change /x86/sys to a bind mount and shutting down works.

/sys   /x86/sys bind  none0   0

HTH,
-s



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



[CORRECTION] Re: bind mounts and shutdown sequence

2006-10-25 Thread Stephen Olander Waters
CORRECTION
 
  Here is my /etc/fstab
  ---
  # x86 mounts
  /home   /x86/home none  bind0   0
  /tmp/x86/tmp none   bind0   0
  /dev/x86/dev none   bind0   0
  sysfs   /x86/sys sysfs  none0   0
  proc/x86/proc proc  defaults0   0
 
 I found a workaround. I don't know if it counts as a fix but it does
 work. Change /x86/sys to a bind mount and shutting down works.
 
 /sys   /x86/sys bind  none0   0

Of course, that should be:
/sys   /x86/sys none  bind0   0



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: bind mounts and shutdown sequence

2006-10-24 Thread Gabor Gombas
On Mon, Oct 23, 2006 at 10:30:34AM -0500, Stephen Olander Waters wrote:

 Here is the error message I'm getting
 ---
 Asking non-system processes to terminate..done
 Killing non-system processes ...error: '/etc/init.d/rc'
 exited outside the expected codeflow.
 INIT: no more processes in this runlevel
 ---

Smells like bug #391375.

Gabor

-- 
 -
 MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
 -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: bind mounts and shutdown sequence

2006-10-24 Thread Stephen Olander Waters
On Tue, 2006-10-24 at 14:02 +0200, Gabor Gombas wrote:
 On Mon, Oct 23, 2006 at 10:30:34AM -0500, Stephen Olander Waters wrote:
 
  Here is the error message I'm getting
  ---
  Asking non-system processes to terminate..done
  Killing non-system processes ...error: '/etc/init.d/rc'
  exited outside the expected codeflow.
  INIT: no more processes in this runlevel
  ---
 
 Smells like bug #391375.

Yes, I think you are right.

I also tried changing /x86/dev to an rbind but that doesn't seem to
make a difference.

Furthermore, I am absolutely sure I am not shutting down inside the
chroot. ;)

-s



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: bind mounts and shutdown sequence

2006-10-23 Thread Stephen Olander Waters
On 10/19/06, Stephen Olander Waters [EMAIL PROTECTED] wrote:
 I am running sid with amd64 architecture. I also have a chroot
 called /x86 to run openoffice, acroread, boinc, etc. In my /etc/fstab, I
 have several bind mounts into /x86.

 When I run shutdown -h now or shutdown -r now, the shutdown sequence
 stops with an error after stopping all the processes. I have to use Alt
 +SysRq to reboot. However, the shutdown sequence works OK if I manually
 unmount the bind mounts before executing shutdown.

 Is anyone else experiencing this problem?

 I can file a bug once I figure out what script is dying (it's hard for
 me to tell because the machine is unusable except Alt+SysRq!)


Here is the error message I'm getting
---
Asking non-system processes to terminate..done
Killing non-system processes ...error: '/etc/init.d/rc'
exited outside the expected codeflow.
INIT: no more processes in this runlevel
---

Here is my /etc/fstab
---
# /etc/fstab: static file system information.
#
# file system mount point type options  dump
pass
/dev/hda1   /boot  ext3   defaults  0  2
/dev/hda2 /x86  ext3   defaults 0 2
/dev/hda3 /  ext3   defaults,errors=remount-ro 0  1
/dev/hda4 /home ext3 defaults 0 2
/dev/hdc   /ls120 ext2 defaults,user 0 0
/dev/hdc   /floppy vfat defaults,user 0 0
/dev/cdrom /cdrom iso9660 user,ro 0 0
proc/proc proc   defaults   0  0
sysfs /sys sysfs none 0 0
devpts /dev/pts devpts none 0 0
tmpfs /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0

# x86 mounts
/home   /x86/home none  bind0   0
/tmp/x86/tmp none   bind0   0
/dev/x86/dev none   bind0   0
sysfs   /x86/sys sysfs  none0   0
proc/x86/proc proc  defaults0   0





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: bind mounts and shutdown sequence

2006-10-23 Thread jmt
On Thursday 19 October 2006 15:33, Stephen Olander Waters wrote:
 I am running sid with amd64 architecture. I also have a chroot
 called /x86 to run openoffice, acroread, boinc, etc. In my /etc/fstab, I
 have several bind mounts into /x86.

 When I run shutdown -h now or shutdown -r now, the shutdown sequence
 stops with an error after stopping all the processes. I have to use Alt
 +SysRq to reboot. However, the shutdown sequence works OK if I manually
 unmount the bind mounts before executing shutdown.

 Is anyone else experiencing this problem?

 I can file a bug once I figure out what script is dying (it's hard for
 me to tell because the machine is unusable except Alt+SysRq!)

 Thanks so much,
 -s

Are you sure you don't run the shutdown in the chroot ?

I never tried that, because I think I could expect precisely this kind of 
troubles ...

jmt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



bind mounts and shutdown sequence

2006-10-19 Thread Stephen Olander Waters
I am running sid with amd64 architecture. I also have a chroot
called /x86 to run openoffice, acroread, boinc, etc. In my /etc/fstab, I
have several bind mounts into /x86.

When I run shutdown -h now or shutdown -r now, the shutdown sequence
stops with an error after stopping all the processes. I have to use Alt
+SysRq to reboot. However, the shutdown sequence works OK if I manually
unmount the bind mounts before executing shutdown.

Is anyone else experiencing this problem? 

I can file a bug once I figure out what script is dying (it's hard for
me to tell because the machine is unusable except Alt+SysRq!)

Thanks so much,
-s




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: bind mounts and shutdown sequence

2006-10-19 Thread Pascal

On 10/19/06, Stephen Olander Waters [EMAIL PROTECTED] wrote:

I am running sid with amd64 architecture. I also have a chroot
called /x86 to run openoffice, acroread, boinc, etc. In my /etc/fstab, I
have several bind mounts into /x86.

When I run shutdown -h now or shutdown -r now, the shutdown sequence
stops with an error after stopping all the processes. I have to use Alt
+SysRq to reboot. However, the shutdown sequence works OK if I manually
unmount the bind mounts before executing shutdown.

Is anyone else experiencing this problem?

I can file a bug once I figure out what script is dying (it's hard for
me to tell because the machine is unusable except Alt+SysRq!)

Thanks so much,
-s


What does your /etc/fstab look like?
I've a quite similar configuration, but i don't have your problem...

Here's what mine looks like:
/home   /home/chroot-sid-i386/home none  bind0   0
/tmp/home/chroot-sid-i386/tmp none   bind0   0
/sys/home/chroot-sid-i386/sys none   bind0   0
/proc/home/chroot-sid-i386/proc proc  defaults0   0

-Pascal
--
Homepage (http://organact.mine.nu)
Debian GNU/Linux (http://www.debian.org)
École de technologie supérieure (http://www.etsmtl.ca)



Re: bind mounts and shutdown sequence

2006-10-19 Thread Gabor Gombas
On Thu, Oct 19, 2006 at 08:33:08AM -0500, Stephen Olander Waters wrote:

 When I run shutdown -h now or shutdown -r now, the shutdown sequence
 stops with an error after stopping all the processes. I have to use Alt
 +SysRq to reboot. However, the shutdown sequence works OK if I manually
 unmount the bind mounts before executing shutdown.
 
 Is anyone else experiencing this problem? 

Can't tell unless you tell us _WHAT_ is the error message...

Gabor

-- 
 -
 MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
 -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]