Date: Tue, 18 Apr 2000 15:27:29 -0400 From: "Matthew Zahorik" <maz@albany.net> To: "Andrew Gallatin" <gallatin@cs.duke.edu> Cc: <alpha@FreeBSD.ORG> Subject: Re: HELP! Message-ID: <01c801bfa96c$2309a520$1401eed8@mahatma> References: <00c501bfa955$203546e0$1401eed8@mahatma><14588.42187.126783.219096@grasshopper.cs.duke.edu><014501bfa963$a5609550$1401eed8@mahatma> <14588.44846.499922.61041@grasshopper.cs.duke.edu>
index | next in thread | previous in thread | raw e-mail
: > [shell1]:2:19pm:~% kldstat
: > Id Refs Address Size Name
: > 1 2 0xfffffc0000300000 2a6e70 kernel
: > 2 1 0xfffffe00012c6000 14000 null.ko
:
: Hey, how did null.ko get loaded? Are you using nullfs? I'm not an FS
: person, but the mount_null() man page says:
Ugh. It's used by rc.diskless*
[shell1]:3:14pm:/etc% fgrep null rc*
rc: dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
rc:umount -a >/dev/null 2>&1
rc: (cd /var/run && cp /dev/null utmp && chmod 644 utmp;)
rc.alpha: echo -n ' OSF/1'; osf1 > /dev/null 2>&1
rc.diskless1:# WARNING! null mounts cannot handle mmap, and since many
programs
rc.diskless1:mount_null /conf/etc /etc
rc.diskless2: mount_null /var/tmp /tmp
And wonders of wonders, in rc.diskless1:
#
# WARNING! null mounts cannot handle mmap, and since many programs
# use mmap (such as 'cp'), we have to copy.
#
mount_mfs -s 2048 -T qp120at dummy /conf/etc
cp -Rp /etc/* /conf/etc
chkerr $? "MFS mount on /conf/etc"
if [ -d /conf/${bootp_ipa} ] ; then
cp -Rp /conf/${bootp_ipa}/etc/* /conf/etc
elif [ -d /conf/${bootp_ipbca} ] ; then
cp -Rp /conf/${bootp_ipbca}/etc/* /conf/etc
else
cp -Rp /conf/default/etc/* /conf/etc
fi
# Make the new directory available as /etc
#
mount_null /conf/etc /etc
Ugh. How can I remount that without using null mounts? I lose the data if
I unmount the MFS filesystem, don't I? I guess I'll have to do this in
three steps.
1. Mount /conf/etc
2. Copy /etc/* and /conf/{ip}/etc/* into /conf/etc
3. Mount another MFS at /etc
4. cp /conf/etc to /etc
5. umount /conf/etc
Anything wrong with that logic? It's only uses a couple of more megs at
startup, and these are 576M machines.
It's funny any cp's work at all, and it's even worse that this is the
default scripts that come with the distro (:
- Matt
--
Matthew Zahorik Director of Systems and Networking - BiznessOnline.com
matt@thebiz.net President of AlbanyNet Inc. - a BiznessOnline subsidiary
maz@albany.net Voice: (518) 292-1001 Fax: (518) 626-0793
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01c801bfa96c$2309a520$1401eed8>
