LINUX OS FUNDAMENTALS FOR THE SQL ADMIN

Similar documents
Linux OS Fundamentals for the SQL Admin. Anthony E. Nocentino

Linux OS Fundamentals for the SQL Admin. Anthony E. Nocentino

Linux OS Fundamentals for the Windows Admin

Monitoring Linux Performance for the SQL Server Admin. Anthony Nocentino, Enterprise Architect, Centino Systems

I Needed to Install 80 SQL Servers Fast. Here s How I Did It! Anthony E. Nocentino

Community Enterprise Operating System (CentOS 7) Courses

Monitoring Linux Performance for the SQL Server Admin. Anthony E. Nocentino, Enterprise Architect, Centino Systems

Perl and R Scripting for Biologists

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

LINUX FUNDAMENTALS. Supported Distributions: Red Hat Enterprise Linux 6 SUSE Linux Enterprise 11 Ubuntu LTS. Recommended Class Length: 5 days

client X11 Linux workstation

Unix Shells and Other Basic Concepts

Prerequisites: Students should be comfortable with computers. No familiarity with Linux or other Unix operating systems is required.

Prerequisites: Students must be proficient in general computing skills but not necessarily experienced with Linux or Unix. Supported Distributions:

Introduction: What is Unix?

CompTIA Linux Course Overview. Prerequisites/Audience. Course Outline. Exam Code: XK0-002 Course Length: 5 Days

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

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

Review of Fundamentals

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions:

Linux for Beginners. Windows users should download putty or bitvise:

IBM AIX Operating System Courses

CSCI 2132 Software Development. Lecture 3: Unix Shells and Other Basic Concepts

Part I. UNIX Workshop Series: Quick-Start

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

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Processes. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms:

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview

1Z Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Unix/Linux: History and Philosophy

Introduction. Let s start with the first set of slides

Command-line interpreters

Linux Fundamentals (L-120)

Oracle Linux 7: System Administration Ed 1

Ftp Command Line Manual Windows Username Password Linux

Oracle Linux 7: System Administration Ed 2 Duration: 5 Days

Performance Monitoring Always On Availability Groups. Anthony E. Nocentino

Chapter 1 - Introduction. September 8, 2016

Unix Processes. What is a Process?

RedHat Certified Engineer

Linux Systems Administration Getting Started with Linux

Unzip command in unix

Linux Command Line Primer. By: Scott Marshall

Introduction to remote command line Linux. Research Computing Team University of Birmingham

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

Oracle Linux 7: System Administration Ed 1

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview

Drupal Command Line Instructions Windows 7 List All Users >>>CLICK HERE<<<

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

Basic Linux Command Line Interface Guide

LINUX FUNDAMENTALS (5 Day)

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1

Basic Linux Command Line Interface Guide

CST Algonquin College 2

CSC209H Lecture 1. Dan Zingaro. January 7, 2015

Introduction To Linux. Rob Thomas - ACRC

Linux Essentials Objectives Topics:

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

The student will have the essential skills needed to be proficient at the Unix or Linux command line.

RHCSA Rapid Track Course (RH199)

Oracle Linux 7: System Administration Ed 1 LVC

Introduction to the shell Part II

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Introduction to Linux

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

Introduction to Linux

Unix. Examples: OS X and Ubuntu

EECS2301. Lab 1 Winter 2016

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Introduction to Linux

Filesystem and common commands

CSE 390a Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors

RH033 Red Hat Linux Essentials

Network Monitoring & Management. A few Linux basics

Presented By: Gregory M. Kurtzer HPC Systems Architect Lawrence Berkeley National Laboratory CONTAINERS IN HPC WITH SINGULARITY

Unix basics exercise MBV-INFX410

Chapter 9. Shell and Kernel

5/20/2007. Touring Essential Programs

DATA 301 Introduction to Data Analytics Command Line. Dr. Ramon Lawrence University of British Columbia Okanagan

Why learn the Command Line? The command line is the text interface to the computer. DATA 301 Introduction to Data Analytics Command Line

