Server Consolidation with Xen Farming

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

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

Filesystem Hierarchy and Permissions

Filesystem Hierarchy and Permissions

File System Hierarchy Standard (FHS)

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Thousands of Linux Installations (and only one administrator)

CREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================

PowerVM Lx86 for x86 Linux Applications Administration Guide

Variation on AFS as root filesystem

The Linux IPL Procedure

Filesystem Hierarchy Operating systems I800 Edmund Laugasson

Linux Files and the File System

Variation on AFS as root filesystem

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

Course 55187B Linux System Administration

Essential Unix and Linux! Perl for Bioinformatics, ! F. Pineda

If you don't care about how it works but you just would like that it works read here. Other wise jump to the next chapter.

Exam LFCS/Course 55187B Linux System Administration

Getting Started with Linux

Embedded lightweight unix

Embedded System Design

Parallel Panther Beowulf Cluster

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

Using grub to Boot various Operating Systems

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

Saving Your Bacon Recovering From Common Linux Startup Failures

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

HOW TO CLONE A LARGE NUMBER OF PCs

RHCE BOOT CAMP. The Boot Process. Wednesday, November 28, 12

A Simple File Development System for the GESBC Paul H. Muller - Documatrix

Chapter 6. Linux File System

Virtual Data Center (vdc) Manual

Unix System Architecture, File System, and Shell Commands

Lecture 2: The file system

Linux Installation Planning

Root over NFS on User Mode Linux

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM

Adding SD card to WRT54GL

arxiv:cs/ v2 [cs.os] 9 Jan 2005

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

Filesystem Sharing. Velocity Software Inc. 196-D Castro Street Mountain View CA

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

Disks, Filesystems 1

CSE 265: System and Network Administration

CSE 265: System and Network Administration

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

Creating a low end server for SOHO.

Software Upgrade. Selecting a Cisco IOS Image. Upgrading the Cisco IOS image

Thin-OSCAR : Design and future implementation

1 The Linux MTD, YAFFS Howto

Caja File Manager. Desktop User Guide

Computer System Management - Unix/Linux

Linux Diskless iscsi Boot HowTo ( V1.0)

Preview. COSC350 System Software, Fall

The kernel constitutes the core part of the Linux operating system. Kernel duties:

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

INTRODUCTION TO LINUX

PL-I Assignment Broup B-Ass 5 BIOS & UEFI

Disks, Filesystems, Booting Todd Kelley CST8177 Todd Kelley 1

CST8177 Linux II. Linux Boot Process

File System. Preview. File Name. File Structure. File Types. File Structure. Three essential requirements for long term information storage

LPIC 102. be familiar with standard runlevels in a Linux system

Downloaded from: justpaste.it/o09s

Installing the Product Software

Introduction to SUSE Linux Enterprise Server

CS197U: A Hands on Introduction to Unix

Unit 8 System storage overview

openqrm Technical Overview

Installing Prime Optical

Raspberry Pi Network Boot

Operating System. Hanyang University. Hyunmin Yoon Operating System Hanyang University

First Steps. esom/sk4 esom/3517 Embedded Linux Starter Kit

h/w m/c Kernel shell Application s/w user

