Создать RAID0 на 8tb
Для начала получаем информация по дискам:
[root@dbserver38 ~]# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 121601 976760001 83 Linux
Disk /dev/sdb: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 121601 976760001 83 Linux
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 121601 976760001 83 Linux
Disk /dev/sde: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 160.0 GB, 160000000000 bytes
18 heads, 4 sectors/track, 4340277 cylinders
Units = cylinders of 72 * 512 = 36864 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 * 1 2844 102382 83 Linux
/dev/sdf2 2845 4340277 156147588 8e Linux LVM
Disk /dev/dm-0: 140.9 GB, 140995723264 bytes
255 heads, 63 sectors/track, 17141 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 18.8 GB, 18891145216 bytes
255 heads, 63 sectors/track, 2296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/md0: 3000.6 GB, 3000606523392 bytes
2 heads, 4 sectors/track, 732569952 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
Далее 2 диска по 4 ТБ из которых будет собираться raid0:
[root@dbserver38 ~]# hdparm -i /dev/sdb | grep SerialNo
Model=WDC WD40EFRX-68N32N0 , FwRev=82.00A82, SerialNo= WD-WCC7K6VP84PP[root@dbserver38 ~]# hdparm -i /dev/sde | grep SerialNo
Model=WDC WD40EFRX-68N32N0 , FwRev=82.00A82, SerialNo= WD-WCC7K3ARK3YN
Создаем разделы:
fdisk /dev/sdb
sdb1
sdb2
sde1
sde2
Создаем raid:
mdadm --create --verbose /dev/md1 --level=raid0 --raid-devices=4 /dev/sdb1 /dev/sdb2 /dev/sde1 /dev/sde2
Смотрим инфу по созданному raid:
Форматируем ФС:
mkfs.ext4 /dev/md1
Смотрим инфу по имеющимся raid:
Добавляем инфу по raid в файл mdadm.conf
Создаем точку монтирования:
mkdir /mnt/disk8tb
Добавляем запись в файл /etc/fstab:
Перезапускаем сервер
Комментарии
Отправить комментарий