Disk Management RAID1
POCEnvironment
in the Linux Added on 2 block of New 30GB HDD Start
650) this.width=650; "title=" Snap410.gif "src=" http://s3.51cto.com/wyfs02/M01/45/FE/ Wkiom1ptkdhislicaacaaqoumpe700.gif "alt=" Wkiom1ptkdhislicaacaaqoumpe700.gif "/>
Cat/etc/redhat-releaseCat
Name:mdadm Relocations: (not relocatable)
version:3.2.5 Vendor:red Hat, Inc.
Release:4.el6 Build Date:fri Dec 12:14:45 AM CST
Install Date:fri 06:07:09 PM CST Build host:x86-003.build.bos.redhat.com
Group:system environment/base Source rpm:mdadm-3.2.5-4.el6.src.rpm
size:860588 license:gplv2+
SIGNATURE:RSA/8, Mon, 10:48:06 PM CST, Key ID 199e2f91fd431d51
Packager:red Hat, Inc. url:http://www.kernel.org/pub/linux/utils/raid/mdadm/
Summary:the Mdadm Program Controls Linux MD devices (software RAID arrays)
Description:
The MDADM program was used to create, manage, and monitor Linux MD (software
RAID) devices. As such, it provides similar functionality to the Raidtools
Package. However, Mdadm is a single program, and it can perform
Almost all functions without a configuration file, though a configuration
File can is used to help with some common tasks.
OperationPartitioning
Fdisk-l
disk/dev/sdb:32.2 GB, 32212254720 bytes
255 heads, Sectors/track, 3916 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
disk/dev/sdc:32.2 GB, 32212254720 bytes
255 heads, Sectors/track, 3916 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000
Create a directory, mount the disc to the directory, and enter SDB HDD
650) this.width=650; "title=" Snap431.gif "src=" http://s3.51cto.com/wyfs02/M00/45/FE/ Wkiom1ptkloi-8beaaa86mqsso4888.gif "alt=" Wkiom1ptkloi-8beaaa86mqsso4888.gif "/>
Enter hard drive create sdb1 View
Fdisk/dev/sdb1
650) this.width=650; "title=" Snap432.gif "src=" http://s3.51cto.com/wyfs02/M02/45/FE/ Wkiom1ptkwkixfcdaaaxukh0uom712.gif "alt=" Wkiom1ptkwkixfcdaaaxukh0uom712.gif "/>
the /DEV/SDC to operate
Fdisk-l/DEV/SDC
disk/dev/sdc:32.2 GB, 32212254720 bytes
255 heads, Sectors/track, 3916 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x8f7a12ed
Device Boot Start End Blocks Id System
/DEV/SDC1 1 3916 31455238+ fd Linux raid AutoDetect
go to mount directory installation rpm Mdadm Package
Cd/mnt/packages
650) this.width=650; "title=" Snap433.gif "src=" http://s3.51cto.com/wyfs02/M00/45/FE/ Wkiom1ptky3akwayaabok9gd1t4456.gif "alt=" Wkiom1ptky3akwayaabok9gd1t4456.gif "/>
EstablishRAID1Volume
make sdb1 SDC1 Array
mdadm-c/dev/md0-l 1-n 2/DEV/SDB1/DEV/SDC1
650) this.width=650; "title=" Snap434.gif "src=" http://s3.51cto.com/wyfs02/M01/46/00/ Wkiol1ptlgbhwtdoaabjvrbpnz4422.gif "alt=" Wkiol1ptlgbhwtdoaabjvrbpnz4422.gif "/>
Enter to see if the build was successful
Cat/proc/mdstart
650) this.width=650; "title=" Snap435.gif "src=" http://s3.51cto.com/wyfs02/M01/46/00/wKioL1PtlIWiwi2KAAA_ 53y9vnu595.gif "alt=" Wkiol1ptliwiwi2kaaa_53y9vnu595.gif "/>
Creating a file system
Format the disk array
Mkfs.ext4/dev/md0
650) this.width=650; "title=" Snap436.gif "src=" http://s3.51cto.com/wyfs02/M02/46/00/ Wkiol1ptlojtsya1aabymna0owc154.gif "alt=" Wkiol1ptlojtsya1aabymna0owc154.gif "/>
Create a directory DATA
Mkdir/mnt/data
650) this.width=650; "title=" Snap437.gif "src=" http://s3.51cto.com/wyfs02/M02/45/FF/wKiom1Ptk-eT6zPGAAA7vT_ C3jk864.gif "alt=" Wkiom1ptk-et6zpgaaa7vt_c3jk864.gif "/>
will be md0 Mount to Data under
Mount/dev/md0/mnt/data
650) this.width=650; "title=" Snap438.gif "src=" http://s3.51cto.com/wyfs02/M02/46/00/ Wkiol1ptlr6j6kvdaabn9be1vme871.gif "alt=" Wkiol1ptlr6j6kvdaabn9be1vme871.gif "/>
in the file Fatab Next Append content
Vi/etc/fstab
/dev/md0/data EXT4 Defaults 0 0
650) this.width=650; "title=" Snap439.gif "src=" http://s3.51cto.com/wyfs02/M02/45/FF/ Wkiom1ptlcjrtv6daabizzl1v9k958.gif "alt=" Wkiom1ptlcjrtv6daabizzl1v9k958.gif "/>
Write a configuration file
Mdadm-ds >>/etc/mdadm.conf
650) this.width=650; "title=" Snap440.gif "src=" http://s3.51cto.com/wyfs02/M02/46/00/wKioL1PtlV3Q_ Fpwaaa6vnpd8zo234.gif "alt=" Wkiol1ptlv3q_fpwaaa6vnpd8zo234.gif "/>
Restart
reboot