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 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). - 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...