Chapter 5: Advanced Linux Administration
- The Linux kernel.
- Systemd-udevd.
-
ls /sys/class/net
andip link show
. - The Azure agent for Linux.
- ls
/sys/class/net
andlsblk
. Thelsscsi
command can be helpful as well. - It is a good idea to use RAID0 to improve performance and allow improved throughput compared to using just a single disk.
- 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). - 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