Saving Real Storage with xip2fs and DCSS. Ihno Krumreich Project Manager for SLES on System z

Similar documents
Best practices with SUSE Linux Enterprise Server Starter System and extentions Ihno Krumreich

How To Make Databases on SUSE Linux Enterprise Server Highly Available Mike Friesenegger

Docker Networking In OpenStack What you need to know now. Fawad Khaliq

Linux and z Systems in the Datacenter Berthold Gunreben

Linux on IBM System z Large Discontiguous Saved Segments (DCSS) Under Linux

SUSE Manager in Large Scale 17220

Novell SLES 10/Xen. Roadmap Presentation. Clyde R. Griffin Manager, Xen Virtualization Novell, Inc. cgriffin at novell.com.

Managing Linux Servers Comparing SUSE Manager and ZENworks Configuration Management

Essentials. Johannes Meixner. about Disaster Recovery (abbreviated DR) with Relax-and-Recover (abbreviated ReaR)

Using Linux Containers as a Virtualization Option

Cloud in a box. Fully automated installation of SUSE Openstack Cloud 5 on Dell VRTX. Lars Everbrand. Software Developer

SUSE Linux Enterprise Kernel Back to the Future

Saving Your Bacon Recovering From Common Linux Startup Failures

Novell Infiniband and XEN

SUSE Manager Roadmap OS Lifecycle Management from the Datacenter to the Cloud

Provisioning with SUSE Enterprise Storage. Nyers Gábor Trainer &

SaltStack and SUSE Systems and Configuration Management that Scales and is Easy to Extend

SUSE OpenStack Cloud. Enabling your SoftwareDefined Data Center. SUSE Expert Days. Nyers Gábor Trainer &

Protect your server with SELinux on SUSE Linux Enterprise Server 11 SP Sander van Vugt

Open Enterprise & Open Community

Build with SUSE Studio, Deploy with SUSE Linux Enterprise Point of Service and Manage with SUSE Manager Case Study

BOV89296 SUSE Best Practices Sharing Expertise, Experience and Knowledge. Christoph Wickert Technical Writer SUSE /

Linux High Availability on IBM z Systems

Secure Authentication

SUSE An introduction...

SUSE Linux Enterprise High Availability Extension

SUSE Manager and Salt

How to use Execute-in-Place Technology with Linux on z/vm March, 2010

Introduction to Software Defined Infrastructure SUSE Linux Enterprise 15

SICOOB. The Second Largest Linux on IBM System z Implementation in the World. Thiago Sobral. Claudio Kitayama

Expert Days SUSE Enterprise Storage

Too Many Metas A high level look at building a metadata desktop. Joe Shaw

Building a Secure and Compliant Cloud Infrastructure. Ben Goodman Principal Strategist, Identity, Compliance and Security Novell, Inc.

Welcome to SUSE Expert Days 2017 Service Delivery with DevOps

Using Crowbar to Deploy Your OpenStack Cloud. Adam Spiers Vincent Untz John H Terpstra

Exploring the High Availability Storage Infrastructure. Tutorial 323 Brainshare Jo De Baer Technology Specialist Novell -

Exploring History with Hawk

Define Your Future with SUSE

Samba HA Cluster on SLES 9

The Art of Squeezing Penguins

A Carrier-Grade Cloud Phone System

Virtualization at Scale in SUSE Linux Enterprise Server

Before We Start... 1

OMEGAMON XE for. z/vm and Linux v4.3.0

Using SAT for solving package dependencies. Michael Schröder Novell, Inc.

From GIT to a custom OS image in a few click OS image made easy

VSP16. Venafi Security Professional 16 Course 04 April 2016

Gaps and Overlaps in Identity Management Solutions OASIS Pre-conference Workshop, EIC 2009

SDS Heterogeneous OS Access. Technical Strategist

The CephFS Gateways Samba and NFS-Ganesha. David Disseldorp Supriti Singh

