Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.
-
Upload
samira-barkus -
Category
Documents
-
view
216 -
download
1
Transcript of Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.
![Page 1: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/1.jpg)
Hands-onRAID on Moxa Computer Prepared by: (40min)Date: mm-dd-yyyy
![Page 2: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/2.jpg)
Definition of RAID
Redundant Array of Independent Disks Combine multiple physical disks into one
logical unit so to increase read/write performance or data redundancy.
Is NOT a reliable backup plan
Confidential
![Page 3: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/3.jpg)
RAID levels
Confidential
LevelDescriptio
nMin # of drives**
Space Efficiency
Fault Tolerance
Read Benefit
Write Benefit
Image
RAID 0
Block-level striping without parity or mirroring.
2 1 none nX nX
RAID 1Mirroring without parity or striping.
2 1/n n−1 drives nX 1X
*Extract from http://en.wikipedia.org/wiki/RAID
![Page 4: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/4.jpg)
Hardware RAID
RAID controller card- usually a PCIe expansion card- calculations are done by the controller (no CPU resource is needed)- high price- thermal/power issue
Intel I/O Controller Hub(ICH) - come with the computer but not all ICH supports RAID
- V2616 uses ICH9M-SFF, which supports RAID 0,1
Confidential
![Page 5: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/5.jpg)
Software RAID
Done by OS, no extra hardware is required Uses CPU resource—performance depends
greatly on CPU speed Free tool on Linux: mdadm
Confidential
![Page 6: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/6.jpg)
Using mdadmto configure RAID 0 on V2400 series
Confidential
![Page 7: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/7.jpg)
Install mdadm
the root file system is set to be read-only, change to read-write:
#mount –o remount,rw / use apt-get install command to install mdadm
#apt-get install mdadm
* what is apt? Appendix A
Confidential
![Page 8: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/8.jpg)
Package configuration window will appear, select Ok and click Enter
Confidential
![Page 9: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/9.jpg)
Use the default setting. Select Ok and click Enter
Confidential
![Page 10: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/10.jpg)
Insert USB disks
USB devices will be mounted automatically. You may use the following command can to check the filesystem:
#df –h
Confidential
the usb devices are mounted here
![Page 11: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/11.jpg)
Create RAID device
unmount the USB devices first
#umount /dev/sdb1
#umount /dev/sdc1 create RAID device
#mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc
Confidential
![Page 12: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/12.jpg)
Create RAID device
Check the RAID device:
#mdadm --detail /dev/md0
Confidential
RAID level is 0
![Page 13: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/13.jpg)
Create RAID device
Formate the disk
#mkfs -t ext3 /dev/md0
Confidential
![Page 14: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/14.jpg)
Create RAID device
mount the device somewhere you want
#mkdir /home/raid_disk
#mount /dev/md0 /home/raid_disk use df command to check the filesysytem
again
Confidential
the usb devices became /dev/md0, with the disk size of 15G and is mounted to assigned path
![Page 15: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/15.jpg)
Auto-mount the RAID device
edit /etc/rc.local like below, the script here will be executed after boot.
try reboot the computer with modified and unmodified rc.local and see if /dev/md0 is mounted correctly.
Confidential
add this line
![Page 16: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/16.jpg)
Appendix A: what is apt?
Advanced Packaging tool used on Debian linux distribution to handle installation and removal of software packages.
Important files and commands:
/etc/apt/sources.list : Locations to fetch packages from. If your cannot fetch the package, you may want to check if the sources list is still valid.
apt-get install package_name : install package_name
apt-cache search text : Find package relate to text
Confidential
![Page 17: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/17.jpg)
Configure RAID 0 on V2616
Using Intel Rapid Storage Technology
Confidential
![Page 18: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/18.jpg)
V2616 RAID Function Configuration
The V2616 computers have two storage trays that allow users to install two 2.5-inch SATA hard disks, and support RAID 0 and RAID 1 functions for data backup and recovery.
Before using the RAID functions, you need to install two SATA hard disks with the same capacity in the V2616 computer.
![Page 19: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/19.jpg)
1. Check disk management, right-click on the two disks to initialize.
Configuring RAID 0 Function
![Page 20: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/20.jpg)
2. Launch the Intel Rapid Storage Technology program
![Page 21: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/21.jpg)
3. Press Create button, select Optimized disk performance (RAID 0) option, and then click Next.
![Page 22: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/22.jpg)
4. Use the following settings to save the data to another disk.a. Select the disks installed on the computer.b. Specify the volume size by adjusting the scroll bar.c. Determine the data strip size.d. Check Enable volume write-back cache.
a
bc
d
![Page 23: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/23.jpg)
5. Confirm the settings and then click Create Volume.
![Page 24: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/24.jpg)
6. Click OK when volume creation is complete.
![Page 25: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/25.jpg)
7. Check the storage status.
![Page 26: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/26.jpg)
8. Check Disk Management. Right-click on the disk to initialize disk, and then click OK.
![Page 27: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/27.jpg)
9. Right-click on the disk to use New Simple Volume Wizard. Click Next to continue.
![Page 28: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/28.jpg)
10. Enter the partition size in the blank, and then click Next to continue.
![Page 29: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/29.jpg)
11. Select Assign the following drive letter, and then click Next to continue.
![Page 30: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/30.jpg)
12. Select Format this partition with the following settings.a. File system: NTFT.b. Allocation unit size: Default.c. Volume label: New Volume (the default value).d. Check Perform a quick format.
ab
cd
![Page 31: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/31.jpg)
13. Click Finish to close the New Partition Wizard.
![Page 32: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/32.jpg)
14. When finished, you may check the disk status from Disk Management column.
![Page 33: Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.](https://reader031.fdocuments.us/reader031/viewer/2022013003/5517a8b65503460e6e8b5ff0/html5/thumbnails/33.jpg)
15. Check the My Computer.