dbiers.me - 1









Search Preview

Create Software RAID1 with mdadm (Part 1) - David Biers

dbiers.me
Walkthrough on creating a simple RAID1 array with two drives using mdadm.
.me > dbiers.me

SEO audit: Content analysis

Language Error! No language localisation is found.
Title Create Software RAID1 with mdadm (Part 1) - David Biers
Text / HTML ratio 28 %
Frame Excellent! The website does not use iFrame solutions.
Flash Excellent! The website does not have any flash contents.
Keywords cloud bytes mdadm RAID1 blocks RAID devmd1 David size = device software Biers Software devsdb devsdc Notes Disk cylinders Line Command
Keywords consistency
Keyword Content Title Description Headings
bytes 12
mdadm 11
RAID1 8
blocks 8
RAID 7
devmd1 6
Headings
H1 H2 H3 H4 H5 H6
1 3 11 4 0 0
Images We found 4 images on this web page.

SEO Keywords (Single)

Keyword Occurrence Density
bytes 12 0.60 %
mdadm 11 0.55 %
RAID1 8 0.40 %
blocks 8 0.40 %
RAID 7 0.35 %
devmd1 6 0.30 %
David 5 0.25 %
size 5 0.25 %
= 5 0.25 %
device 4 0.20 %
software 4 0.20 %
Biers 4 0.20 %
Software 4 0.20 %
devsdb 4 0.20 %
devsdc 4 0.20 %
Notes 4 0.20 %
Disk 4 0.20 %
cylinders 4 0.20 %
Line 4 0.20 %
Command 4 0.20 %

SEO Keywords (Two Word)

Keyword Occurrence Density
512 bytes 8 0.40 %
David Biers 4 0.20 %
to be 4 0.20 %
bytes 512 4 0.20 %
Command Line 4 0.20 %
with mdadm 4 0.20 %
RAID1 with 4 0.20 %
the same 3 0.15 %
need to 3 0.15 %
You can 3 0.15 %
Software RAID1 3 0.15 %
Notes Subscribe 3 0.15 %
Helpful Tricks 3 0.15 %
Configuration Architecture 3 0.15 %
Architecture Security 3 0.15 %
Security Customization 3 0.15 %
Customization Command 3 0.15 %
Line Scripting 3 0.15 %
Scripting Helpful 3 0.15 %
per group 3 0.15 %

SEO Keywords (Three Word)

Keyword Occurrence Density Possible Spam
512 bytes 512 4 0.20 % No
bytes 512 bytes 4 0.20 % No
Configuration Architecture Security 3 0.15 % No
Architecture Security Customization 3 0.15 % No
Security Customization Command 3 0.15 % No
Customization Command Line 3 0.15 % No
Command Line Scripting 3 0.15 % No
Line Scripting Helpful 3 0.15 % No
Scripting Helpful Tricks 3 0.15 % No
Tricks Notes Subscribe 3 0.15 % No
Software RAID1 with 3 0.15 % No
RAID1 with mdadm 3 0.15 % No
Helpful Tricks Notes 3 0.15 % No
512 bytes IO 2 0.10 % No
bytes Sector size 2 0.10 % No
Sector size logicalphysical 2 0.10 % No
size logicalphysical 512 2 0.10 % No
logicalphysical 512 bytes 2 0.10 % No
512 bytes Disk 2 0.10 % No
bytes IO size 2 0.10 % No

SEO Keywords (Four Word)

Keyword Occurrence Density Possible Spam
512 bytes 512 bytes 4 0.20 % No
Scripting Helpful Tricks Notes 3 0.15 % No
Software RAID1 with mdadm 3 0.15 % No
Configuration Architecture Security Customization 3 0.15 % No
Architecture Security Customization Command 3 0.15 % No
Security Customization Command Line 3 0.15 % No
Customization Command Line Scripting 3 0.15 % No
Command Line Scripting Helpful 3 0.15 % No
Line Scripting Helpful Tricks 3 0.15 % No
Helpful Tricks Notes Subscribe 3 0.15 % No
size logicalphysical 512 bytes 2 0.10 % No
Sector size logicalphysical 512 2 0.10 % No
logicalphysical 512 bytes 512 2 0.10 % No
bytes Sector size logicalphysical 2 0.10 % No
8225280 bytes Sector size 2 0.10 % No
= 8225280 bytes Sector 2 0.10 % No
Monitoring Software RAID1 with 2 0.10 % No
size minimumoptimal 512 bytes 2 0.10 % No
bytes 512 bytes IO 2 0.10 % No
512 bytes IO size 2 0.10 % No

