mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

16K
active users

Jan Schaumann

This week, I'm again starting my class where we focus on a lot of practical aspects commonly missing in Computer Science curricula. I'm running the same class as an internal study group at work as "Internet Operations".

The syllabus and all course info is available here:

stevens.netmeister.org/615/

All video lectures are public and available for free on YouTube:

youtube.com/@cs615asa/videos

Follow along! I'll be posting weekly links in this thread throughout the semester.

stevens.netmeister.orgCS615 -- System Administration

System Administration

Week 1, Introduction

We cover all the meta info for the course, how System Administration fits into a Computer Science curriculum, our syllabus, systems used, grading policy etc. (There will be Venn diagrams...)

youtu.be/QJL5cNv9dJs

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 1, The Job of a System Administrator

In this video, we try to show what things SysAdmins may encounter in their day to day routine, ranging from power tools to actual and symbolic duct tape and WD40. With this, we try to sort out just how the job may be defined. It's not that easy, as it turns out...

youtu.be/osIO9CbqHQo

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 1, Core Principles

In this video, we present a few core principles that will guide us throughout the semester, including our three pillars: Scalability, Security, and Simplicity. We'll also get to know a few basic "laws", well known by any System Administrator. If you're wondering what all this has to do with Legos, please tune in...

youtu.be/bfqP6PlS6Og

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 1, History

Exhibiting one of the cardinal virtues of System Administrators — laziness — we're reusing a video from my class to give a whirlwind history tour: Bell Labs, Berkeley & the Unix Wars, USL v. BSDi, the birth of & , the development of GNU & its adoption of , all leading to Unix on your fridge, car, and mobile phone.

youtu.be/3H7SQWTR6Dw

Last semester's thread:
mstdn.social/@jschauma/1130879

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 1, Warming up to EC2

