ext4 with LVM and RAID5 (3 disks)
Single LVM on top of a 3 disk RAID5 array, formatted as ext4
Download VMDK (zipped)
https://files.iblue.team/279b6e00-851e/2GB-ext4-raid5/LINUX-MINT-8.vmdk.7z https://files.iblue.team/279b6e00-851e/2GB-ext4-raid5/LINUX-MINT-7.vmdk.7z https://files.iblue.team/279b6e00-851e/2GB-ext4-raid5/LINUX-MINT-6.vmdk.7z
Download RAW (zipped)
https://files.iblue.team/279b6e00-851e/2GB-ext4-raid5/LINUX-MINT-8.vmdk.dd.7z https://files.iblue.team/279b6e00-851e/2GB-ext4-raid5/LINUX-MINT-7.vmdk.dd.7z https://files.iblue.team/279b6e00-851e/2GB-ext4-raid5/LINUX-MINT-6.vmdk.dd.7z
I've created a 3 disk RAID5 array using mdadm/LVM, which contained a few files to demonstrate how data is striped across an array.
How it was created;
Create file of a fixed size, using a unique string/word which is easily identifiable such as 'APPLE'
The 'yes' command will output the string passed to it (APPLE) continually until killed. It's piped into head, and it'll output a file of a size of 1GB which is redirected to apple.txt
$ yes APPLE | head -c 1073741824 > apple.txtDo this 3 more times using banana, carrot, date, eggplant, to produce 5 x 1GB text files.
Create 3 x 2GB volumes, attach to virtual machine.
Unwilling to restart the virtual machine, I probed the SCSI host to detect new disks.
$ for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 2G 0 disk
sdb 8:16 0 80G 0 disk
├─sdb1 8:17 0 1M 0 part
├─sdb2 8:18 0 513M 0 part /boot/efi
└─sdb3 8:19 0 79.5G 0 part /
sdc 8:32 0 2G 0 disk
sdd 8:48 0 2G 0 diskSo we have sda, sdc, and sdd.
Create RAID5 volume using mdadm
Check block device output prior to creating filesystem
Create ext4 filesystem on /dev/md0
Mount volume to /mnt/iblue5 and copy dummy data to it (attempted to copy all 5 x 1GB files, which partially failed due to insufficient space).
Unmount /dev/md0
Last updated