NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/48849: root mirror raid fails on shutdown



The following reply was made to PR kern/48849; it has been noted by GNATS.

From: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/48849: root mirror raid fails on shutdown
Date: Fri, 30 May 2014 12:26:09 +0200

 On 29 May 2014, at 21:50, Christos Zoulas <christos%zoulas.com@localhost> 
wrote:
 <snip>
 >=20
 > unmounting 0xfffffe811e883008 / (/dev/raid7a)...
 > cgd0: detached
 > raid4: detached
 > raid4: detached
 > dk11 at wd1 (df25cd88-6326-11e3-8f70-10bf48bd3389) deleted
 > dk11: detached
 > dk4 at wd0 (80706d97-e1f8-11e3-9080-10bf48bd3389) deleted
 > dk4: detached
 > unmounting 0xfffffe811e883008 / (/dev/raid7a)...
 > forcefully unmounting / (/dev/raid7a)...
 > raid7: IO Error.  Marking /dev/dk0 as failed.
 >=20
 > I don't like these forcefully unmounting. We should figure out why =
 they happen.
 
 Some files/directories are open during shutdown, while running
 shutdown for example:
 
 /lib/libc.so.12.190
 /lib/libcrypt.so.1.0
 /lib/libgcc_s.so.1.0
 /lib/libutil.so.7.21
 /libexec/ld.elf_so
 /root
 /sbin/halt
 /sbin/init
 
 Looks like the device node of a component of raid7 gets closed.
 Please try:
 
 RCS file: /cvsroot/src/sys/kern/vfs_vnode.c,v
 diff -p -u -2 -r1.36 vfs_vnode.c
 --- vfs_vnode.c 8 May 2014 08:21:53 -0000       1.36
 +++ vfs_vnode.c 30 May 2014 10:23:26 -0000
 @@ -979,6 +979,5 @@ vclean(vnode_t *vp)
 =20
         active =3D (vp->v_usecount > 1);
 -       doclose =3D ! (active && vp->v_type =3D=3D VBLK &&
 -           spec_node_getmountedfs(vp) !=3D NULL);
 +       doclose =3D ! (active && vp->v_type =3D=3D VBLK);
         mutex_exit(vp->v_interlock);
 
 --
 J. Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)
 


Home | Main Index | Thread Index | Old Index