Use the mdadm command again to verify that ,LINUX RAID 1 array has been created successfully:
[root@rhel1 ~]# mdadm -D /dev/md0 /dev/md0: Version : 1.2 Creation Time : Wed Dec 7 15:50:06 2016 Raid Level : raid1 Array Size : 1044181 (1019.88 MiB 1069.24 MB) Used Dev Size : 1044181 (1019.88 MiB 1069.24 MB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent Update Time : Wed Dec 7 15:50:12 2016 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Name : rhel1.lab.com:0 (local to host rhel1.lab.com) UUID : d5c0f82e:4e0753e6:0b28c178:e6f75af4 Events : 17 Number Major Minor RaidDevice State 0 8 33 0 active sync /dev/sdc1 1 8 49 1 active sync /dev/sdd1 [root@rhel1 ~]#
Now Format the Newly created LINUX RAID 1 device using below command:
[root@rhel1 ~]# mkfs.ext4 /dev/md0 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 65280 inodes, 261045 blocks 13052 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=268435456 8 block groups 32768 blocks per group, 32768 fragments per group 8160 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
Mount Linux RAID 1 device;
[root@rhel1 ~]# mkdir /RAID1 [root@rhel1 ~]# mount /dev/md0 /RAID1 [root@rhel1 ~]# df -h /RAID1 Filesystem Size Used Avail Use% Mounted on /dev/md0 1004M 18M 936M 2% /RAID1 [root@rhel1 ~]#
Leave a Reply