From owner-freebsd-cluster Wed Feb 27 9:33:49 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from mailgw3a.lmco.com (mailgw3a.lmco.com [192.35.35.24]) by hub.freebsd.org (Postfix) with ESMTP id 9FBDA37B400; Wed, 27 Feb 2002 09:33:41 -0800 (PST) Received: from emss01g01.ems.lmco.com ([129.197.181.54]) by mailgw3a.lmco.com (8.8.8/8.8.8) with ESMTP id MAA26760; Wed, 27 Feb 2002 12:33:40 -0500 (EST) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-33 #38886) id <0GS700A01CS2YF@lmco.com>; Wed, 27 Feb 2002 09:33:38 -0800 (PST) Received: from BSDWIN2KKOROUSH ([129.197.23.48]) by lmco.com (PMDF V5.2-33 #38886) with SMTP id <0GS7004QWCRX1P@lmco.com>; Wed, 27 Feb 2002 09:33:33 -0800 (PST) Date: Wed, 27 Feb 2002 09:33:34 -0800 From: Koroush Saraf Subject: Mass Upgrade and Maintenance questions To: freebsd-questions@freebsd.org, freebsd-cluster@freebsd.org Message-id: <004501c1bfb4$e1a1f270$3017c581@BSDWIN2KKOROUSH> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Mailer: Microsoft Outlook Express 5.50.4807.1700 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear wise people, I plan to maintain a lab of 36 freeBSD4.3 Pentium computers and I have several questions. These computes are all stand alone PC's connected together via 100Mb Ethernet and they do not run any type of shared file system. There is also a console computer that I can use to configure these 36 lab computers. I will attempt to list my questions in a concise manor, but if there is anything I didn't mention please ask me. I thank you for your assistance in advance: Question 1: I like to upgrade the software on these systems to the latest revision of bsd via a console station in the simplest way. All computers have .rhosts file permitting the console computer to access them. I have read about cvsup and portupgrade utility, but don't know if I should use them in this case. I have a FreeBSD CD release that I can load in the console computer and run a cvsupd. I would like to know a clear procedure on how to accomplish this task. Please link me to a webpage, post a script, or refer me to any man pages that are applicable. Question 2: How do I install additional packages to all the computers using the console computer. For example I like to add say ncftp to all 36 computers. How do I do that from the console computer? Question 3: I would like to add user accounts to all these computers, however I noticed that I cannot simply replicated the /etc/master.passwd file & /etc/group to all the computers and expect it to work. Actually I prefer to issue the adduser command on all the computers via remote shell. If you think this is a good idea, tell me how to do this so that I can automatically fill in the fields for the 'adduser' prompts. If there is a better and simpler way, I like to know. Well I have more questions but I think at this point this is all I like to tackle. I point out again that these computers are stand alone pc's not sharing any file system (AFS, NFS, etc. ) and are all connected via Ethernet and are all on the same subnet. Thanks in advance and with regards, Koroush Saraf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message From owner-freebsd-cluster Wed Feb 27 9:52:27 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from pianosa.catch22.org (pianosa.catch22.org [64.81.48.19]) by hub.freebsd.org (Postfix) with ESMTP id F174A37B41C; Wed, 27 Feb 2002 09:52:21 -0800 (PST) Received: by pianosa.catch22.org (Postfix, from userid 1006) id 632DB79; Wed, 27 Feb 2002 09:52:21 -0800 (PST) Date: Wed, 27 Feb 2002 09:52:21 -0800 From: Danny Howard To: Koroush Saraf Cc: freebsd-questions@freebsd.org, freebsd-cluster@freebsd.org Subject: Re: Mass Upgrade and Maintenance questions Message-ID: <20020227095221.F3896@pianosa.catch22.org> References: <004501c1bfb4$e1a1f270$3017c581@BSDWIN2KKOROUSH> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004501c1bfb4$e1a1f270$3017c581@BSDWIN2KKOROUSH>; from koroush.saraf@lmco.com on Wed, Feb 27, 2002 at 09:33:34AM -0800 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 27, 2002 at 09:33:34AM -0800, Koroush Saraf wrote: > Question 1: > I like to upgrade the software on these systems to the latest revision of > bsd > via a console station in the simplest way. All computers have .rhosts file > permitting the console computer to access them. I have read about cvsup > and > portupgrade utility, but don't know if I should use them in this case. I > have a FreeBSD CD release that I can load in the console computer and run a > cvsupd. I would like to know a clear procedure on how to accomplish this > task. Please link me to a webpage, post a script, or refer me to any > man pages that are applicable. NFS? I'd mount 4.5-RELEASE /usr/src on all these machines, make buildworld and buildkernel, then write a script that goes to each in turn installs both. Maybe put the procedure in an install.sh and do like this: #!/bin/sh for m in machine1 machine2 ; do rcmd $machine1 /usr/src/install.sh done > Question 2: > How do I install additional packages to all the computers using the console > computer. For example I like to add say ncftp to all 36 computers. How do > I > do that from the console computer? pkg_add(1). > Question 3: > I would like to add user accounts to all these computers, however I noticed > that I cannot simply replicated the /etc/master.passwd file & /etc/group to > all the computers and expect it to work. Actually I prefer to issue the > adduser command on all the computers via remote shell. If you think this is > a good idea, tell me how to do this so that I can automatically fill in the > fields for the 'adduser' prompts. If there is a better and simpler way, I > like to know. That sounds like a terrible idea. For one, adduser is interactive. For two, if you do start using NFS, you run the risk of everyone having different UIDs on each machine. Then, how does a user change their password? They have to do this 36 times! YARGH!!!! Copy /etc/master.passwd, copy /etc/group, then run pwd_mkdb(8). Or, get clever and put your account in NIS or LDAP and tell your computers to use these. > Well I have more questions but I think at this point this is all I like to > tackle. I point out again that these computers are stand alone pc's not > sharing any file system (AFS, NFS, etc. ) and are all connected via Ethernet > and are all on the same subnet. So, for 1), buildworld and kernel, then rsync /usr/src to each machine before installing. You can find rsync in ports. It is the niftiest thing ever. -- http://dannyman.toldme.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message From owner-freebsd-cluster Wed Feb 27 9:54: 5 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by hub.freebsd.org (Postfix) with ESMTP id 817F337B41D; Wed, 27 Feb 2002 09:53:54 -0800 (PST) Received: from fwd06.sul.t-online.de by mailout01.sul.t-online.com with smtp id 16g8H3-0006No-04; Wed, 27 Feb 2002 18:53:53 +0100 Received: from Magelan.Leidinger.net (520065502893-0001@[217.229.211.66]) by fmrl06.sul.t-online.com with esmtp id 16g8Go-24I8h6C; Wed, 27 Feb 2002 18:53:38 +0100 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.2/8.12.2) with ESMTP id g1RHs1VR006749; Wed, 27 Feb 2002 18:54:05 +0100 (CET) (envelope-from netchild@Leidinger.net) Message-Id: <200202271754.g1RHs1VR006749@Magelan.Leidinger.net> Date: Wed, 27 Feb 2002 18:54:01 +0100 (CET) From: Alexander Leidinger Subject: Re: Mass Upgrade and Maintenance questions To: koroush.saraf@lmco.com Cc: freebsd-questions@FreeBSD.ORG, freebsd-cluster@FreeBSD.ORG In-Reply-To: <004501c1bfb4$e1a1f270$3017c581@BSDWIN2KKOROUSH> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 27 Feb, Koroush Saraf wrote: > Question 2: > How do I install additional packages to all the computers using the console > computer. For example I like to add say ncftp to all 36 computers. How do > I > do that from the console computer? - Get the package for ncftp (or make one yourself via "make package" (this also installs it on the system you run the command on) in the respective ports dir) and every other package ncftp may depend upon. - Put them on every computer. - Use "pkg_add" to install it. e.g.: for host in $(cat file_with_list_of_newline_seperated_computer_names_in_the_cluster); do rcp *.tgz ${host}: rsh ${host} pkg_add package_name.tgz done > Question 3: > I would like to add user accounts to all these computers, however I noticed > that I cannot simply replicated the /etc/master.passwd file & /etc/group to > all the computers and expect it to work. Actually I prefer to issue the > adduser command on all the computers via remote shell. If you think this is > a good idea, tell me how to do this so that I can automatically fill in the > fields for the 'adduser' prompts. If there is a better and simpler way, I > like to know. You also need to copy /etc/pwd.db (gets generated from passwd) and /etc/spwd.db (gets generated from master.passwd) if you just want to have the passwd files replicated from the console computer. Bye, Alexander. -- Speak softly and carry a cellular phone. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message From owner-freebsd-cluster Wed Feb 27 19:45:11 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from mx4.thebiz.net (mx4.thebiz.net [216.238.0.23]) by hub.freebsd.org (Postfix) with SMTP id 4F24A37B421 for ; Wed, 27 Feb 2002 19:45:06 -0800 (PST) Received: (qmail 49269 invoked from network); 27 Feb 2002 22:45:00 -0500 Received: from unknown (172.16.0.80) by mx4.backend.thebiz.net with QMQP; 27 Feb 2002 22:45:00 -0500 Received: from unknown (HELO staff.noc.thebiz.net) (216.238.1.10) by mail.thebiz.net with SMTP; 27 Feb 2002 22:45:00 -0500 Date: Wed, 27 Feb 2002 22:45:00 -0500 (EST) From: "Thomas P. Holmes [ Systems ]" X-Sender: tholmes@staff.noc.thebiz.net To: Danny Howard Cc: Koroush Saraf , freebsd-cluster@freebsd.org Subject: Re: Mass Upgrade and Maintenance questions In-Reply-To: <20020227095221.F3896@pianosa.catch22.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > NFS? I'd mount 4.5-RELEASE /usr/src on all these machines, make > buildworld and buildkernel, then write a script that goes to each in > turn installs both. Maybe put the procedure in an install.sh and do > like this: Are you saying to buildworld on each seperate machine with having just the src code nfs mounted? Or build on 1 machine and then installworld on each machine? If it is the latter, I've had problems the 2 times I've tried that. It could be differences in the machines I guess. It always seems to bomb with something like "command install not found" halfway through. The last time this happened was upgrading my packardbell p75 running 4.3-RELEASEp15 to 4.5-RELEASE from my AMDK2 500. It got hosed really bad and left me with a mess, almost unbootable. I then grabbed sysinstall from my 4.5-RELEASE box and then ran it on the 4.3box and did a binary upgrade, which worked really well. I never really investegated this since it is my home boxes and also the fact that I've never had a problem (knock wood) just cvsuping and then doing make world. In our production work environment we have a set of master servers and everything else are diskless clients of the masterservers. Services are "sandboxed" so that too makes life easier :) ________________ http://www.BiznessOnline.com ________________ Thomas Holmes Bizness Online Unix Systems Engineer Suite 1801 tholmes@thebiz.net 11 North Pearl St. (518) 533-6522 Albany, NY, 12207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message From owner-freebsd-cluster Thu Feb 28 0:11: 5 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from pianosa.catch22.org (pianosa.catch22.org [64.81.48.19]) by hub.freebsd.org (Postfix) with ESMTP id 7352F37B402 for ; Thu, 28 Feb 2002 00:11:03 -0800 (PST) Received: by pianosa.catch22.org (Postfix, from userid 1006) id E068679; Thu, 28 Feb 2002 00:11:02 -0800 (PST) Date: Thu, 28 Feb 2002 00:11:02 -0800 From: Danny Howard To: "Thomas P. Holmes [ Systems ]" Cc: Koroush Saraf , freebsd-cluster@freebsd.org Subject: Re: Mass Upgrade and Maintenance questions Message-ID: <20020228001102.K3896@pianosa.catch22.org> References: <20020227095221.F3896@pianosa.catch22.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from tholmes@thebiz.net on Wed, Feb 27, 2002 at 10:45:00PM -0500 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 27, 2002 at 10:45:00PM -0500, Thomas P. Holmes [ Systems ] wrote: > > NFS? I'd mount 4.5-RELEASE /usr/src on all these machines, make > > buildworld and buildkernel, then write a script that goes to each in > > turn installs both. Maybe put the procedure in an install.sh and do > > like this: > > Are you saying to buildworld on each seperate machine with having just > the src code nfs mounted? Or build on 1 machine and then installworld > on each machine? If it is the latter, I've had problems the 2 times > I've tried that. It could be differences in the machines I guess. It > always seems to bomb with something like "command install not found" > halfway through. Sh!t happens. Measure twice, cut once. I'd have a couple of boxes reserved for guinea pig testing, myself. I've found that installworld from multiple machines over NFS works, but there's danger any time you're upgrading the OS. > In our production work environment we have a set of master servers and > everything else are diskless clients of the masterservers. Services > are "sandboxed" so that too makes life easier :) Yes, network booting is da bomb, and that is how I'd prefer to maintain 34 workstations. :) -danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message From owner-freebsd-cluster Thu Feb 28 0:36:54 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from cspop.comsoft.de (csdc.comsoft.de [212.86.205.70]) by hub.freebsd.org (Postfix) with ESMTP id A8EC637B402 for ; Thu, 28 Feb 2002 00:36:49 -0800 (PST) Received: by cspop.comsoft.de with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Feb 2002 09:35:38 +0100 Message-ID: <905777482C38D5119D0D00D0B7A06E2D0C7BC1@cspop.comsoft.de> From: "Cornelius, Peter" Reply-To: pcc@gmx.net To: 'Danny Howard' , "Thomas P. Holmes [ Systems ]" Cc: Koroush Saraf , freebsd-cluster@freebsd.org Subject: AW: Mass Upgrade and Maintenance questions Date: Thu, 28 Feb 2002 09:35:37 +0100 Importance: low X-Priority: 5 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG High folks... ...many machines, identical users on all of them, same subnet, = possibly the same set of programs, etc. How come that, to me, this appears a prime entirely-diskless/NIS candidate? If so, check /usr/ports/net/etherboot, /etc/rc.diskless[12] and the = handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/diskless.html= , http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/nis.html). = There also are an article on diskless (http://www.freebsd.org/doc/en_US.ISO8859-1/articles/diskless-x/article.= html ) and some tricky examples in /usr/share/examples/diskless which took = me a little while to get the drift of; mount_null(8) and mount_mfs(8) are = your friends. Searching for 'diskless' on the web site also gives a lot of results (http://www.FreeBSD.org/cgi/search.cgi?words=3Ddiskless&max=3D250&source= =3Dwww). Dunno wether this is any help to you. best regards, Peter. > -----Urspr=FCngliche Nachricht----- > Von: Danny Howard [mailto:dannyman@toldme.com] > Gesendet: Donnerstag, 28. Februar 2002 09:11 > An: Thomas P. Holmes [ Systems ] > Cc: Koroush Saraf; freebsd-cluster@freebsd.org > Betreff: Re: Mass Upgrade and Maintenance questions >=20 >=20 > On Wed, Feb 27, 2002 at 10:45:00PM -0500, Thomas P. Holmes [=20 > Systems ] wrote: > > > NFS? I'd mount 4.5-RELEASE /usr/src on all these machines, make > > > buildworld and buildkernel, then write a script that goes=20 > to each in > > > turn installs both. Maybe put the procedure in an=20 > install.sh and do > > > like this: > >=20 > > Are you saying to buildworld on each seperate machine with=20 > having just > > the src code nfs mounted? Or build on 1 machine and then=20 > installworld > > on each machine? If it is the latter, I've had problems the 2 = times > > I've tried that. It could be differences in the machines I=20 > guess. It > > always seems to bomb with something like "command install not = found" > > halfway through. >=20 > Sh!t happens. Measure twice, cut once. I'd have a couple of boxes > reserved for guinea pig testing, myself. I've found that = installworld > from multiple machines over NFS works, but there's danger any time > you're upgrading the OS. >=20 > > In our production work environment we have a set of master=20 > servers and > > everything else are diskless clients of the masterservers. = Services > > are "sandboxed" so that too makes life easier :) >=20 > Yes, network booting is da bomb, and that is how I'd prefer=20 > to maintain > 34 workstations. :) >=20 > -danny >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-cluster" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message From owner-freebsd-cluster Fri Mar 1 9:47:13 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from mailgw3a.lmco.com (mailgw3a.lmco.com [192.35.35.24]) by hub.freebsd.org (Postfix) with ESMTP id 9C5B037B41A for ; Fri, 1 Mar 2002 09:47:06 -0800 (PST) Received: from emss01g01.ems.lmco.com ([129.197.181.54]) by mailgw3a.lmco.com (8.11.6/8.11.6) with ESMTP id g21Hl5x25480 for ; Fri, 1 Mar 2002 12:47:05 -0500 (EST) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-33 #38886) id <0GSB00J012QEWH@lmco.com> for freebsd-cluster@freebsd.org; Fri, 1 Mar 2002 09:47:02 -0800 (PST) Received: from BSDWIN2KKOROUSH ([129.197.23.48]) by lmco.com (PMDF V5.2-33 #38886) with SMTP id <0GSB002W22QCA4@lmco.com> for freebsd-cluster@freebsd.org; Fri, 01 Mar 2002 09:47:00 -0800 (PST) Date: Fri, 01 Mar 2002 09:46:58 -0800 From: Koroush Saraf Subject: Re: Mass Upgrade and Maintenance questions To: freebsd-cluster@freebsd.org Message-id: <004a01c1c149$15f47440$3017c581@BSDWIN2KKOROUSH> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Mailer: Microsoft Outlook Express 5.50.4807.1700 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <004501c1bfb4$e1a1f270$3017c581@BSDWIN2KKOROUSH> Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks folks for all your help, I'll investigate your feedback. Is there any place on the web that I can download sample scripts and tools using to update multiple computers? regards. ----- Original Message ----- From: "Koroush Saraf" To: ; Sent: Wednesday, February 27, 2002 9:33 AM Subject: Mass Upgrade and Maintenance questions > Dear wise people, > > I plan to maintain a lab of 36 freeBSD4.3 Pentium computers and I have > several questions. These computes are all stand alone PC's connected > together via 100Mb Ethernet and they do not run any type of shared file > system. There is also a console computer that I can use to configure these > 36 lab computers. I will attempt to list my questions in a concise manor, > but if there is anything I didn't mention please ask me. I thank you for > your assistance in advance: > > Question 1: > I like to upgrade the software on these systems to the latest revision of > bsd > via a console station in the simplest way. All computers have .rhosts file > permitting the console computer to access them. I have read about cvsup > and > portupgrade utility, but don't know if I should use them in this case. I > have a FreeBSD CD release that I can load in the console computer and run a > cvsupd. I would like to know a clear procedure on how to accomplish this > task. Please link me to a webpage, post a script, or refer me to any > man pages that are applicable. > > Question 2: > How do I install additional packages to all the computers using the console > computer. For example I like to add say ncftp to all 36 computers. How do > I > do that from the console computer? > > Question 3: > I would like to add user accounts to all these computers, however I noticed > that I cannot simply replicated the /etc/master.passwd file & /etc/group to > all the computers and expect it to work. Actually I prefer to issue the > adduser command on all the computers via remote shell. If you think this is > a good idea, tell me how to do this so that I can automatically fill in the > fields for the 'adduser' prompts. If there is a better and simpler way, I > like to know. > > Well I have more questions but I think at this point this is all I like to > tackle. I point out again that these computers are stand alone pc's not > sharing any file system (AFS, NFS, etc. ) and are all connected via Ethernet > and are all on the same subnet. > > Thanks in advance and with regards, > > Koroush Saraf > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-cluster" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message