This Readme describes the NetIQ Access Manager 3.1 SP5 release.

3 Mobility Pack Installation Instructions

Troubleshooting Your SUSE TUT6113. Cloud. Paul Thompson SUSE Technical Consultant. Dirk Müller SUSE OpenStack Engineer

Using the Dump Tools October, 2007

Zdeněk Kubala Senior QA

Novell Open Enterprise Server

RSA Identity Governance and Lifecycle Collector Data Sheet For IBM Tivoli Directory Server

Herding Clones. Mike Kershaw August 17, urmk/

Pushing The Limits Of Linux On ARM

The opensuse project. Motivation, Goals, and Opportunities. Sonja Krause-Harder Michael Löffler. March 6, 2006

Veritas NetBackup and Oracle Cloud Infrastructure Object Storage ORACLE HOW TO GUIDE FEBRUARY 2018

Software Defined. All The Way with OpenStack. T. R. Bosworth Senior Product Manager SUSE OpenStack Cloud

Interoperability Guide

Scaling a Highly Available Global SUSE Manager Deployment at Rackspace to Manage Multiple Linux Platforms

CA MIA Tape Sharing for z/vm

IO110: Open Enterprise Server 2. Hardware you can hit with a hammer, software you can only curse at...

Implementing Avaya Flare Experience for Windows

Installing a Virtual Machine Using an USB External Device

Minosse RDBMS. Antonello Provenzano Deveel Ltd.

Samba and Ceph. Release the Kraken! David Disseldorp

Avaya Call Management System Documentation Roadmap

Installing a Virtual Machine Using an ISO Image

User Guide for Avaya Equinox Add-in for IBM Lotus Notes

Packaging made easy. How the opensuse build service makes building packages easy for developers who don't care about packaging

Installing a Virtual Machine Using an ISO Image

Avaya IP Key Expansion Module (KEM) User Guide. Avaya Business Communications Manager Release 2.0

Installing Service Packs on Avaya Aura Session Manager. Release 1.2 August 2009 Issue 1

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission

DevOps with SUSE: How SUSE Manager, SUSE Studio and SUSE Cloud APIs Facilitate Continuous Software Delivery. Wolfgang Engel.

Unleash the Power of Ceph Across the Data Center

Best Practices Guide Simplifying Filr Deployments with File Reporter and Storage Manager October 5, 2015

Chapter 7. Getting Started with Boot from Volume

Using Manage Alarm Tool

openqa Avoiding Disasters of Biblical Proportions Marita Werner QA Project Manager

openqa making QA interesting since 2013 Ondrej Holecek /aaannz/

Intel 82580EB/82580DB GbE Controller Feature Software Support. LAN Access Division (LAD)

The Linux IPL Procedure

SUSE Linux Enterprise 11

Release Notes for Avaya Proactive Contact 5.0 Agent. Release Notes for Avaya Proactive Contact 5.0 Agent

Novell Data Synchronizer Mobility Pack Overview. Novell. Readme. January 28, 2013

PetaLinux SDK User Guide. Eclipse Plugin Guide

VTrak A-Class Mac OS X or macos SAN Client

Product Release Notes for Avaya Proactive Contact Supervisor

Veritas System Recovery 18 Linux Edition: Quick Installation Guide

z/vm Large Memory Linux on System z

openqa Avoiding Disasters of Biblical Proportions Marita Werner QA Project Manager

Release Notes for Operation Support System Release

Exam : 1Z Title : Enterprise Linux System Administration. Version : DEMO

Let s Exploit DITA: How to automate an App Catalog

Hands-on with Native Linux Containers (LXC) Workbook

Transcription:

Saving Real Storage with xip2fs and DCSS Ihno Krumreich Project Manager for SLES on System z ihno@suse.de

Agenda Overview DCSS What is DCSS? xip2fs What is xip2fs? DCSS How to create? Maintenance Problems Solutions 2

Overview

