Variation on AFS as root filesystem

Similar documents
Variation on AFS as root filesystem

Thousands of Linux Installations (and only one administrator)

Installation Tools for Clusters. Rajesh K., Computer Division, BARC

CIS 191A Final Exam. Fall CIS 191 Final Exam

Server Consolidation with Xen Farming

Exam LFCS/Course 55187B Linux System Administration

At course completion. Overview. Audience profile. Course Outline. : 55187B: Linux System Administration. Course Outline :: 55187B::

Course 55187B Linux System Administration

Filesystem Hierarchy and Permissions

System Requirements ENTERPRISE

"Charting the Course... MOC B: Linux System Administration. Course Summary

CSDA UNIT I. Introduction to the LAB environment. Practical classes Lab 0. Computer Engineering Degree Computer Engineering.

The TinyHPC Cluster. Mukarram Ahmad. Abstract

Filesystem Hierarchy and Permissions

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

Diskless Linux Clusters

Network booting putting the pieces together

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

Linux Diskless iscsi Boot HowTo ( V1.0)

Linux Home Lab Environment

How do I patch custom OEM images? Are ESXi patches cumulative? VMworld 2017 Do stateless hosts keep SSH & SSL identities after reboot? With Auto Deplo

Ubuntu Install Partition Server On. Virtualbox 4.2 >>>CLICK HERE<<<

Unit 2: Manage Files Graphically with Nautilus Objective: Manage files graphically and access remote systems with Nautilus

Root over NFS on User Mode Linux

Installation runbook for Hedvig + Cinder Driver

Getting Started with Linux

Linux Files and the File System

Acronis Backup & Recovery 11.5

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

DUAL OS INSTALLATION

CIT 470: Advanced Network and System Administration. Topics. Workstation Management. Workstations

TECHNICAL WHITE PAPER. Using Stateless Linux with Veritas Cluster Server. Linux

RedHat Certified Engineer

Parallel Panther Beowulf Cluster

openqrm Technical Overview

Control Center Planning Guide

Part 1 : Getting Familiar with Linux. Hours. Part II : Administering Red Hat Enterprise Linux

/Desktop: Scalable Workstation Solutions

Operating Systems Lab 1. Class topic: Installation of the operating system. Install Ubuntu on Oracle VirtualBox

SUSE Linux Enterprise Point of Service

Grub Manual Install Ubuntu Without >>>CLICK HERE<<<

Step - by - Step DDOS Upgrade Guide

Ubuntu Install Partition Lamp One. Command >>>CLICK HERE<<<

Formatting 1. Commands starting with $ are Linux console commands on the host PC:

Nubo on premise POC requirements for VMWare ESXi

THE AFS NAMESPACE AND CONTAINERS

Control Center Planning Guide

Manually Mount Usb Flash Drive Ubuntu Server

Virtuozzo 6. Installation Guide. July 19, Copyright Parallels IP Holdings GmbH and its affiliates. All rights reserved.

ovirt Node November 1, 2011 Mike Burns Alan Pevec Perry Myers ovirt Node 1

How To Resize ext3 Partitions Without Losing Data

Display Modules (DL-DM) Application Developer's Guide

Ftp Command Line Manual Windows Username Password Linux

ABOUT ZEPCAM SOFTWARE INSTALLATION MANAGEMENT AND BACKUPS. Description What is it Installation requirement Server requirement

Installing Ubuntu 8.04 for use with ESP-r 8 May 2009 Jon W. Hand, ESRU, Glasgow, Scotland

Labtainer Student Guide

Linux Howtos. Fedora 9 Install (114) CIS Fall Fedora 9 Install (114) Fedora 9 installation with custom partitions.

How to Use This Lab Manual

How to Restrict a Login Shell Using Linux Namespaces

Introduction to Linux

The landscape. File hierarchy overview. A tree structure of directories The directory tree is standardized. But varies slightly among distributions

Advanced UNIX File Systems. Berkley Fast File System, Logging File System, Virtual File Systems

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Ensure that the server where you install the Primary Server software meets the following requirements: Item Requirements Additional Details

VIRTUAL MACHINES. By Seth Lemanek

Herding Clones. Mike Kershaw August 17, urmk/

Administration GUIDE. OSSV Plug-In. Published On: 11/19/2013 V10 Service Pack 4A Page 1 of 100

Manual Update Ubuntu To Using Iso

Linux Administration

Getting Started Guide. Installation and Setup Instructions. For version Copyright 2009 Code 42 Software, Inc. All rights reserved

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

Installation and configuration of Linux Cluster. Addisu Gezahegn University of Trieste ICTP,Trieste

Production Installation and Configuration. Openfiler NSA

Automating the deployment of FreeBSD & PC-BSD systems

Disks, Filesystems 1

The LILO Configuration Handbook. Virgil J. Nisly

INSTALLATION RUNBOOK FOR Triliodata + TrilioVault

Travis Cardwell Technical Meeting

