Book Image

Hands-On Linux Administration on Azure

By : Frederik Vos
Book Image

Hands-On Linux Administration on Azure

By: Frederik Vos

Overview of this book

Azure’s market share has increased massively and enterprises are adopting it rapidly, while Linux is a widely-used operating system and has proven to be one of the most popular workloads on Azure. It has thus become crucial for Linux administrators and Microsoft professionals to be well versed with managing Linux workloads in an Azure environment. With this guide, system administrators will be able to deploy, automate, and orchestrate containers in Linux on Azure. The book follows a hands-on approach to help you understand DevOps, monitor Linux workloads on Azure and perform advanced system administration. Complete with systematic explanations of concepts, examples and self-assessment questions, the chapters will give you useful insights into Linux and Azure. You’ll explore some of Linux’s advanced features for managing multiple workloads and learn to deploy virtual machines (VMs) in Azure. Dedicated sections will also guide you with managing and extending Azure VMs’ capabilities and understanding automation and orchestration with Ansible and PowerShell DSC. In later chapters, you’ll cover useful Linux troubleshooting and monitoring techniques that will enable you to maintain your workload on Azure. By the end of this book, you’ll be able to make the most out of Azure’s services to efficiently deploy and manage your Linux workloads.
Table of Contents (14 chapters)

Chapter 5: Advanced Linux Administration

  1. The Linux kernel.
  2. Systemd-udevd.
  3. ls /sys/class/net and ip link show.
  4. The Azure agent for Linux.
  5. ls /sys/class/net and lsblk. The lsscsi command can be helpful as well.
  6. It is a good idea to use RAID0 to improve performance and allow improved throughput compared to using just a single disk.
  7. At the filesystem level using BTRFS or ZFS, or at the block level using Linux Software Raid (mdadm) or LVM (not covered in this chapter).
  8. Create the raid, format it, and make a mount point:
mdadm --create /dev/md127 --level 0 --raid-devices 3 \
/dev/sd{c,d,e}
mkfs.xfs -L myraid /dev/md127

mkdir /mnt/myraid

Create a unit file, /etc/systemd/system/mnt-myraid.mount:

[Unit]
Description = myRaid volume

[Mount]
Where = /mnt/myraid
What = /dev/md127
Type = xfs

[Install]
WantedBy = local-fs.mount

Start and enable it at boot:

systemctl enable --now mnt-myraid.mount...