Installing and maintaining clusters of FreeBSD servers using PXE and Rsync Cor Bosman XS4ALL

Slides:



Advertisements
Similar presentations
Windows® Deployment Services
Advertisements

Information and Communications Theory Labs, School of Computer & Communication Sciences FILE: kickstart.sxi / 24/01/03 / Page 1
Static Routing Exercise AFNOG 2003/ Track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
PXE netboot installation of Linux/SuSE
Windows Deployment Services WDS for Large Scale Enterprises and Small IT Shops Presented By: Ryan Drown Systems Administrator for Krannert.
Operated by Los Alamos National Security, LLC for the U.S. Department of Energy's NNSA UNCLASSIFIED Managing IOCs with Local Filesystems Scott A. Baily.
Leveraging WinPE and Linux Preboot for Effective Provisioning Jonathan Richey | Director of Development | Altiris, Inc.
ITE PC v4.0 Chapter 1 1 Operating Systems Computer Networks– 2.
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
14.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
WANs and Routers Routers. Router Description Specialized computer Like a general purpose PC, a router has:  CPU  Memory  System Bus Connecting Internal.
1 CMPT 471 Networking II DHCP © Janice Regan,
Installing software on personal computer
Automating Linux Installations at CERN G. Cancio, L. Cons, P. Defert, M. Olive, I. Reguero, C. Rossi IT/PDP, CERN presented by G. Cancio.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Configuring Network Devices Working at a Small-to-Medium Business or ISP – Chapter.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Express Deployment Tool. Introducing the Express Deployment Tool! The Solution: The Express Deployment Tool (EDT) leverages a wizard-based graphical user.
1 Dynamic Host Configuration Protocol (DHCP). 2 Dynamic Assignment of IP addresses Dynamic assignment of IP addresses is desirable for several reasons:
DHCP server & Client Objectives Contents
DHCP. DHCP (Dynamic Host Configuration Protocol) is a network service that enables clients to obtain network settings (IP Address, Subnet Mask, Default.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
1 Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about dynamic assignment of IP addresses with DHCP.
IT:NETWORK:MICROSOFT SERVER 2 DHCP AND WINDOWS DEPLOYMENT SERVICES.
Weekly Report By: Devin Trejo Week of May 30, > June 5, 2015.
Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install.
Linux: A Wireless Solution Josh Joiner. Agenda Introduction Minimum Hardware Basic Components Steps on setting up a wireless network Security Concerns.
DHCP server & Client Objectives –to learn how to setup dhcp servers Contents –Download and Install The DHCP Package –The /etc/dhcpd.conf File –Upgrading.
Enabling Palacios PXE-Boot Chen Jin Bharath Pattabiraman Patrick Foley.
By Rashid Khan Lesson 10-From Here to There: Remote Installation of the Windows XP Professional Client.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Configuring Network Devices Working at a Small-to-Medium Business or.
Links and LANs Link between two computers via cross cable The most simple way to connect two hosts is to link the two hosts with a cross cable.
Scott Drucker, Systems Engineer Migrating to Microsoft Vista with WinINSTALL.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Mike Gore School of Computer Science. This talk is on the Web in TWIKI format A more detailed copy of this talk can be access on with web page. Including.
INFSO-RI Enabling Grids for E-sciencE Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol.
© 2008 Cisco Systems, Inc. All rights reserved.CIPT1 v6.0—1-1 Getting Started with Cisco Unified Communications Manager Installing and Upgrading Cisco.
1 Copyright © 2015 Pexus LLC Patriot PS Personal Server Installing Patriot PS ISO Image on.
Microsoft Windows XP Professional MCSE Exam
Allocating IP Addressing by Using Dynamic Host Configuration Protocol.
DHCP as server. What is Dynamic Host Configuration Protocol (DHCP)? Dynamic Host Configuration Protocol (DHCP) is network protocol for automatically assigning.
Linux Operations and Administration
The 2001 Tier-1 prototype for LHCb-Italy Vincenzo Vagnoni Genève, November 2000.
2/05/2003 Lecture 1 Computer System Administration Lecture 1 Setup and Installation.
Automating Installations by Using the Microsoft Windows 2000 Setup Manager Create setup scripts simply and easily. Create and modify answer files and UDFs.
Juan Ortega 10/7/09 NTW342. Setting up the Configuration File ddns-update-style interim; Ignore client-updates; Subnet netmask
MREPO: Yum/Apt repository kickstart installation via PXE GIUSEPPE PLATANIA INFN Catania I Corso di formazione INFN.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
PXEBOOT. What is PXEBOOT. The Preboot Execution Environment (PXE) is a service, Establish client/server communication and it will install the OS to the.
 Each interface card that was detected correctly will be listed under the Network Devices section. Ethernet devices in Linux are named eth0, eth1, eth2,
Automating Xen Virtual Machine Deployment Kris Buytaert
Configuring Network Devices
BY: SALMAN 1.
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
NAT、DHCP、Firewall、FTP、Proxy
BY: SALMAN.
The Architecture of oVirt Node
FreeBSD.
DHCP server & Client Objectives Contents
Chapter 1: Introduction
Configuring Network Devices
SAP R/3 Installation on WIN NT-ORACLE
SUSE Linux Enterprise Desktop Administration
Changing Ethernet config using IP changer FW upgrade
Lecture9: Embedded Network Operating System: cisco IOS
Dynamic Host Configuration Protocol (DHCP)
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

Installing and maintaining clusters of FreeBSD servers using PXE and Rsync Cor Bosman XS4ALL

The problem Operating dozens of servers individually Installation Maintenance Security Upgrades Number of servers increased rapidly. A solution is necessary

Fixing the problem Standardize hardware Create fast and easy installation Centralize maintenance to keep groups of servers identical

Standardize hardware Choose a few different server layouts. Low, medium, high performance. We prefer on- board devices so we can use 1U rack mounted servers Spare policy is simple. Keep one or more spare boxes. Swap complete box when hardware fails You always know what to expect. Hardware will be supported by your OS

installation Different possibilities Copy an image using tools like dd. Slow, can’t easily be done in parallel. Problem with drive sizes Scripted install using floppy/CD PXE Preboot Execution Environment Standard created by Intel Built on TCP/IP, DHCP, TFTP

PXE ‘ normal’ DHCP protocol Discover boot server DHCPDHCP Fetch bootstrap code TFTP NFS Fetch additional bootloaders Kernel, config files CLIENT SERVER

Installing FreeBSD using PXE PC with PXE capable network card Ethernet connection DHCP/Boot server TFTP server –Boot image NFS server –Boot loader files –Loader config file –Kernel –Memory file system Install.cfg FreeBSD distribution

server-name "DHCPserver"; default-lease-time 86400; option subnet-mask ; option broadcast-address ; option domain-name "xs4all.nl"; option domain-nameservers , ; option routers ; subnet netmask { range dynamic-bootp ; filename "pxeboot"; next-server ; option root-path "/usr/local/export/pxe"; }

Installing FreeBSD using PXE PC with PXE capable network card Ethernet connection DHCP/Boot server TFTP server –Boot image NFS server –Boot loader files –Loader config file –Kernel –Memory file system Install.cfg FreeBSD distribution

echo Loading Kernel... load /kernel set choice=default echo echo Please select one of the following installs within 15 seconds echo echo default echo scsi echo dh echo read -t 15 -p "Type in the exact word of your selection: " choice echo include /boot/loader.rc.$choice echo booting... set vfs.root.mountfrom="ufs:/dev/md0c" boot load -t mfs_root /mfsroot-default /boot/loader.rc.default /boot/loader.rc

Tips Use an install server. Insert empty HD Keep a stack of installed harddisks ready You can install multiple servers at the same time

Centralized maintenance Scaling choices have created clusters of servers Every cluster has a parent (“golden master”) –Doesn’t do any production work. Merely a repository –Low end hardware –Parent is called the ‘zero’ server. Production servers are named after their task. smtp0, smtp1, smtp2…. OS has a parent

Testing Testing on production server is a bad idea Testing on parent is also a bad idea Use specific test and accept servers parent0 test1 test0 child3child2child1

Synchronizing servers Mirror parent over the network –Exclude files Machine specific config files Temporary files/directories Customer data –Preview changes Possible tools: rdist, rsync, … Manual syncing prone to human error

$ sync Usage: sync -t -s -f -f alternate file. Default is sync.conf -t test, don't actually do it. Recommended before ALL syncs -s hostname to sync. Use "all" for all sites. -c allow recursive updates Config file $ cat sync.conf # hostname exclude_file recursive? # smtp0.xs4all.nlexclude.smtpyes webmail0.xs4all.nlexclude.webmailyes dh0.xs4all.nlexclude.dhyes backup.xs4all.nlexclude.backup no

Security Security and ease of use often go hand in hand –Define what is important to you –We try to avoid tasks that need interaction per individual server. Protect your parent servers –Harden servers –Firewall –IDS

Security Connecting to children –Use ssh key agent for authentication Use sync to check for changes Quick reaction possible

Enhanced PXE installation Installation is adding a server to a group Choices possible through loader.rc DHCP server drives the PXE installation VLANS VLAN allows subnetting of physical network Divide switch into separate networks DHCP server can reply differently for each network

server-name "DHCPserver"; default-lease-time 86400; option subnet-mask ; option broadcast-address ; option domain-name "xs4all.nl"; shared-network "VLAN0" { subnet netmask { range dynamic-bootp ; filename "pxeboot"; next-server ; option root-path "/usr/local/export/pxe-freebsd-45-scsi"; option domain-name-servers ; option routers ; } shared-network "VLAN1" { subnet netmask { range dynamic-bootp ; filename "pxeboot"; next-server ; option root-path "/usr/local/export/pxe-freebsd-45-ide"; option domain-name-servers ; option routers ; }

Immediate Synchronization Create FreeBSD package for each type of server Install package from install.cfg “post” script runs sync with correct parent End result is fully installed and configured server, ready for production. Total install time less than 5 minutes

PXE Server DHCP TFTP NFS NAT Cisco Catalyst 2900XL switch Parent

Questions ? Slides, paper, scripts and example files: me at