Prerequisites Several Linux guests of the same Linux distribution running in a single z/vm system. Files / directories that are used by all guests in a readonly way could be identified. 4

Results Creating a DCSS with all those files and use them by the Linux guests gives you the following benefits: Only one physical copy of those files exist for all Linux guests > save virtual/physical memory in z/vm Execution of binary code files is faster 5

DCSS

What is a DCSS? DisContiguous Saved Segment This is a memory segment saved to the z/vm spool area, which can be loaded by a Linux guest. The load address is specified at DCSS creation time. We use it as a read-only memory segment. The upper address limit is 1960MB for 31-bit Linux and 2GB for 64-bit Linux The lower address must be greater than the maximum virtual memory used by the Linux guests. A DCSS must reside below 2GB (z/vm < 5.4) z/vm 5.4: A DCSS can be above 2GB, but any one DCSS is limited to 2GB in size. From Linux, multiple DCSS can be concatenated into one logical unit. 7

Memory Layout with DCSS Linux A mem=yyyk Linux B mem=xxxk DCSS 0k Linux virtual storage Linux virtual storage 0k 8

xip2fs

What is xip2fs? xip2fs is a new file system developed by IBM (execute in place file system) The file system layout is identical to ext2, so all the tools for ext2 can be used. It is a read-only file system, no write functionality Read operations are done by returning the memory address, not by copying the data into buffers or cache. It is part of the upstream kernel code. 10

Executing programs out of a DCSS with xip2fs Linux A Linux B emacs bash emacs user space bash user space bash user space emacs user space 11

Creating a DCSS with xip2fs

Creating a DCSS in xip2fs format Select the directories that should be part of the image The following list names candidates: > Binary programs reachable via PATH variable > Directories listed in /etc/ld.so.conf The following are not candidates: > Directories processes written to > Scripts. They are interpreted instead of being executed directly. Calculate the needed diskspace for the image Issue the command du sk <directory> for each identified directory For each file add 4k for the meta data of the file Add space for future updates (maintenance, additional files) 13

Creating a DCSS in xip2fs format Determine the start and end address of the DCSS startaddress must be greater than or equal to the largest storage size of all linux guests that will use the DCSS. example: two guests, one with 512MB and one with 1GB > startaddress is 1GB (or higher) endaddress is startaddress plus the size of the DCSS. Start and end addresses must be on a 4K page boundary Add mem=<endaddress> to parameter line in /etc/zipl.conf and execute zipl 14

Creating a DCSS in xip2fs format Creating the DCSS in z/vm Shutdown Linux and ipl CMS You need to have CP privilege class E Define the segment with: defseg <name of the DCSS> <first page number> <last page number> sr example: defseg lnxshare 40000 5ffff sr Define the storage of the Linux guest greater than or equal to the endaddress of the DCSS define storage 1536M 15

Creating a DCSS in xip2fs format Save the segment with: saveseg lnxshare Check the success with: query nss map The segment should have an "A" in the "CL" column 01: CP QUERY NSS MAP 01: FILE FILENAME FILETYPE MINSIZE BEGPAG ENDPAG TYPE CL #USERS PARMREGS VMGROUP 01: 0168 LNXSHARE DCSS N/A 40000 5FFFF SR A 00000 N/A N/A 16

