Book Image

Hands-On Linux Administration on Azure - Second Edition

By : Kamesh Ganesan, Rithin Skaria, Frederik Vos
Book Image

Hands-On Linux Administration on Azure - Second Edition

By: Kamesh Ganesan, Rithin Skaria, Frederik Vos

Overview of this book

Thanks to its flexibility in delivering scalable cloud solutions, Microsoft Azure is a suitable platform for managing all your workloads. You can use it to implement Linux virtual machines and containers, and to create applications in open source languages with open APIs. This Linux administration book first takes you through the fundamentals of Linux and Azure to prepare you for the more advanced Linux features in later chapters. With the help of real-world examples, you’ll learn how to deploy virtual machines (VMs) in Azure, expand their capabilities, and manage them efficiently. You will manage containers and use them to run applications reliably, and in the concluding chapter, you'll explore troubleshooting techniques using a variety of open source tools. By the end of this book, you'll be proficient in administering Linux on Azure and leveraging the tools required for deployment.
Table of Contents (14 chapters)
13
Index

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 B-Tree File System (BTRFS) or the Z File System (ZFS), or at the block level using Linux Software RAID (mdadm) or Logical Volume Manager (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...