This video should help you get set up for the first homework assignment using the command-line tools to launch our instance. (We'll show you how to automate many of the common steps when working with EC2 in a future video.)

youtu.be/cA_pgRH0IDw

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 1, AWS Aliases

In this video, we demonstrate the use of shell aliases and functions to save ourselves some typing whenever we run commands.

youtu.be/fnWdB20_OoY

To ensure we get a full dual-stack IPv4 / environment, we're also following this guide:
netmeister.org/blog/ec2-ipv6.h

The functions shown in the video make use of the subnet and security group described in the blog post and are available here:
github.com/jschauma/cloud-func

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 2, Storage Models and Disks

This week is all about filesystems and storage. We start with a discussion of conceptual storage models, such as Direct Attached Storage (DAS), Network Attached Storage (NAS), Storage Area Networks (SANs), and Cloud Storage.

youtu.be/w-wfCe7Yb68

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 2, Moving an EBS Volume across OS

As an exercise to reinforce our discussion of storage models and how kind of magical cloud storage is, we show to move an EBS volume from one instance running to one running .

youtu.be/FxzANp8Z1FA

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 2, Devices and Interfaces

In this video, we'll talk a bit about storage devices and their interfaces, including SCSI, ATA, SSD, Fibre Channel, and hinting at storage configurations like JBOD and RAID.

youtu.be/C5PXWFFP31A

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 2, Storage Virtualization

In this video, we cover the concept of storage virtualization -- combining individual disks into larger storage pools and utilizing resources from such a pool. This includes a discussion of RAID and some of the different supported levels as well as Logical Volume Management (by example on ). We also illustrate some of these properties by example of ZFS (on ).

youtu.be/tw-QTAoYU9w

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 2, Physical Disk Structure

In this video, we'll take a quick look at what an old-fashioned spinning-magnetic-platters hard disk drive actually looks like. This will help us understand the underlying addressing schemes such as CHS and LBA as well as what physical aspects affect hard disk performance as well as partitioning requirements.

youtu.be/HqjxRrhspFo

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 2, Partitions

In this video, we'll talk about how to divide a single disk -- physical or virtual -- and how the partitions relate to the physical structure of the disk. We show examples partitioning disks on , , and using the disklabel, fdisk, and format tools.

youtu.be/vmL9ZUh_j2U

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 3, The Boot Process & the MBR

In this video, we discuss the boot process on a high level as well as take a fairly detailed look at the MBR. We'll create a suitable BIOS partition by hand, utilizing the dd(1) command because using fdisk(8) would be just too easy. In the process, we learn a fair bit about the structure of the boot sector.

(I really should do an update of this with UEFI/GPT...)

youtu.be/VHMkg3wlOSM

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 3, Filesystems

In this video, we pretend to be a filesystem, trying to store all our cat photos in a reasonable manner on a raw disk by manually writing bytes to the raw block device. We also show how the tar(1) utility creates output that very much resembles a filesystem format. (There's a reason for that...)

youtu.be/9MWeiuw8WHU

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 3, The Unix Filesystem

In this video, we look at the traditional Filesystem and how that is structured. We use the newfs(8) tool to create such a filesystem (well, an FFS, anyway), and the dumpfs(8) tool to inspect it.

youtu.be/sHEjgCB1UZ0

For a slightly deeper look at the UNIX Filesystem, take a look at this video from my "Advanced in the UNIX Environment" lecture series:

youtu.be/kY4JAXYyByQ

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 3, Files go hier(7)

In this video, we're wrapping up our discussion of file systems and partitions with a look at file types (e.g., directories 📁, fifos ↴↱, character devices ⌨, block devices 💾, sockets 🧦, hard links 🔗, symbolic links →) as well as the file systems mounted by default. We close with a look at the filesystem hierarchy as defined in the hier(7) manual page.

youtu.be/J0ontdqxpUg

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 3, Resizing file systems

Closing out our week of discussing the Dark Arts[1] of file systems, we show how to resize an existing file system on using the resize_ffs(8) tool. We first increase the size of a 512MB partition to 1GB, then shrink it down to 256MB:

youtu.be/9l-g3keN48g

For comparison, we then repeat the same exercise on , using resize2fs(8):

youtu.be/4V15y5Klo9Y

[1] xkcd.com/2531/

System Administration

Week 3, Additional Reading

GUID Partition Table (GPT)
uefi.org/specs/UEFI/2.10/05_GU

The Security War in File Systems: An Empirical Study from A Vulnerability-centric Perspective
dl.acm.org/doi/10.1145/3606020

And to dive a bit deeper into and FFS.

Understanding ext4 Disk Layout:
blogs.oracle.com/linux/post/un

ext4 Data Structures and Algorithms:
kernel.org/doc/html/latest/fil

A Brief History of the BSD Fast Filesystem:
freebsdfoundation.org/wp-conte

System Administration

Week 4, Types of Software

With this video, we begin our topic of "software": what types of software there are, how they fit together, how to install software, and how to manage dependencies. We try to draw a terrible analogy to - what else - cars, and quickly realize that the distinctions between firmware, operating system, system software, add-on software are difficult to make.

youtu.be/48HmSsqOfuE

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

System Administration

Week 4, OS Installation

In this video, we run through the manual installation of onto a virtual machine to illustrate the details of the process from partitioning and mounting the disk, extracting the sets, installing the bootloader, creating device nodes to updating /etc/rc.conf.

We also discuss planning of the OS installation by looking at data classification into shareable/non-shareable and static/variable data.

youtu.be/XRTDMgIpK68

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

@jschauma Just wanted to say thank you for posting and making videos available on YouTube

@joany Right on, appreciate it! :-)

@joany @jschauma also for CS631. What a fantastic resource! Thank you for making and sharing the course materials.

@jschauma
Looks interesting, subscribed to your channel and will follow along!
@jpmens

@jschauma I loved the 9th OSI level 😅, so true yet so underrated

@jschauma

this heinlein quote could also be changed from human to sysadmin and not be far wrong:

“A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.”

@jschauma

I don't know if you have such images, or find them useful, but here is an older SSD, in a chassis and opened.

Newer ones look like this, only there is... less of it.

My photo, do whatever you want-license.

@isotopp Ooh, nice. Definitely will use those for comparison. Thanks!

@janl @jschauma I think this was maybe after you were there jschauma but fun fact we had at one point chef'd out an adapted hier man page to the Etsy dev VMs which included the Etsy specific files modeled after FreeBSD hier

@mrtazz @janl Yeah, must have been after I left, but nice!

@jschauma Really impressive work! Thank you!

I do admire such a serious, detailed, current and, above all, freely available effort to make the profession, well, more professional. ;)

@jschauma Oh, I just discovered your blog. I have now about ten tabs open of some of your articles and can't stop reading.

@jschauma

Would you be kind enough to put these on #Peertube ?
Youtube is really doing its worst to prevent viewing their videos nowadays...