linux:raid
This is an old revision of the document!
Table of Contents
RAID
Dokumentasi seputar RAID
1. Membuat RAID 1 SDC & SDD
Membuat raid array full size dan berikut ini tahapannya
1.1 Format Hardisk
fdisk /dev/sdc
ikuti opsi ini
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-8910, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-8910, default 8910): ( langsung enter apabila full size )
Kemudian tampilkan hasilnya
Command (m for help): p Disk /dev/sdc: 250.1 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x000923aa Device Boot Start End Blocks Id System /dev/sdc1 1 30401 244196001 83 Linux
Aktifkan partisi sebagai Raid Auto Detect
Command (m for help): t Selected partition 1 Hex code (type L to list codes): fd Changed system type of partition 1 to fd (Linux raid autodetect) Command (m for help): p Disk /dev/sdc: 250.1 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x000923aa Device Boot Start End Blocks Id System /dev/sdc1 1 30401 244196001 fd Linux raid autodetect Partition 1 does not start on physical sector boundary.
Lakukan hal yang sama seperti diatas pada SDD
1.2 Buat RAID Array
Lihat dulu partisi array yang ada pastikan jangan sampai bentrok
cat /proc/mdstat
hasilnya
Personalities : [raid1] md1 : active raid1 sda3[0] sdb3[1] 306880 blocks super 1.1 [2/2] [UU] md0 : active raid1 sda1[0] sdb1[1] 614336 blocks super 1.0 [2/2] [UU] md127 : active (auto-read-only) raid1 sda4[0] sdb4[1] 2826812224 blocks super 1.1 [2/2] [UU] resync=PENDING bitmap: 22/22 pages [88KB], 65536KB chunk md2 : active raid1 sdb2[1] sda2[0] 102334336 blocks super 1.1 [2/2] [UU] bitmap: 1/1 pages [4KB], 65536KB chunk
anda bisa menggunakan misalnya md3 caranya
mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sdc1 /dev/sdd1
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/raid.1455632013.txt.gz · Last modified: by kbadmin