From nobody@FreeBSD.org  Tue Apr 17 09:20:58 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id CBBCB37B440
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Apr 2001 09:20:57 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3HGKvq85183;
	Tue, 17 Apr 2001 09:20:57 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104171620.f3HGKvq85183@freefall.freebsd.org>
Date: Tue, 17 Apr 2001 09:20:57 -0700 (PDT)
From: bbauman@wgate.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: diskless client can't share root with server
X-Send-Pr-Version: www-1.0

>Number:         26649
>Category:       misc
>Synopsis:       diskless client can't share root with server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ceri
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 17 09:30:01 PDT 2001
>Closed-Date:    Sun Jun 08 11:01:23 PDT 2003
>Last-Modified:  Sun Jun 08 11:01:23 PDT 2003
>Originator:     Bruce Bauman
>Release:        4.3-RC
>Organization:
WorldGate Communications
>Environment:
>Description:
The rc.diskless2 script creates a /dev on the client by doing a mount_mfs followed by a cpio of the server's /dev. This won't work 
because /dev/zero can't be copied to the client's /dev since it 
provides an infinite supply of data. Other devices have similar
problems.
>How-To-Repeat:
Share the root filesystem between the boot server and client in a diskless configuration. No workee.
>Fix:
Rather than using cpio, we copy MAKEDEV to /tmp, then mount_mfs, then
MAKEDEV the appropriate device nodes in the client's /dev. Works like 
a charm and allows you reduce the clutter in the diskless client's /dev.

DEVFS would have been a possible solution for us, but we use dhclient on the diskless clients. dhclient relies on bpf, and bpf won't work
with DEVFS, so although it is a more elegant solution, it wouldn't
work for us.
>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@orbitel.bg>
To: bbauman@wgate.com
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/26649: diskless client can't share root with server
Date: Wed, 18 Apr 2001 10:10:15 +0300

 Eh?  cpio copies device files just fine - it does a lstat() on the file name,
 detects a device, then does a mknod() when recreating the filesystem.
 
 [root@ringworld:v0 ~/tmp/dv]# (cd /; find -x dev | cpio -o -H newc) | cpio -i -H newc -d
 557 blocks
 557 blocks
 [root@ringworld:v0 ~/tmp/dv]# du dev
 1       ./dev/fd
 195     ./dev
 [root@ringworld:v0 ~/tmp/dv]# du /dev
 1       /dev/fd
 195     /dev
 [root@ringworld:v0 ~/tmp/dv]#
 
 Seems to work for me..
 
 G'luck,
 Peter
 
 -- 
 If this sentence were in Chinese, it would say something else.
 
 On Tue, Apr 17, 2001 at 09:20:57AM -0700, bbauman@wgate.com wrote:
 > 
 > >Number:         26649
 > >Category:       misc
 > >Synopsis:       diskless client can't share root with server
 > >Originator:     Bruce Bauman
 > >Release:        4.3-RC
 > >Organization:
 > WorldGate Communications
 > >Environment:
 > >Description:
 > The rc.diskless2 script creates a /dev on the client by doing a mount_mfs followed by a cpio of the server's /dev. This won't work 
 > because /dev/zero can't be copied to the client's /dev since it 
 > provides an infinite supply of data. Other devices have similar
 > problems.
 > >How-To-Repeat:
 > Share the root filesystem between the boot server and client in a diskless configuration. No workee.
 > >Fix:
 > Rather than using cpio, we copy MAKEDEV to /tmp, then mount_mfs, then
 > MAKEDEV the appropriate device nodes in the client's /dev. Works like 
 > a charm and allows you reduce the clutter in the diskless client's /dev.
 > 
 > DEVFS would have been a possible solution for us, but we use dhclient on the diskless clients. dhclient relies on bpf, and bpf won't work
 > with DEVFS, so although it is a more elegant solution, it wouldn't
 > work for us.

