Create Two Virtual Disks: Disk 1 & 2 of Suitable Size As Requied Below

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

Config RAID on lnxsrv2

Target: config the disk and partitions


1. Create two virtual disks: disk 1 & 2 of suitable size as requied below
- Step1: into VM -> add more 2 disks for lnxsrv2

- Step2: everything default config, only change disk size to 10GB

- Step3: Power on lnxsrv2 server


- Step4: #Fdisk -l to show disk, we are have 2 new disk, /dev/sdb and /dev/sdc
- Step5: #Fdisk /dev/sdb
Type : n

Type : p

PARTITION NUMBER# [1]


First cilynder default 1: [Enter]
Last cilynder: [+10GB]

Type : t

Type: fD

Type: w

-Step 6: The same for /dev/sdc

Type : n

Type : p

PARTITION NUMBER# [1]


First cilynder default 1: [Enter]
Last cilynder: [+10GB]

Type : t

Type: fD

Type: w

-Step 7: #Fdisk -L to view /dev/sdb and /dev/sdc

2. From the two virtual disks create a 10GB software RAID 1


- Step1: apt-get install mdadm

- Step2: mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc

- Step3: mdadm --detail /dev/md0

3. Mount it as /data
- Step1: mkfs.ext3 /dev/md0

- Step2: mkdir /data


- Step3: mount /dev/md0 /data
- Step4: df -H /data

You might also like