Date: Wed, 18 Apr 2001 12:57:45 +0200 From: Sven Huster <sven.huster@mailsurf.com> To: freebsd-stable@freebsd.org Subject: Re: 4.3-RC mount_null problem on diskless machine Message-ID: <5.1.0.14.0.20010418125408.01bef030@mx01.mailsurf.com> In-Reply-To: <E14ppK7-0002IR-00@sexta.cs.huji.ac.il> References: <Your message of Wed, 18 Apr 2001 12:19:47 %2B0200 .>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20010418125408.01bef030>