Lab 2: Linux/Unix shell

Introduction to Linux

Oracle Linux 7: System Administration Ed 2 NE

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

SBGrid RELION Workshop 2017

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

UNIX Essentials Featuring Solaris 10 Op System

Introduction to Linux Workshop 1

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

INF322 Operating Systems

Introduction to Linux. Fundamentals of Computer Science

Linux Fundamentals (GL120) U8583S

Unix / Linux Overview

Introduction to Linux Part 1. Anita Orendt and Wim Cardoen Center for High Performance Computing 24 May 2017

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Transcription:

LINUX OS FUNDAMENTALS FOR THE SQL ADMIN Anthony E. Nocentino aen@centinosystems.com

ANTHONY E. NOCENTINO! Consultant and Trainer! Founder and President of Centino Systems! Specialize in system architecture and performance! Masters Computer Science (almost a PhD)! Microsoft MVP - Data Platform - 2017! Friend of Redgate - 2015-2017! email: aen@centinosystems.com! Twitter: @nocentino! Blog: www.centinosystems.com/blog! Pluralsight Author: www.pluralsight.com

OVERVIEW! Linux Architecture! Interacting With Your Linux System! I/O Redirection and Pipelines! File System Basics! Working With PowerShell on Linux! Working With Packages! Managing Services with systemd! System Resource Management! Getting Help

LINUX ARCHITECTURE Users Interact with the Shell Cause Problems :) User Space Shell Executes Your Commands Your Interface to the Kernel Commands, Editors any User Program Kernel Space Kernel Resource Management and Access Process, Memory and File Systems Hardware Physical Resources CPU, Disk and Memory

INTERACTING WITH YOUR LINUX SYSTEM! Text! Console! SSH - Secure Shell! Terminal (Linux/Mac)! PuTTY (Windows)! Graphically! Desktop Manager! VNC

WHAT IS A SHELL?! User interface Your interface into the kernel! Command line interpreter The command prompt, where you enter commands! Common Shells bourne (sh), bash (bash), C (csh) and many more

EXECUTING COMMANDS command option argument ls -la /home

! Basic bash features BASH S FEATURES Command execution, aliases, variables, environment variables (PATH), tab completion! Advanced bash features Job control, input and output redirection, pipes and scripts