Question No: 1 In capacity planning exercises, which tools assist in listing and identifying processes of interest? (Choose TWO correct answers.

minit Felix von Leitner September 2004 minit

How to Restrict a Login Shell Using Linux Namespaces

TS-7350 Single Board Computer Documentation

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

System Administration for Beginners

Alpine Linux Documentation

Chapter 4 File system management. Chapter 4 File system management

Introduction to Red Hat Linux I: Easy Reference Index Page

Overview of the UNIX File System

Back Up (And Restore) LVM Partitions With LVM Snapshots

CIS 191A Final Exam. Fall CIS 191 Final Exam

Introduction to Linux. Roman Cheplyaka

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

Hardening The Linux Kernel With Grsecurity (Debian)

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

File Systems. Information Server 1. Content. Motivation. Motivation. File Systems. File Systems. Files

Herding Clones. Mike Kershaw August 17, urmk/

Outline. Cgroup hierarchies

Choose which option will be best for you, installing Fedora alone or alongside another operating system.

S3C6410-TFAUbuntu Easy Guide

Computer Center, CS, NCTU. Outline. Backup devices and media Backup philosophy Unix backup and archiving commands

MA 511: Computer Programming Lecture 23 Partha Sarathi Mandal

Installation of Fedora 12 with CD

The RAMDISK Storage Accelerator

Transcription:

with Gesellschaft für wissenschaftliche Datenverarbeitung mbh Göttingen Am Fassberg, 37077 Göttingen ulrich.schwardmann@gwdg.de Linux Kongress 2008, 9.10.2008

1 2 3 4 5 6 7 8 9 Content

should be more than just virtualization, it should be an advantage for the administrator separation of operating system and application administration tradeoff between centralization and flexibility in a xen farm

The The Xen s Viewpoint From the servers point of view, a xen farm is just a couple of xen clients. The clients reside in a special network structure The clients external network connections is bridged by the xen server. The clients use an internal network: to mount a special NFS share and for administration tasks, executed from the xen server:

The Overview and network structure Xen Clients external network 0 external network 1 external network 2 local disk local disk local disk Xen internal network 0 rsync from loopback device R/O NFS Share local disk Xen Master internal network 1 (masq.)

The Clients Viewpoint The xen clients are the main worker in this concept A client is a usual xen machine, but without write access to mayor parts of its installation. It imports these parts instead by mounting a readonly file system via its internal network connections. During updates of this readonly part the changes from outside have to be transparent to the operating system inside the client. This necessitates the use of some shared/network file system.

The Masters Viewpoint The xen master is the origin of the whole installation and all updates in this installation. It has to be alive only during its installation and update processes, otherwise only its file system has to be seen by the clients. One way could have been to export the masters root file system to the clients directly, for safety and security reasons update and file service was completely seperated, therefore the master is started only for installation and updates.

Files System: writeable and readonly parts Executables, libraries, static data etc. can be hold in a readonly region. Files, that have to be writeable: all files that are changed by the operating system during lifetime all configuration files must be configurable by the administrator home directories temporary directories mount points directories for application data typical: 4.5 GB in the readonly area and about 150 MB in the writeable area

Files System: writeable and readonly parts /bin /home /lib /lib64 /opt /sbin /usr /etc/apache2 /etc/php5 /var/x11r6 /var/cache /var/games /var/mail /var/opt /var/yp /etc /var /var/lib /boot /dev /local /proc /root /srv /sys /tmp /media /mnt /mroot readonly /var/lib/yast2 /var/lib/rpm /var/lib/zmd /var/lib/zypp writeable

of Diskless Clients (DXS) DXS have no disk at all, they get their files from an NFS server. DXS are developed to administrate a greater amount of computers, mainly used as X server (D.v.Suchodoletz) advantage: the processes use the local hardware DXS get the complete network configuration, kernel, initial ram disk and file system via TFTP boot from the server. for xen farming only parts of the file system must be imported problem: how gets the kernel access to the remote nfs share during its boot process.

applied to Clients Client has special boot option for internal network config. This is read by the init process of the initial ram disk It contains the ip-address, the NFS server, the gateway and the broadcast setting of this client. The init process can set up a network interface according to these settings. Init starts the portmapper, loads the appropriate drivers for the nfs mount and mounts the readonly file system from the NFS server. The mount point of the readonly file system has to be moved to the correct place before: initrd-init starts /sbin/init, out of the NFS share. Everything continues as with a usual OS init A debug function can be implemented into the initrd, that starts a shell before starting /sbin/init

The relevant lines in init of initrd mount -o remount,$fsoptions $rootdev /root /bin/mount --move /mroot /root/mroot /bin/mount --move /dev /root/dev cd /root umount /proc umount /sys # Export root fs information ROOTFS BLKDEV= $rootdev export ROOTFS BLKDEV exec /bin/run-init -c./dev/console /root \\ $init $init args $runlevel

of the Master and the NFS Share An update of the xen farm has its origin in an update of the master. After starting the master a usual update process is performed. In the case of a kernel update, the old /lib/modules files are saved (see below). The master is shutted down afterwards. The virtual disk of the xen master is loopback mounted. The xen server synchronizes the nfs share from there. This updates all files in the readonly part of the clients file. The properties of NFS ensures a transparent change of files for the clients processes.

initial ramdisk: of initial ram disk and kernel modules Each new kernel comes with a new initrd In this environment we need to modify the init file inside the new initial ram disk. Therefore the new initrd is unpacked, the init file is modified (exchanged), the initrd is packed again and copied to the correct place in the NFS share. kernel modules: the kernel modules of the old kernel version, that still runs on the clients, is still available therefore a reboot, which is in the application administrators responsibility, can be postponed.

of the xen clients writeable part The update is performed on the clients itself by synchronizing with the NFS share. In principle all the updates on the master should be available on the clients too. Therefore there has to be some synchronizing mechanism for all files in the writeable part But there are changes on files done by the application administrators, that should not be overwritten by this procedure Usually update mechanisms have policies, that do not overwrite critical configuration files. But this does not work here, because the update is done on the master, where no changes in the configuration is performed. Necessary: a special update policy for this part of the file system

after Update general aspects An installation or update of the system introduces new files and replaces old files. a conflict can occur there, where a new file of an update or installation has the same name of a file, that is introduced or changed by an administrator. Since all files in the readonly part of the file system can t be changed by the administrator, the change of these files is controlled by the usual update mechanisms. Therefore only those files, that are in the writeable file system, can have a conflict.

after Update these conflictable files are therefore exactly those files, that are in the writeable part that differ from the corresponding files before update or do not exist in the masters file system before update and that are written by the installation or update one has to compare therefore all files in the writeable part of the client with the corresponding files on the master file system all files that differ and all additional files in the writeable part of the client indicate a conflict these files are left untouched in our model, the new version is copied as corresponding file with extension.xennew beside these files. we decided to use MD5-sum as an indicator for changement.

The of the Xen Farm done by a couple of simple shell scripts, and a configuration skript, that holds all variables used. These scripts are used to: create and update the master, create and update the clients, or create and update the nfs share, get access to the clients from the xen server, find out there properties communicate to the clients administrators

external network 0 external network 1 external network 2 Xen Clients local disk local disk local disk Xen internal network 0 rsync from loopback device R/O NFS Share local disk Xen Master internal network 1 (masq.)

update of writeable fs-part is not really consistent at the moment some scripts are still missing proceed from proof of concept stage to an open project include other distributions (than SLES10) integration into virt-manager would be nice

Thanks to the other people working in this project: Tim Ehlers, GWDG Christian Boehme, GWDG and Thanks for Your Attention!! Questions??