From: Bruce Bauman <bbauman@wgate.com>
To: 'Peter Pentchev' <roam@orbitel.bg>
Cc: "'freebsd-gnats-submit@FreeBSD.org'" <freebsd-gnats-submit@FreeBSD.org>
Subject: RE: misc/26649: diskless client can't share root with server
Date: Wed, 18 Apr 2001 08:57:53 -0400

 This message is in MIME format. Since your mail reader does not understand
 this format, some or all of this message may not be legible.
 
 ------_=_NextPart_001_01C0C807.2E9A14F0
 Content-Type: text/plain;
 	charset="iso-8859-1"
 
 My colleague just pointed out that it's an NFS mounted /dev, so cpio
 can't figure out that it's a device. In any case, it doesn't work.
 
 -----Original Message-----
 From: Peter Pentchev [mailto:roam@orbitel.bg]
 Sent: Wednesday, April 18, 2001 3:10 AM
 To: bbauman@wgate.com
 Cc: freebsd-gnats-submit@FreeBSD.org
 Subject: Re: misc/26649: diskless client can't share root with server
 
 
 Eh?  cpio copies device files just fine - it does a lstat() on the file
 name,
 detects a device, then does a mknod() when recreating the filesystem.
 
 [root@ringworld:v0 ~/tmp/dv]# (cd /; find -x dev | cpio -o -H newc) | cpio
 -i -H newc -d
 557 blocks
 557 blocks
 [root@ringworld:v0 ~/tmp/dv]# du dev
 1       ./dev/fd
 195     ./dev
 [root@ringworld:v0 ~/tmp/dv]# du /dev
 1       /dev/fd
 195     /dev
 [root@ringworld:v0 ~/tmp/dv]#
 
 Seems to work for me..
 
 G'luck,
 Peter
 
 -- 
 If this sentence were in Chinese, it would say something else.
 
 On Tue, Apr 17, 2001 at 09:20:57AM -0700, bbauman@wgate.com wrote:
 > 
 > >Number:         26649
 > >Category:       misc
 > >Synopsis:       diskless client can't share root with server
 > >Originator:     Bruce Bauman
 > >Release:        4.3-RC
 > >Organization:
 > WorldGate Communications
 > >Environment:
 > >Description:
 > The rc.diskless2 script creates a /dev on the client by doing a mount_mfs
 followed by a cpio of the server's /dev. This won't work 
 > because /dev/zero can't be copied to the client's /dev since it 
 > provides an infinite supply of data. Other devices have similar
 > problems.
 > >How-To-Repeat:
 > Share the root filesystem between the boot server and client in a diskless
 configuration. No workee.
 > >Fix:
 > Rather than using cpio, we copy MAKEDEV to /tmp, then mount_mfs, then
 > MAKEDEV the appropriate device nodes in the client's /dev. Works like 
 > a charm and allows you reduce the clutter in the diskless client's /dev.
 > 
 > DEVFS would have been a possible solution for us, but we use dhclient on
 the diskless clients. dhclient relies on bpf, and bpf won't work
 > with DEVFS, so although it is a more elegant solution, it wouldn't
 > work for us.
 
 ------_=_NextPart_001_01C0C807.2E9A14F0
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
 <HTML>
 <HEAD>
 <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
 charset=3Diso-8859-1">
 <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
 5.5.2653.12">
 <TITLE>RE: misc/26649: diskless client can't share root with =
 server</TITLE>
 </HEAD>
 <BODY>
 
 <P><FONT SIZE=3D2>My colleague just pointed out that it's an NFS =
 mounted /dev, so cpio</FONT>
 <BR><FONT SIZE=3D2>can't figure out that it's a device. In any case, it =
 doesn't work.</FONT>
 </P>
 
 <P><FONT SIZE=3D2>-----Original Message-----</FONT>
 <BR><FONT SIZE=3D2>From: Peter Pentchev [<A =
 HREF=3D"mailto:roam@orbitel.bg">mailto:roam@orbitel.bg</A>]</FONT>
 <BR><FONT SIZE=3D2>Sent: Wednesday, April 18, 2001 3:10 AM</FONT>
 <BR><FONT SIZE=3D2>To: bbauman@wgate.com</FONT>
 <BR><FONT SIZE=3D2>Cc: freebsd-gnats-submit@FreeBSD.org</FONT>
 <BR><FONT SIZE=3D2>Subject: Re: misc/26649: diskless client can't share =
 root with server</FONT>
 </P>
 <BR>
 
 <P><FONT SIZE=3D2>Eh?&nbsp; cpio copies device files just fine - it =
 does a lstat() on the file name,</FONT>
 <BR><FONT SIZE=3D2>detects a device, then does a mknod() when =
 recreating the filesystem.</FONT>
 </P>
 
 <P><FONT SIZE=3D2>[root@ringworld:v0 ~/tmp/dv]# (cd /; find -x dev | =
 cpio -o -H newc) | cpio -i -H newc -d</FONT>
 <BR><FONT SIZE=3D2>557 blocks</FONT>
 <BR><FONT SIZE=3D2>557 blocks</FONT>
 <BR><FONT SIZE=3D2>[root@ringworld:v0 ~/tmp/dv]# du dev</FONT>
 <BR><FONT SIZE=3D2>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
 ./dev/fd</FONT>
 <BR><FONT SIZE=3D2>195&nbsp;&nbsp;&nbsp;&nbsp; ./dev</FONT>
 <BR><FONT SIZE=3D2>[root@ringworld:v0 ~/tmp/dv]# du /dev</FONT>
 <BR><FONT SIZE=3D2>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/fd</FONT>
 <BR><FONT SIZE=3D2>195&nbsp;&nbsp;&nbsp;&nbsp; /dev</FONT>
 <BR><FONT SIZE=3D2>[root@ringworld:v0 ~/tmp/dv]#</FONT>
 </P>
 
 <P><FONT SIZE=3D2>Seems to work for me..</FONT>
 </P>
 
 <P><FONT SIZE=3D2>G'luck,</FONT>
 <BR><FONT SIZE=3D2>Peter</FONT>
 </P>
 
 <P><FONT SIZE=3D2>-- </FONT>
 <BR><FONT SIZE=3D2>If this sentence were in Chinese, it would say =
 something else.</FONT>
 </P>
 
 <P><FONT SIZE=3D2>On Tue, Apr 17, 2001 at 09:20:57AM -0700, =
 bbauman@wgate.com wrote:</FONT>
 <BR><FONT SIZE=3D2>&gt; </FONT>
 <BR><FONT SIZE=3D2>&gt; =
 &gt;Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
 26649</FONT>
 <BR><FONT SIZE=3D2>&gt; =
 &gt;Category:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; misc</FONT>
 <BR><FONT SIZE=3D2>&gt; =
 &gt;Synopsis:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; diskless client can't =
 share root with server</FONT>
 <BR><FONT SIZE=3D2>&gt; &gt;Originator:&nbsp;&nbsp;&nbsp;&nbsp; Bruce =
 Bauman</FONT>
 <BR><FONT SIZE=3D2>&gt; =
 &gt;Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4.3-RC</FONT>
 <BR><FONT SIZE=3D2>&gt; &gt;Organization:</FONT>
 <BR><FONT SIZE=3D2>&gt; WorldGate Communications</FONT>
 <BR><FONT SIZE=3D2>&gt; &gt;Environment:</FONT>
 <BR><FONT SIZE=3D2>&gt; &gt;Description:</FONT>
 <BR><FONT SIZE=3D2>&gt; The rc.diskless2 script creates a /dev on the =
 client by doing a mount_mfs followed by a cpio of the server's /dev. =
 This won't work </FONT></P>
 
 <P><FONT SIZE=3D2>&gt; because /dev/zero can't be copied to the =
 client's /dev since it </FONT>
 <BR><FONT SIZE=3D2>&gt; provides an infinite supply of data. Other =
 devices have similar</FONT>
 <BR><FONT SIZE=3D2>&gt; problems.</FONT>
 <BR><FONT SIZE=3D2>&gt; &gt;How-To-Repeat:</FONT>
 <BR><FONT SIZE=3D2>&gt; Share the root filesystem between the boot =
 server and client in a diskless configuration. No workee.</FONT>
 <BR><FONT SIZE=3D2>&gt; &gt;Fix:</FONT>
 <BR><FONT SIZE=3D2>&gt; Rather than using cpio, we copy MAKEDEV to =
 /tmp, then mount_mfs, then</FONT>
 <BR><FONT SIZE=3D2>&gt; MAKEDEV the appropriate device nodes in the =
 client's /dev. Works like </FONT>
 <BR><FONT SIZE=3D2>&gt; a charm and allows you reduce the clutter in =
 the diskless client's /dev.</FONT>
 <BR><FONT SIZE=3D2>&gt; </FONT>
 <BR><FONT SIZE=3D2>&gt; DEVFS would have been a possible solution for =
 us, but we use dhclient on the diskless clients. dhclient relies on =
 bpf, and bpf won't work</FONT></P>
 
 <P><FONT SIZE=3D2>&gt; with DEVFS, so although it is a more elegant =
 solution, it wouldn't</FONT>
 <BR><FONT SIZE=3D2>&gt; work for us.</FONT>
 </P>
 
 </BODY>
 </HTML>
 ------_=_NextPart_001_01C0C807.2E9A14F0--
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Nov 3 09:49:12 PST 2002 
State-Changed-Why:  

Is this problem still present with more recent releases? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26649 
State-Changed-From-To: feedback->closed 
State-Changed-By: ceri 
State-Changed-When: Sun Jun 8 11:01:22 PDT 2003 
State-Changed-Why:  
Feedback timeout (6 months or more). 
I will handle any feedback that this closure generates. 


Responsible-Changed-From-To: freebsd-bugs->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sun Jun 8 11:01:22 PDT 2003 
Responsible-Changed-Why:  
Feedback timeout (6 months or more). 
I will handle any feedback that this closure generates. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26649 
>Unformatted:
