Установка Debian на Linux RAID
Материал из Xgu.ru
- Автор: Chemtech
Выбираем диск. Создаем таблицу разделов, создаем раздел размером 100Мб (тип Linux RAID) для /boot, создаем раздел для корня (тип Linux RAID) (размер вы задаете сами). Если вам нужно отдельно создать раздел для /var/lib/vz, то его можно также по аналогии создать. И создаем раздел SWAP. Ниже представлено в скриншотах пошаговая инструкция по установке Debian на Linux RAID.
Содержание |
[править] fdisk -l
fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0001aad5 Device Boot Start End Blocks Id System /dev/sda1 * 1 13 96256 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sda2 13 620 4882432 fd Linux raid autodetect Partition 2 does not end on cylinder boundary. /dev/sda3 620 38552 304687104 fd Linux raid autodetect /dev/sda4 38552 38914 2904064 82 Linux swap / Solaris Disk /dev/sdc: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000234eb Device Boot Start End Blocks Id System /dev/sdc1 * 1 13 96256 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdc2 13 620 4882432 fd Linux raid autodetect Partition 2 does not end on cylinder boundary. /dev/sdc3 620 38552 304687104 fd Linux raid autodetect /dev/sdc4 38552 38914 2904064 82 Linux swap / Solaris Disk /dev/sdb: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00069386 Device Boot Start End Blocks Id System /dev/sdb1 * 1 13 96256 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdb2 13 620 4882432 fd Linux raid autodetect Partition 2 does not end on cylinder boundary. /dev/sdb3 620 38552 304687104 fd Linux raid autodetect /dev/sdb4 38552 38914 2904064 82 Linux swap / Solaris Disk /dev/sdd: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0002f31c Device Boot Start End Blocks Id System /dev/sdd1 * 1 13 96256 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdd2 13 620 4882432 fd Linux raid autodetect Partition 2 does not end on cylinder boundary. /dev/sdd3 620 38552 304687104 fd Linux raid autodetect /dev/sdd4 38552 38914 2904064 82 Linux swap / Solaris Disk /dev/sde: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000e61be Device Boot Start End Blocks Id System /dev/sde1 * 1 13 96256 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sde2 13 620 4882432 fd Linux raid autodetect Partition 2 does not end on cylinder boundary. /dev/sde3 620 38552 304687104 fd Linux raid autodetect /dev/sde4 38552 38914 2904064 82 Linux swap / Solaris Disk /dev/sdf: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000ae404 Device Boot Start End Blocks Id System /dev/sdf1 * 1 13 96256 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdf2 13 620 4882432 fd Linux raid autodetect Partition 2 does not end on cylinder boundary. /dev/sdf3 620 38552 304687104 fd Linux raid autodetect /dev/sdf4 38552 38914 2904064 82 Linux swap / Solaris Disk /dev/md0: 98 MB, 98553856 bytes 2 heads, 4 sectors/track, 24061 cylinders Units = cylinders of 8 * 512 = 4096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/md0 doesn't contain a valid partition table Disk /dev/md1: 4998 MB, 4998549504 bytes 2 heads, 4 sectors/track, 1220349 cylinders Units = cylinders of 8 * 512 = 4096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/md1 doesn't contain a valid partition table Disk /dev/md2: 624.0 GB, 623996043264 bytes 2 heads, 4 sectors/track, 152342784 cylinders Units = cylinders of 8 * 512 = 4096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 524288 bytes / 1048576 bytes Disk identifier: 0x00000000 Disk /dev/md2 doesn't contain a valid partition table
[править] cat /proc/mdstat
Personalities : [raid1] [raid10] md2 : active raid10 sda3[0] sdc3[4](S) sdf3[5](S) sde3[3] sdd3[2] sdb3[1] 609371136 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU] md1 : active raid1 sda2[0] sdf2[5] sde2[4] sdd2[3] sdc2[2] sdb2[1] 4881396 blocks super 1.2 [6/6] [UUUUUU] md0 : active raid1 sda1[0] sdf1[5] sde1[4] sdd1[3] sdc1[2] sdb1[1] 96244 blocks super 1.2 [6/6] [UUUUUU] unused devices: <none>