From owner-freebsd-stable Wed Apr 18 3:58: 6 2001 Delivered-To: freebsd-stable@freebsd.org Received: from riker.skynet.be (riker.skynet.be [195.238.3.132]) by hub.freebsd.org (Postfix) with ESMTP id 2587E37B423 for ; Wed, 18 Apr 2001 03:57:59 -0700 (PDT) (envelope-from sven.huster@mailsurf.com) Received: from hodge.skynet.be (hodge.skynet.be [195.238.2.35]) by riker.skynet.be (8.11.2/8.11.2/Skynet-OUT-2.11) with ESMTP id f3IAvuq04707 for ; Wed, 18 Apr 2001 12:57:56 +0200 (MET DST) (envelope-from ) Received: from 07.mailsurf.com (194-78-218-7.pro.turboline.skynet.be [194.78.218.7]) by hodge.skynet.be (8.11.2/8.11.2/Skynet-SMARTRELAY-2.11) with ESMTP id f3IAvRm14781 for ; Wed, 18 Apr 2001 12:57:27 +0200 (MET DST) (envelope-from ) Message-Id: <5.1.0.14.0.20010418125408.01bef030@mx01.mailsurf.com> X-Sender: shu@mx01.mailsurf.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 18 Apr 2001 12:57:45 +0200 To: freebsd-stable@freebsd.org From: Sven Huster Subject: Re: 4.3-RC mount_null problem on diskless machine In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi thanks Danny. whouldn't something like commited, to ensure proper diskless setup, if mount_null is known as unstable? who is responsible doing this? what's the "right" way to trigger this? thanks regards At 12:36 PM 4/18/01, Danny Braniss wrote: >this is what i do, >/etc/rc.diskless1 >config() { > if [ -d /conf/default/etc ]; then > cp -Rp /conf/default/etc/* $1 > fi > if [ -d /conf/${bootp_ipa} ] ; then > cp -Rp /conf/${bootp_ipa}/etc/* $1 > elif [ -d /conf/${bootp_ipbca} ] ; then > cp -Rp /conf/${bootp_ipbca}/etc/* $1 > elif [ -d /conf/${hostname} ] ; then > cp -Rp /conf/${hostname}/etc/* $1 > #else > # cp -Rp /conf/default/etc/* $1 > fi >} > >newway () { > mount_mfs -s 4096 -T qp120at dummy /var/tmp > sysctl -w net.inet.icmp.icmplim=1000 > (cd /etc; pax -w -f /var/tmp/etc.tar .) > mount_mfs -s 4096 -T qp120at dummy /etc > (cd /etc; pax -r -f /var/tmp/etc.tar) > config etc > rm -f /var/tmp/etc.tar > umount /var/tmp >} > >... >newway > >danny > >In message <5.1.0.14.0.20010418121945.02580930@mx01.mailsurf.com>you write: >}Hi there, >} >}i got a big problem with mount_null in FreeBSD. >}the /etc/rc.diskless* scripts use moun_null to mount their mfs mounted dirs >}over /etc and /tmp, >}but often when i try to write on /tmp or /etc i get a panic. >} >}like as i tried to temp change the root passwd on the machine >} >}Fatal trap 12: page fault while in kernel mode >}fault virtual address = 0x6d >}fault code = supervisor read, page not present >}instruction pointer = 0x8:0x6d >}stack pointer = 0x10:0xd03d5c64 >}frame pointer = 0x10:0xd03d5cf4 >}code segment = base 0x0, limit 0xfffff, type 0x1b >} = DPL 0, pres 1, def32 1, gran 1 >}processor eflags = interrupt enabled, resume, IOPL = 0 >}current process = 109 (mount_mfs) >}interrupt mask = none >}kernel: type 12 trap, code=0 >}Stopped at 0x6d: >} >}Fatal trap 12: page fault while in kernel mode >}fault virtual address = 0x6d >}fault code = supervisor read, page not present >}instruction pointer = 0x8:0xc0250388 >}stack pointer = 0x10:0xd03d5acc >}frame pointer = 0x10:0xd03d5ad0 >}code segment = base 0x0, limit 0xfffff, type 0x1b >} = DPL 0, pres 1, def32 1, gran 1 >}processor eflags = interrupt enabled, resume, IOPL = 0 >}current process = 109 (mount_mfs) >}interrupt mask = none >} kernel: type 12 trap, code=0 >} >}/ is mounted via nfs + /etc/rc.diskless* scripts run normally at startup >} >}i know mount_null is not declared stable (in the man page), but >}if its like this why is this thing in /etc/rc.diskless*? >} >}i fixed /tmp by changing it to a symlink, but not 100% sure what to do with >}/etc. >} >}test# uname -a >}FreeBSD test.mailsurf.com 4.3-RC FreeBSD 4.3-RC #1: Tue Apr 17 12:16:14 GMT >}2001 root@test.mailsurf.com:/usr/obj/usr/src/sys/MAILSURF i386 >} >}any suggestions? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message