Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Use a soft Raid play multiple SSD hard drive performance and enhance data security     - Apache POI Excel Document Processing (Linux)

- Linux Task Scheduler (at, crontab) (Linux)

- Use pg_basebackup build PostgreSQL streaming replication environment (Database)

- CentOS 6/7 Series Docker Installation (Linux)

- ActionContext and ServletActionContext Summary (Programming)

- Go Languages Reviews (Programming)

- Ansible module Know (Linux)

- 10 really interesting Linux command (Linux)

- Ubuntu FAQ solutions (Linux)

- Transfer MySQL database to MariaDB (Database)

- Linux account related documents Interpretation (Linux)

- Linux virtual machines to solve end MySQL database can not remote access (Database)

- Modern Objective-C syntax and new features (Programming)

- Oracle 11g R2 RAC RMAN backup script example (Database)

- Android first line of code study notes (Programming)

- Unix system security configuration (Linux)

- Shorewall firewall settings under Ubuntu (Linux)

- Ubuntu 14.04 compile and install Apache (Server)

- How to generate Linux, random password encryption or decryption (Linux)

- How to add two-factor authentication for Linux systems SSH (Linux)

 
         
  Use a soft Raid play multiple SSD hard drive performance and enhance data security
     
  Add Date : 2018-11-21      
         
       
         
  Disk IO bottleneck for many years, with the SSD hard drive technology has become more sophisticated, the cost of gradual decline, more and more companies began to use SSD hard disk on the server.

Ever since last year added to the notebook SSD interface after a mSata improve overall system performance beyond words!

Monolithic SSD performance has been very good, if not Raid the data security can not be guaranteed. But using ordinary Raid card running SSD hard disk, the bottleneck will be pressed against the Raid card. Both to good performance, but also data security, you can choose tall on: PCIE interface solid state drive (SSD) or flash memory card (FlashCard).

There is no one kind of populist options? The answer is soft Raid, such as mdadm v3.2.5 Linux under.

1, soft Raid can play multiple SSD performance, the more the better the performance of the disk (currently only tested up to five discs)

2, Raid0 best performance, but the least secure

3, Raid5 write performance is poor, resulting in mixed read and write performance is drag you down

4, Raid10 the best solution is a comprehensive performance, capacity, data security

Test scripts are as follows:

#! / Bin / bash -x
yum -y install fio mdadm xfsprogs
mkdir -pv / ssd
umount / ssd
mdadm -S / dev / md0
yes | mdadm -C / dev / md0 -a yes -l 0-n 5 - assume-clean / dev / sd {b, c, d, e, f}
mkfs.xfs -f / dev / md0
mount / dev / md0 / ssd
rm -fv /tmp/fio-*.txt
cat / proc / mdstat
mdadm -D / dev / md0
fio --bs = 512 - ioengine = libaio --userspace_reap --time_based --runtime = 600 - group_reporting --buffered = 0 - direct = 1 - randrepeat = 0 - norandommap --ramp_time = 6-- iodepth = 16 - numjobs = 16 - size = 100G - directory = / ssd --name = randread --rw = randread --filename = fio-test.file --output = / tmp / fio-r.txt # random read
fio --bs = 512 - ioengine = libaio --userspace_reap --time_based --runtime = 600 - group_reporting --buffered = 0 - direct = 1 - randrepeat = 0 - norandommap --ramp_time = 6-- iodepth = 16 - numjobs = 16 - size = 100G - directory = / ssd --name = randwrite --rw = randwrite --filename = fio-test.file --output = / tmp / fio-w.txt # random write
fio --bs = 512 - ioengine = libaio --userspace_reap --time_based --runtime = 600 - group_reporting --buffered = 0 - direct = 1 - randrepeat = 0 - norandommap --ramp_time = 6-- iodepth = 16 - numjobs = 16 - size = 100G - directory = / ssd --name = randmixed --rwmixwrite = 20 --rw = randrw --filename = fio-test.file --output = / tmp / fio-m.txt # 8: 2 mixed read-write
grep --color iops /tmp/fio-*.txt
Note that the default soft Raid will not boot automatically load, you need to generate the configuration file manually.

mdadm --verbose --detail --scan> /etc/mdadm.conf
# ARRAY / dev / md0 level = raid0 num-devices = 5 metadata = 1.2 name = ssd.higkoo.org: 0 UUID = 0dfa7417: 13c1622d: 1dca1dfe: 12a0e0f4
# Devices = / dev / sdb, / dev / sdc, / dev / sdd, / dev / sde, / dev / sdf
"/etc/mdadm.conf" Detailed description can view the help or "rpm -ql mdadm | grep" mdadm.conf "" sample file for the reference.

Then write to fstab Raid partition, it can use / dev / md0 or `ls -l / dev / disk / by-uuid` view its uuid. Writes some data, and then restart verification.!
     
         
       
         
  More:      
 
- shell script: a key optimization CentOS system (Linux)
- Linux Security and Optimization (Linux)
- Ubuntu install Eclipse can not find JAVA_HOME problem (Linux)
- Extended use of the swap file swap space on Linux (Linux)
- Installation and Configuration ISC DHCP server on Debian Linux (Server)
- ORA-00911 invalid character error Solution (Database)
- Rails project prepared some tips small experience (Linux)
- A detailed introduction to the Hadoop ecosystem (Server)
- ActiveMQ configuration Getting Started Tutorial (Server)
- CentOS 5.10 installed Oracle 11G R2 (Database)
- Use regular expressions to check whether the input box to enter a URL (Programming)
- Regular expressions in Perl (Programming)
- MySQL in order by inaccurate results in problems and solutions (Database)
- SpringMVC garbage processing (Programming)
- Ordinary users how to use the firewall software (Linux)
- Use C program in JavaScript (Programming)
- Use Observium to monitor your network and servers (Server)
- RHEL / CentOS / Fedora Install Nagios 4.0.1 (Linux)
- Swift used in the application to add a local push at the specified time (Programming)
- Mac Docker deploy development environment (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.