Internal links in - dbiers.me

Configuration
Configuration Archives - David Biers
Architecture
Architecture Archives - David Biers
Security
Security Archives - David Biers
Customization
Customization Archives - David Biers
Command Line
Command Line Archives - David Biers
Scripting
Scripting Archives - David Biers
Helpful Tricks
Helpful Tricks Archives - David Biers
Notes
Notes Archives - David Biers
Why does my linux server boot so slow? (systemd)
Why does my linux server boot so slow? (systemd) - David Biers
2
High Availability HA Vyatta VyOS VRRP on ProfitBricks - David Biers
Monitor HDD Temperatures with Collectd, InfluxDB, Grafana – (CentOS 7.x x64)
Monitor HDD Temperatures with Collectd, InfluxDB, Grafana - (CentOS 7.x x64) - David Biers
8
Setup Grafana, InfluxDB, and collectd on CentOS 7.x - David Biers
IPFire Site-to-Site VPN (OpenVPN) with Edgerouter-X EdgeOS / Vyatta
IPFire Site-to-Site VPN (OpenVPN) with Edgerouter-X EdgeOS / Vyatta - David Biers
1
Monitoring Software RAID1 with mdadm - David Biers
1
Create Software RAID1 with mdadm (Part 1) - David Biers
Next Page »
David Biers - Page 2 of 6 - The only one that seems to be having fun.
adding
adding Archives - David Biers
additional software
additional software Archives - David Biers
Bash
Bash Archives - David Biers
chmod
chmod Archives - David Biers
cli
cli Archives - David Biers
collectd
collectd Archives - David Biers
connections
connections Archives - David Biers
corrections
corrections Archives - David Biers
cpanel
cpanel Archives - David Biers
custom repo
custom repo Archives - David Biers
data
data Archives - David Biers
databases
databases Archives - David Biers
escalate
escalate Archives - David Biers
file systems
file systems Archives - David Biers
forwarding
forwarding Archives - David Biers
game
game Archives - David Biers
Games
Games Archives - David Biers
grafana
grafana Archives - David Biers
hack
hack Archives - David Biers
hard drive
hard drive Archives - David Biers
httpd
httpd Archives - David Biers
influxdb
influxdb Archives - David Biers
mdadm
mdadm Archives - David Biers
mysql
mysql Archives - David Biers
networking
networking Archives - David Biers
Notes
Notes Archives - David Biers
owner
owner Archives - David Biers
permissions
permissions Archives - David Biers
raid1
raid1 Archives - David Biers
repositories
repositories Archives - David Biers
root
root Archives - David Biers
rpmforge
rpmforge Archives - David Biers
scan
scan Archives - David Biers
Script
Script Archives - David Biers
security
security Archives - David Biers
software
software Archives - David Biers
ssh
ssh Archives - David Biers
Steam
Steam Archives - David Biers
tricks
tricks Archives - David Biers
vpn
vpn Archives - David Biers
vyatta
vyatta Archives - David Biers

Dbiers.me Spined HTML


