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

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

LINUX OS FUNDAMENTALS FOR THE SQL ADMIN

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

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

Community Enterprise Operating System (CentOS 7) Courses

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

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

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

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

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

IBM AIX Operating System Courses

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

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

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

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Performance Monitoring Always On Availability Groups. Anthony E. Nocentino

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

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

client X11 Linux workstation

RedHat Certified Engineer

Perl and R Scripting for Biologists

Oracle Linux 7: System Administration Ed 1

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

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Ftp Command Line Manual Windows Username Password Linux

Unix. Examples: OS X and Ubuntu

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

Oracle Linux 7: System Administration Ed 1

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

RHCSA Rapid Track Course (RH199)

Introduction to the shell Part II

Oracle Linux 7: System Administration Ed 1 LVC

Linux Command Line Primer. By: Scott Marshall

Introduction to Linux

Review of Fundamentals

Introduction To Linux. Rob Thomas - ACRC

Linux Essentials Objectives Topics:

Introduction to Linux

Part I. UNIX Workshop Series: Quick-Start

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

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Oracle Linux 7: System Administration Ed 2 NE

Unix Shells and Other Basic Concepts

Unix Processes. What is a Process?

CS197U: A Hands on Introduction to Unix

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

Linux Class 2. Debian file system, superuser, editing text files, executing comands in the shell, configuring, installing and uninstalling packages.

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

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

Linux Fundamentals (L-120)

Unzip command in unix

Introduction: What is Unix?

www highskills pt pt

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

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1

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

Name Department/Research Area Have you used the Linux command line?

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

Command-line interpreters

Oracle Linux System AdministrationNEW

Oracle Linux 5 & 6 System Administration TOD

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

Oracle Linux 5 & 6 System Administration

Linux Systems Administration Getting Started with Linux

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

Linux Fundamentals (GL120) U8583S

LINUX FUNDAMENTALS (5 Day)

Introduction. Let s start with the first set of slides

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

1Z Oracle Linux 5 and 6 System Administration Exam Summary Syllabus Questions

Oracle - Oracle Linux 5 6 System Administration Ed 3

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

Red Hat System Administration I - RH124

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1

System Administration

SysadminSG RHCSA Study Guide

INTRODUCTION TO LINUX

Network Monitoring & Management. A few Linux basics

Linux Kung-Fu. James Droste UBNetDef Fall 2016

Chapter 1 - Introduction. September 8, 2016

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

Post Ubuntu Install Exercises

Ubuntu Practice and Configuration Post Installation Exercises interlab at AIT Bangkok, Thailand

"Charting the Course... RHCE Rapid Track Course. Course Summary

INF322 Operating Systems

Introduction to Unix The Windows User perspective. Wes Frisby Kyle Horne Todd Johansen

Linux Software Management. Linux System Administration COMP2018 Summer 2017

Unix/Linux: History and Philosophy

Course Wiki. Today s Topics. Web Resources. Amazon EC2. Linux. Apache PHP. Workflow and Tools. Extensible Networking Platform 1

How to Use This Lab Manual

5/20/2007. Touring Essential Programs

Basic Linux Command Line Interface Guide

CSC209H Lecture 1. Dan Zingaro. January 7, 2015

Lecture 2: The file system

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

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

About Backup and Restore, on page 1 Supported Backup and Restore Procedures, on page 3

Lec 1 add-on: Linux Intro

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 Microsoft MVP - Data Platform - 2017-2018 Linux Foundation Certified Engineer Friend of Redgate - 2015-2018 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 User Space Users Interact with the Shell Cause Problems :) Shell Executes Your Commands Your Interface to the Kernel Commands, Editors any User Program Kernel Space Kernel Resource Management and Access Process, Pages and File Systems Hardware Physical Resources CPU, Memory and Disk

Interacting With Your Linux System Text Console SSH - Secure Shell Terminal (Linux/Mac) PuTTY (Windows) WSL (Bash on Windows) Win32 OpenSSH Graphically Desktop Manager VNC

Access and Privileged Access Linux security is based on user ids root - UID 0 # at the command prompt [root@rhel1 ~]# Try to avoid using root Regular named users $ at the command prompt [demo@rhel1 ~]$ Switching users su - switch user, uses that user s password sudo - Allows for users to execute an 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 terminal file 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! (about monthly releases) Majority of the cmdlets are available to you PowerShell can be used as your default Linux shell - http://bit.ly/2ifokun Remoting Currently relies on SSH WSMan/WinRM remoting exists but

Demo Linux and PowerShell Connecting to a system via SSH Process management ps Get-Process 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, Microsoft} 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 top/htop 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 Disk - IO Size Avg. Disk Sec/ Transfer Avg. Disk Bytes/ Transfer iostat -dx iostat -dx await, svctm*** 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, permissions 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!