Date: 19 Feb 2003 14:07:23 -0500 From: Chris Shenton <chris@shenton.org> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: current@FreeBSD.ORG Subject: Re: Diskless: 5.0R scripts, boot, NFS mount problems I didn't have in 4.7S Message-ID: <8765rg1444.fsf@Pectopah.shenton.org> In-Reply-To: <200302191844.h1JIiUIh004070@apollo.backplane.com> References: <87el65pi4e.fsf@Pectopah.shenton.org> <200302191844.h1JIiUIh004070@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Dillon <dillon@apollo.backplane.com> writes: > 4.x and -current use the same mechanism, except 4.x uses MFS and > -current uses MD. 4.x uses /etc/diskless[12] while 5.x (by default) uses /etc/rc.d/(init)?diskless. The latter is works very differently than the former. > Ignore the handbook. Try 'man diskless'. Ouch, will try the man. > kenv is only used in current's rc.diskless scripts, and it > resides in /bin on -current. Not on mine: chris@Pectopah<103> whereis kenv kenv: /usr/bin/kenv /usr/share/man/man1/kenv.1.gz /usr/src/bin/kenv chris@Pectopah<104> ls /bin/kenv ls: /bin/kenv: No such file or directory chris@Pectopah<105> uname -a FreeBSD Pectopah.shenton.org 5.0-RELEASE-p1 FreeBSD 5.0-RELEASE-p1 #0: Sun Feb 16 16:10:36 EST 2003 root@Pectopah.shenton.org:/usr/obj/usr/src/sys/Pectopah i386 And the /usr/bin/kenv needs the elf libraries to run, it's not static, so shouldn't live in /sbin and can't run on a diskless box until /usr is mounted. > Basically what you do is create a files and directories in > /conf/base and /conf/default which are used to populate the > MFS/MD root and other directories. I have included my setup > at the end. Which startup scripts are you running, old diskless[12] or new rc.d/(init)?diskless ? Thanks for your examples, I'll plow through them tonight. But -- more below -- these sure look like 4.x-compatible stuff, not 5.0. > /conf/base: > total 5 > drwxr-xr-x 2 root wheel 512 Dec 21 10:37 dev > drwxr-xr-x 2 root wheel 512 Dec 19 22:22 etc > -rw-r--r-- 1 root wheel 11 Dec 20 15:38 etc.remove > drwxr-xr-x 2 root wheel 512 Dec 20 14:31 root > -rw-r--r-- 1 root wheel 12 Dec 20 15:38 root.remove > > /conf/base/dev: > total 2 > -rw-r--r-- 1 root wheel 18 Dec 21 10:37 diskless_remount > -rw-r--r-- 1 root wheel 6 Dec 19 22:22 md_size The etc.remove and md_size are used by 4.x's diskless[12] but NOT by the 5.x /etc/rc.d/(init?)diskless scripts. Are you using the old startup rc stuff, possibly changing the default value in /etc/defaults/rc.conf: rc_ng="YES" # Set to NO to disable new-style rc scripts. If so and it works for you, I can certainly do the same. But I'd still like to figure how to get the 5.x rc.d/* scripts to do their thing. Actually, I don't see any code to look for that md_size or diskless_remount in either of 5.0's rc.diskless[12] or rc.d/(init)?diskless. I do know that what you're describing is in 4.x's rc.diskless[12], and I did have that working on a 4.7S system. That's why I'm having so much trouble with the 5.0 diskless boot -- everything's changed. Lemme know if I'm way off base but it sounds like you're describing a 4.x diskless boot and my problem's with 5.0. Thanks a bunch! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8765rg1444.fsf>