Find out how to test RAID configuration in Linux


Get real time updates directly on you device, subscribe now.

I must test RAID configuration in Linux. How do you test your present software program RAID configuration in a Linux-based server powered by RHEL/CentOS or Debian/Ubuntu Linux?

Introduction – Linux helps each software program and based mostly RAID gadgets. This web page reveals methods to test software-based RAID gadgets created from two or extra actual block gadgets (onerous drives/partitions).

Find out how to test present RAID configuration in Linux

RAID is an acronym for Redundant Array of Impartial Disks. It’s nothing however mixed single digital system created from disk drives or partitions. Some RAID ranges embrace redundancy and so can survive some extent of system failure. Linux help following RAID gadgets:


Examine RAID configuration in Linux

The /proc/mdstat is a particular file that shops important details about all presently lively RAID gadgets. Kind the next cat command:
cat /and so forth/mdadm.conf
cat /proc/mdstat
Linux check your current RAID configuration
From the above output, it’s clear that I’ve RAID 10 viraul system fabricated from 5 disk partitions as follows:

md125 – RAID system file identifylively raid10 – RAID sortsde3[3] sdb3[2] sdc3[1] sdd3[4] sda3[0] – RAID 10 system named /dev/md125 made of 5 partitions (often known as “element system”)[UUUUU] – Exhibits standing of every system of raid member disk/partition. The “U” means the system is wholesome and up/operating. The “_” means the system is down or broken

Reviewing RAID configuration in Linux

Wish to decide whether or not a particular system is a RAID system or a element system, run:
# mdadm –query /dev/DEVICE
# mdadm –query /dev/md125
# mdadm –query /dev/md12

/dev/md125: 1157.85GiB raid10 5 gadgets, zero spares. Use mdadm –detail for extra element.
/dev/md126: four.98GiB raid10 5 gadgets, zero spares. Use mdadm –detail for extra element.
/dev/md127: 1281.00MiB raid10 5 gadgets, zero spares. Use mdadm –detail for extra element.

Allow us to study a RAID system known as /dev/ in additional particulars, execute the next command:
# mdadm –detail /dev/md125
How to check raid configuration in redhat Linux
Lastly see data about element system named /dev/sdd3, run:
# mdadm –examine /dev/sdd3
Pattern outputs:

Magic : a92b4efc
Model : 1.2
Characteristic Map : 0x1
Array UUID : 4afdd8e1:a827d278:b1613938:cdc0a6ef
Identify : localhost.localdomain:root
Creation Time : Solar Jun 25 19:07:43 2017
Raid Degree : raid10
Raid Gadgets : 5
Avail Dev Measurement : 971276288 (463.14 GiB 497.29 GB)
Array Measurement : 1214095360 (1157.85 GiB 1243.23 GB)
Information Offset : 262144 sectors
Tremendous Offset : eight sectors
Unused Area : earlier than=262056 sectors, after=zero sectors
State : clear
System UUID : b6d9043e:fc1c8b6e:e82f970f:edf597e9
Inside Bitmap : eight sectors from superblock
Replace Time : Sat Dec 15 00:44:25 2018
Dangerous Block Log : 512 entries obtainable at offset 72 sectors
Checksum : 7c314cad – appropriate
Occasions : 21001
Format : close to=2
Chunk Measurement : 512Ok
System Function : Lively system four
Array State : AAAAA (‘A’ == lively, ‘.’ == lacking, ‘R’ == changing)


See my earlier tutorial for more information:

For extra data on Linux RAID system, consult with this web page.

Posted by: Vivek Gite

The creator is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a coach for the Linux working system/Unix shell scripting. Get the newest tutorials on SysAdmin, Linux/Unix and open supply matters through RSS/XML feed or weekly electronic mail e-newsletter.

Source link

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More