This article will show you how to create RAID 0 (for best performance), or RAID 1 (for fault tolerance) Array on an Azure Linux VM. And will take HB120v3 as example to stripe its 2 local 960GiB NVMe disks.
1. Use lsblk command to find the device names.
In HB120v3, you would see 2 NVMe devices: “nvme0n1″ & “nvme1n1″.
2. Create RAID 0 Array.
# Create a logical RAID 0 device named "NVME_RAID".
# Please change from --level=0 to --level=1" if you would like to create RAID 1 Array
sudo mdadm --create --verbose /dev/md0 --level=0 --name=NVME_RAID --raid-devices=2 /dev/nvme0n1 /dev/nvme1n1
# Create an ext4 file system with label "NVME_RAID"
sudo mkfs.ext4 -L NVME_RAID /dev/md0
# To ensure RAID array is reassembled automatically on boot
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm.conf
# Create a new ramdisk image
sudo dracut -H -f /boot/initramfs-$(uname -r).img $(uname -r)
# Create a mount point
sudo mkdir -p /mnt/raid
# Mount the RAID device
sudo mount LABEL=NVME_RAID /mnt/raid
3. Verify that the 2 NVMe devices have been striped together as an 1.8TiB RAID 0 Array.
# log in to your Azure subscription
$ az login
# mkdir your working environment
$ mkdir airlift
$ cd airlift
# Clone the AzureHPC repo
$ git clone https://github.com/Azure/azurehpc.git
$ cd azurehpc
# Source the install script
$ source install.sh
BLAST can be used to compare different DNA or protein sequences, and can be used to trace the origin of Covid-19, or the genetic similarity between humans and Neanderthals. Running BLAST is usually very time-consuming. This article will guide you how to run BLAST on Azure, optimization process, and best practice.