BASH S FEATURES (CON T)! Keyboard Shortcuts (http://bit.ly/2hvlvpw) ctrl+a - move to the start of the line ctrl+e - move to the end of a line ctrl+l - clear the screen ctrl+z - backdrop the currently running task! History Previously executed commands We can execute a command with!n

ACCESS AND PRIVILEGED ACCESS! Linux security is based on user ids! root - UID 0 [root@rhel1 ~]#! # at the command prompt! Try to avoid using root! Regular Name Users! $ at the command prompt [demo@rhel1 ~]$! Switching users! su - switch user, uses that users password! sudo - Allows for users to execute and individual command with escalated privileges. Your password.

Many UNIX programs do quite trivial things in isolation, but, combined with other programs, become general and useful tools Kernighan and Pike

IO REDIRECTION keyboard file fd0 stdin fd1 stdout file terminal fd2 stderr file process

TEXT BASED PIPELINES keyboard fd0 stdin fd1 stdout fd0 stdin fd1 stdout terminal fd2 stderr fd2 stderr ls more process group

I/O REDIRECTION AND PIPES! Redirect standard output - stdout ( > and >> )! Normally directed to the terminal! Useful for redirecting the output of a command to file or another process! Redirect standard input - stdin ( < and << )! Normally input via keyboard! Useful for directing input into a program from a file! Redirect standard error - stderr ( 2> )! Normally output to terminal! Useful for separating error output from standard output and redirect to another location! Using a pipe - ( )! Interprocess communication! Process groups! Internal buffers

THE LINUX FILE SYSTEM! Everything is a file - No really, EVERYTHING!! File system tree! The most common analogy! Filesystem Hierarchy Standard (FHS)! The standard UNIX filesystem layout

WORKING WITH POWERSHELL ON LINUX! Available now in Beta! PowerShell and be used as your default Linux shell - http://bit.ly/2ifokun! Remoting! Uses SSH and WSMan/WinRM but! You can use OpenSSH on Windows systems - http://bit.ly/2jccjdc! It s your choice!

ALIASES IN POWERSHELL ON LINUX! Command aliases depend on your operation system! PowerShell on Windows! Linux/UNIX like commands are alias directly to PowerShell cmdlets! mv - calls Move-Item! PowerShell on Linux or Mac! Does not alias the Linux/UNIX commands! The command is executed natively! mv - calls the native move command! If you re lost, use Get-Alias

DEMO LINUX AND POWERSHELL! Connecting to a system via SSH! Process management! Get-Process! ps! Building command pipelines

RPM PACKAGE MANAGER (RPM)! Package Management System! A package is a collection of programs, scripts and meta data! Suite of management tools! Used to install/upgrade/remove packages! Does not provide dependency management! apt

YUM! Package manager! Dependency management! Software is stored in repositories! Software publishers {RedHat, CentOS}! Third Party {EPEL, RPMForge}! Your own! System wide updates! apt

DEMO! Package management with yum! Install SQL Server on Linux from Microsoft s yum repository

MANAGING SERVICES WITH SYSTEMD! Service Control - systemctl! Verifying Services are Running! Units and Unit Files! Dependencies before/after! Viewing Logs - journalctl

DEMO! systemctl! enable! disable! status! stop! start

SYSTEM RESOURCE MANAGEMENT! CPU! Load average and run queues! Disk! Space and latency, IO waits! Memory! Memory pressure and swapping! Network! Throughput, latency and reliability! SQL Server DMVs

SYSTEM RESOURCE MANAGEMENT! Included with your OS or it s repositories! top! vmstat! free -m! du -chs./dir! df -h! dstat (Monitoring Swiss Army Knife)! sar (system activity reporter)

PERFORMANCE MONITORING System Windows Linux Tool Linux CPU %Processor Time top CPU usage, load average Memory %Committed bytes in use free -m Total, used, free, cache Disk - Space %Free Space df -h Total, used, available, mount Disk - IOs Disk Transfers/sec iostat -dx tps, r/s, w/s Disk - Latency Avg. Disk Sec/Transfer iostat -dx svctm*** Disk - IO Size Avg. Disk Bytes/Transfer iostat -dx avgrq-sz Interface Bytes/Sec ifstat/bwm-ng/nload Packets/sec, bits/sec Check out dstat it will do most of these

GETTING HELP! man pages! Get-Help! Local documentation! /usr/share/doc! Documentation about all of the install packages on your system! Help files! Example and default configuration files

KEY TAKEAWAYS! It s just an operating system, once you get over the syntax and environmental changes! A lot of the concepts are the same! Architecture! I/O redirection and text based pipelines! File system basics! PowerShell on Linux! Packages! systemd! System resource management

ADDITIONAL RESOURCES! Pluralsight! Understanding and Using Essential Tools for Enterprise Linux 7! Installation, command execution, managing files! Using VI, Advanced Shell Topics and Pipelining! LFCE - Advanced Network and System Administration! Managing services, performance monitoring, package management, NFS and Samba! Play by Play: Microsoft Open Source PowerShell and Linux and Mac! Where PowerShell fits in a heterogenous data center! Remoting, Linux management tasks, PowerShell functions and DSC

NEED MORE DATA OR HELP? HTTP://WWW.CENTINOSYSTEMS.COM/BLOG/TALKS/ LINKS TO RESOURCES DEMOS PRESENTATION AEN@CENTINOSYSTEMS.COM @NOCENTINO WWW.CENTINOSYSTEMS.COM SOLVING TOUGH BUSINESS CHALLENGES WITH TECHNICAL INNOVATION

QUESTIONS?

THANK YOU!