Testing an Open Source installation and server provisioning tool for the INFN CNAF Tier1 Storage system

Quick Start Guide for Intel FPGA Development Tools on the Microsoft* Azure* Platform

UDS Enterprise Preparing Templates Xubuntu NX * + UDS Actor

Setting-up WAN Emulation using WAN-Bridge Live-CD v1.10

Resiliency Replication Appliance Installation Guide Version 7.2

Installing Prime Optical

WLM1200-RMTS User s Guide

Cluster-NFS: Simplifying Linux Clusters

ELASTIX HIGH AVAILABILITY (HA) MODULE

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM

Requirements for ALEPH 500 Installation

Manual Install Ubuntu Server From Usb Drive

Quick Start Guide to Compute Canada Cloud Service

PR2 System Administration. ROS + PR2 Training Workshop

Manually Mount Usb Flash Drive Ubuntu Server 12.04

Installation and Setup Guide

Z-Stack Linux Gateway Quick Start Guide Version 1.0

Setting Up U P D AT E D 1 / 3 / 1 6

Linux Manually Mounting External Hard Drive Mac Terminal

D-TACQ 2G Programmer's Guide

V Workstation Imaging

January 28 29, 2014San Jose. Engineering Workshop

Transcription:

Variation on AFS as root filesystem wgehrke@dia.uniroma3.it http://www.dia.uniroma3.it/~wgehrke/ Wolfgang Gehrke DIA Univ. Roma Tre Dipartimento di Informatica e Automazione Università degli Studi Roma Tre Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 1 / 13

Outline 1 Problem 2 Idea 3 Implementation 4 Outlook Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 2 / 13

Problem Problem statement Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 3 / 13

Problem Problem statement setup laboratories ca. 100 clients = 50 + 40 + 10 Linux (Debian, Ubuntu) installation on local HDs activation of auto updates some clients out of sync exposure to local tampering Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 3 / 13

Problem Problem statement setup laboratories ca. 100 clients = 50 + 40 + 10 Linux (Debian, Ubuntu) installation on local HDs activation of auto updates some clients out of sync exposure to local tampering wish for centralized image plus clean-up on boot Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 3 / 13

Problem Problem statement setup laboratories ca. 100 clients = 50 + 40 + 10 Linux (Debian, Ubuntu) installation on local HDs activation of auto updates some clients out of sync exposure to local tampering wish for centralized image plus clean-up on boot context PXE boot already in use NFS root file system not desirable AFS available for HOMEs yet no redundancy for RW volumes PCs with more than 1GB RAM and 40 GB HD Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 3 / 13

Idea Sketch Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox virtual client HD: root swap test Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox virtual client HD: root swap test 1 AFS Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox PXE 2 guest additions virtual client HD: root swap test 1 AFS Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox PXE 2 guest additions virtual client HD: root swap test 3 1 DHCP + TFTP AFS Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox real client PXE 2 guest additions DHCP + TFTP virtual client HD: root swap test 3 1 AFS HD: root swap Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox real client PXE 2 guest additions virtual client HD: root swap test 3 1 DHCP + TFTP AFS 4 HD: root swap Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Sketch host with VirtualBox real client PXE 2 guest additions virtual client HD: root swap test 3 1 DHCP + TFTP AFS 5 4 HD: root swap Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 4 / 13

Idea Virtualization Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 5 / 13

Idea Virtualization why creation of one virtual master image test host OS independent (Linux, Mac OS X, Windows) image just a simple file snapshots possible several persons can update the image Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 5 / 13

Idea Virtualization why creation of one virtual master image test host OS independent (Linux, Mac OS X, Windows) image just a simple file snapshots possible several persons can update the image software Virtualbox with guest additions Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 5 / 13

Idea Virtualization why creation of one virtual master image test host OS independent (Linux, Mac OS X, Windows) image just a simple file snapshots possible several persons can update the image software Virtualbox with guest additions benefits allows for PXE boot to try resulting kernel and ramdisk partition client s HD accordingly e.g. 1 root + 1 swap + 1 test partition DHCP client as in real installation different virtual network configurations possible Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 5 / 13

Idea PXE boot 1 boot computer with (PXE supporting) network card 2 contact proxy DHCP server for boot server and network settings 3 contact TFTP server for network bootstrap program 4 load NBP into RAM 5 optionally verify check-sum then execute the program 6 Debian Linux uses pxelinux 7 pxelinux: pxelinux.0 and pxelinux.cfg/default 8 Linux kernel over TFTP ca. 1.5MB for Debian 9 initial ramdisk over TFTP ca. 6.0MB for Debian (max. 32MB?) 10 potentially multicast TFTP Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 6 / 13

Idea AFS part 1 no RW replication hence same problem as NFS 2 but RO replication for redundancy 3 allowing just RO from clients adds further security 4 move as much as possible of the system into RO space 5 *.tar or *.tgz for variable parts of the file system 6 AFS in that case is needed early in the boot process 7 client caching reduces network traffic 8 vos release for live upgrades 9 kernel + ramdisk upgrades on TFTP server potentially serving from RW space in AFS Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 7 / 13

