Linux MDADM RAID using GPT named partitions

This is done on Debian 11 and I will assume no GPT partition table was used, and thus creates one. If GPT is already installed, you can skip the GPT creation step which would destroy all data on your disk. Create GPT partition table When we know our disk (figuring out our disk), we can start fdisk. In this case, I’m editing /dev/sdf. $ sudo fdisk /dev/sdf Welcome to fdisk (util-linux 2....

December 27, 2022 · 4 min · 770 words · Me

Linux RAID Cheat Sheet

Normal RAID situation Check RAID status: # mdadm --detail /dev/md0 Where /dev/md0 is the path to the volume. Example results: /dev/md0: Version : 1.2 Creation Time : Sun Dec 27 00:33:54 2020 Raid Level : raid5 Array Size : 9766912000 (9314.45 GiB 10001.32 GB) Used Dev Size : 1953382400 (1862.89 GiB 2000.26 GB) Raid Devices : 6 Total Devices : 6 Persistence : Superblock is persistent Intent Bitmap : Internal Update Time : Sun Dec 11 17:19:25 2022 State : active Active Devices : 6 Working Devices : 6 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 512K Consistency Policy : bitmap Name : kn0:0 (local to host kn0) UUID : 00000000:00000000:00000000:00000000 Events : 22001356 Number Major Minor RaidDevice State 0 8 48 0 active sync /dev/sdd 7 8 80 1 active sync /dev/sdf 8 8 16 2 active sync /dev/sdb 3 8 0 3 active sync /dev/sda 4 8 32 4 active sync /dev/sdc 6 8 64 5 active sync /dev/sde Check for RAID status:...

December 11, 2022 · 7 min · 1384 words · Me