Creating a DCSS in xip2fs format Filling the segment with content Before rebooting Linux, set the storage value back to the default value ( #cp define storage 512m) Load the DCSS block device driver with modprobe dcssblk Attach the DCSS segment to Linux with echo lnxshare > /sys/devices/dcssblk/add Make the DCSS writable for this Linux guest echo 0 > /sys/devices/dcssblk/lnxshare/shared Create the file system mke2fs b 4096 /dev/dcssblk0 Mount it mount t ext2 o xip /dev/dcssblk0 /mnt 17

Creating a DCSS in xip2fs format Filling the segment with content (cont.) Copy the directories to the filesystem cp a <list of directories> /mnt Unmount the segment umount /mnt Save the new contents of the DCSS echo 1 > /sys/devices/dcssblk/lnxshare/save Remove the segment from the Linux guest echo lnxshare > /sys/devices/dcssblk/remove 18

Using the created DCSS in a guest For every guest do the following: Add mem=<endaddress of DCSS> to parameter line in /etc/zipl.conf and execute zipl Boot the Linux system Load the driver: modprobe dcssblk Mount the segment: mount t ext2 o ro,xip /dev/dcssblk0 /mnt Bind mount the directories that are in the DCSS: mount bind /mnt/usr/bin /usr/bin 19

Advantages of bind mounts Can be used on files and directories The setup is failsafe. If any of the steps to set up the DCSS for the guest are not successful, the guest is still operational. 20

Maintenance

Maintenance Setting up multiple clients is quite easy. But the real world requires Maintenance 22

Setting up multiple guests with DCSS A "Gold master" is created It contains all RPMs, application needed for all guests It serves as a source for creating the DCSS All clients are created by copying the Gold master and then configuring the client for its particular purpose. This implies that all clients have the same set of RPMs. 23

How to do maintenance? Maintenance for a standard Linux guest: Download the RPM from the vendor site Shutdown services/applications touched by the RPM Apply the RPM Restart services / guest (depending on the RPM) RPM has full write access to the system Pre- and post-install scripts have full write access. 24

Problems applying maintenance to a system using DCSS/xip2fs With DCSS, a part of the system is read-only and cannot get updated like a standard Linux System! Problem of the system: Part of the system is read-only Part of the system is read/write The read-only part exists only once The read/write part has to be updated n-times The read/write part may be modified by the sysadmin 25

Goals for maintaining Linux systems that are using DCSS/xip2fs A new DCSS segment is needed. The read/write part needs to be updated without destroying any sysadmin-modified parts. It must be possible to update the clients at different points in time. 26

Installing maintenance to a system with DCSS/xip2fs The Gold master (GM1) is copied to create a new Gold master (GM2) by applying the update. Run the cmp command on the files of GM1 and GM2 to find out which files have been changed. Call this list GMDIFF Remove from this list all files that are part of the DCSS and call the new list GMDELTA Create the new DCSS and write it to the system. All currently running Linux systems using the old DCSS will not see this update. Only newly started systems will see the new version. 27

Make sure you have enough z/vm spool space, as now two (or more!) copies of the DCSS are stored there. #cp q alloc spool With this list, the new Gold master (GM2) and the new DCSS now every client could be updated. Run the command rpm -Va on the Client (call the client C1). This gives a list of files that have been modified. Call the list C1DIFF. Look which files are in both lists C1DIFF and GMDELTA. These files cause a conflict which has to solved by a person. Files which are in GMDELTA and not in C1DIFF can be copied over from the Gold master to the client. 28

Adjust the conflicting files. Logoff/logon the Client (to get the new DCSS) Boot the client and... done. Repeat the above steps for each client. 29

Useful Links and Documentation

Useful links IBM developerworks http://www-128.ibm.com/developerworks/linux/linux390/octobe r2005_documentation.html Documents CP Command and Utility Reference SC24-6081 How to use Execute-in-Place Technology with Linux on z/vm SC33-8286 31

Thank you for your attention! Additional questions? Now Later or send them to Ihno@suse.de 32

Unpublished Work of Novell, Inc. All Rights Reserved. This work is an unpublished work and contains confidential, proprietary, and trade secret information of Novell, Inc. Access to this work is restricted to Novell employees who have a need to know to perform tasks within the scope of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of Novell, Inc. Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability. General Disclaimer This document is not to be construed as a promise by any participating company to develop, deliver, or market a product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. Novell, Inc. makes no representations or warranties with respect to the contents of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The development, release, and timing of features or functionality described for Novell products remains at the sole discretion of Novell. Further, Novell, Inc. reserves the right to revise this document and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. All Novell marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-party trademarks are the property of their respective owners.