Implementation Modifications in initial ramdisk Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 8 / 13

Implementation Modifications in initial ramdisk prepare /afs mount point and kernel module for AFS add all /bin and /sbin contents append all necessary libraries for dependencies copy /usr/bin/fs etc.tar for settings like keytabs or ssh keys Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 8 / 13

Implementation Modifications in initial ramdisk prepare /afs mount point and kernel module for AFS add all /bin and /sbin contents append all necessary libraries for dependencies copy /usr/bin/fs etc.tar for settings like keytabs or ssh keys take care of parsing extra boot parameters activate network and start AFS client with memcache prepare a swap and root partition with symlinks into AFS untar variable space, also /etc from ramdisk move /afs mount to destination before pivot root Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 8 / 13

Implementation Modifications in initial ramdisk prepare /afs mount point and kernel module for AFS add all /bin and /sbin contents append all necessary libraries for dependencies copy /usr/bin/fs etc.tar for settings like keytabs or ssh keys take care of parsing extra boot parameters activate network and start AFS client with memcache prepare a swap and root partition with symlinks into AFS untar variable space, also /etc from ramdisk move /afs mount to destination before pivot root requires at least 1GB RAM and ca. 15MB ramdisk Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 8 / 13

Implementation Boot parameters initrd=initrd.new name of initial ramdisk ramdisk size=128000 enlarge the size reservation ip=dhcp for the network settings root=/afs similar to NFS for setup script afssrc=/afs/dia.uniroma3.it/projects/debian source for file system (bin/ boot/ home.tar lib/ opt/ sbin/ srv/ usr/ var.tar) afsdst=/dev/sda2 root partition swap=/dev/sda3 swap partition cell=dia.uniroma3.it home cell and activation of setuid cache=100000 AFS cache size for memcache Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 9 / 13

Implementation Upgrade procedure Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 10 / 13

Implementation Upgrade procedure scripting with Makefile under root account in virtual client Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 10 / 13

Implementation Upgrade procedure scripting with Makefile under root account in virtual client image in AFS space 1 upgrade master client 2 activate AFS on master client 3 work as root with system:administrators credentials 4 rsync of RO parts and tar of RW parts (no hard links) 5 small corrections are necessary (/lib/udev/devices/ /lib/init/rw/) 6 release the master image volume Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 10 / 13

Implementation Upgrade procedure scripting with Makefile under root account in virtual client image in AFS space kernel and initial ramdisk 1 upgrade master client 2 activate AFS on master client 3 work as root with system:administrators credentials 4 rsync of RO parts and tar of RW parts (no hard links) 5 small corrections are necessary (/lib/udev/devices/ /lib/init/rw/) 6 release the master image volume 1 dist-upgrade master client 2 copy new kernel to TFTP server 3 create new ramdisk with modifications 4 copy new ramdisk to TFTP server Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 10 / 13

Implementation Benefits of this setting master client as image file within virtualization resulting setup can be tested in the virtual environment rc.local can provide customization based on hostname all essential parts are provided from redundant RO space in AFS security relevant parts are coded into initial ramdisk Linux kernel remains unchanged upgrades can be pushed with running clients logging is centralized with rsyslogd over TCP central logserver with MySQL backend users can activate further services with sudo as necessary using local space below /var (deploy /etc/sudoers) Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 11 / 13

Outlook How does it work so far? tests done with Debian Linux 5.0 i386 Ubuntu 10.04 different because of new start procedure for services 10 clients work reliably booting in ca. 3 minutes (10/100 network) laboratory with 50 clients needs reconfiguration of network hardware image file for master client on a Mac mini running Mac OS X server image can be mounted over Kerberized NFS from two Mac OS X clients VirtualBox used with Mac OS X as host operating system for Debian different runlevels can be prepared specialized rc.local can activate a kiosk mode Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 12 / 13

Outlook What next? extend this approach to Linux servers requires special treatment of persistent RW part of the file system possible solution could be GlusterFS over dedicated network Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 13 / 13

Outlook What next? extend this approach to Linux servers requires special treatment of persistent RW part of the file system possible solution could be GlusterFS over dedicated network look into alternatives for client push changing parts of file system into RO, too unionfs like in KNOPPIX could be applied Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 13 / 13

Outlook What next? extend this approach to Linux servers requires special treatment of persistent RW part of the file system possible solution could be GlusterFS over dedicated network look into alternatives for client push changing parts of file system into RO, too unionfs like in KNOPPIX could be applied reflect to support other client OS Linux can make use of just a single image but not Windows (SID?) could also a virtualization layer fit into the initial ramdisk? this goes in the direction of desktop virtualization Wolfgang Gehrke (DIA Univ. Roma Tre) Variation on AFS as root filesystem Plzeň, September 15, 2010 13 / 13