Create Software RAID1 with mdadm (Part 1) - David Biers David Biers Configuration Architecture Security Customization Command Line Scripting Helpful Tricks Notes Subscribe Home David Biers The only one that seems to be having fun. Configuration Architecture Security Customization Command Line Scripting Helpful Tricks Notes Subscribe Architecture / Command Line / Configuration 1 Create Software RAID1 with mdadm (Part 1) by David · January 31, 2016 Why? Many variegated situations and scenarios play out in which you would need to come up with a redundant configuration.  Deciding what needs to be redundant should be something washed-up when performing your risk assessment.  Creating a redundant device(s) will help mitigate the risk of losing a particular asset. Why not hardware RAID?  Isn't a software RAID risky? I am not sure if you've been in the same position, but you probably have. "We can't sire that; it's not in the budget." - (Almost) Every CEO ever. To be honest, a hardware RAID vellum would be the weightier scenario but RAID cards also run on their own software that *could* fail.  Not to mention, the RAID vellum itself could moreover goof which is why you would want to / need to buy a few of the same.  At this point, you're when at square one. Software RAID has it's own risks, just like everything else in this world. Creating a RAID1 using mdadm Have your two disks ready: [root@localhost ~]# fdisk -l /dev/sdb /dev/sdc Disk /dev/sdb: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sdc: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 All RAID setups will super-duper prefer that all nonflexible drives and disks are the same make, model, and size.  You want this to be as word-for-word as possible. Create the RAID1 device with mdadm Side note: You *can* partition these if you want surpassing you start but it is not necessary if you are going to be using the unshortened disk. [root@localhost ~]# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdb /dev/sdc mdadm: Note: this variety has metadata at the start and may not be suitable as a marching device. If you plan to store '/boot' on this device please ensure that your boot-loader understands md/v1.x metadata, or use --metadata=0.90 Continue creating array? yes mdadm: Defaulting to version 1.2 metadata mdadm: variety /dev/md1 started. This will create the RAID1 device /dev/md1 using /dev/sdb and /dev/sdc. You can see this in /proc/mdstat where it references the '[raid1]' "personality". You can moreover see that both devices are UP with the two tags of "[2/2]" and "[UU]": [root@localhost ~]# cat /proc/mdstat Personalities : [raid1] md1 : zippy raid1 sdc[1] sdb[0] 8380416 blocks super 1.2 [2/2] [UU] unused devices: Create file system on RAID1 Easiest part ever. Let's just create one in ext4: [root@localhost ~]# mkfs.ext4 /dev/md1 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: LinuxWoodcutsize=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 524288 inodes, 2095104 blocks 104755 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2147483648 64 woodcut groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Writing inode tables: washed-up Creating periodical (32768 blocks): washed-up Writing superblocks and filesystem written information: washed-up This filesystem will be automatically checked every 32 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. Mount it You should once know how to do this! [root@localhost ~]# mkdir /mnt/raid1 [root@localhost ~]# mount /dev/md1 /mnt/raid1/ [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup-lv_root 6.5G 748M 5.5G 12% / tmpfs 246M 0 246M 0% /dev/shm /dev/sda1 477M 30M 422M 7% /boot /dev/md1 7.8G 18M 7.4G 1% /mnt/raid1 Let's move on to monitoring the RAID array. Tags: mdadmraid1software You may moreover like... 3 Using ‘curl’ on page returns 406 Not Acceptable [resolved] March 2, 2013 2 Custom CLI Bash Prompt Colors August 4, 2012 2 High Availability HA Vyatta VyOS VRRP on ProfitBricks May 9, 2016 1 Response Comments0 Pingbacks1 Monitoring Software RAID1 with mdadm - David Biers January 31, 2016 […] you've created your RAID1 with two drives using mdadm.  Now, you need to monitor it. […] Leave a Reply Cancel reply Your email write will not be published. Required fields are marked *Comment Name * Email * Website 6  −   =  5 Follow: Next story Monitoring Software RAID1 with mdadm Previous story OpenVPN DDWRT to IPFire Site-to-Site Find Something? Hosted At.. SpamObstructed110,727 spam obstructed by Akismet Common Tagsadding spare software triggerman Bash chmod cli collectd connections tenancy panels corrections cpanel custom repo data databases escalate file systems Firewall forwarding game Games grafana hack nonflexible momentum httpd influxdb mdadm mysql networking Notes owner permissions plesk raid1 repositories root rpmforge scan Script security software ssh Steam tricks vpn vyatta Configuration Architecture Security Customization Command Line Scripting Helpful Tricks Notes Subscribe David Biers © 2018. All Rights Reserved.