GRUB на software raid1 (Загрузка при отказе первого винта)

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

Ale][R
Сообщения: 60
ОС: CentOS

GRUB на software raid1

Сообщение Ale][R »

Собственно вопрос, решил поставить raid1 и соответственно сделать сделать загрузку с любого винта при отказе второго.
Имеем

Код: Выделить всё

kvm01:~# fdisk -l

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          63      506016   fd  Linux raid autodetect
/dev/sda2              64      243201  1953005985   fd  Linux raid autodetect

Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9e5a8d39

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          63      506016   fd  Linux raid autodetect
/dev/sdb2              64      243201  1953005985   fd  Linux raid autodetect

Disk /dev/sdc: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8de697c3

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/dm-0: 7516 MB, 7516192768 bytes
255 heads, 63 sectors/track, 913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 103.0 GB, 103079215104 bytes
255 heads, 63 sectors/track, 12532 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 1884.9 GB, 1884974743552 bytes
255 heads, 63 sectors/track, 229168 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/md0: 518 MB, 518062080 bytes
2 heads, 4 sectors/track, 126480 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 1999.8 GB, 1999878029312 bytes
2 heads, 4 sectors/track, 488251472 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table


Пытаюсь GRUB тоже в зеркало сделать, точнее сделать так, что бы при выходе любого из винтов система все равно грузилась
Сделал

Код: Выделить всё

grub
> find /grub/stage1
find /grub/stage1
(hd0,0)
(hd1,0)
> root (hd0,0)
> setup (hd0)
> root (hd1,0)
> setup (hd1)
> quit

Этого достаточно?
Чуть не забыл. Это все делал для proxmox.....
Спасибо сказали:
Аватара пользователя
AnViar
Сообщения: 182
ОС: Linux, Solaris

Re: GRUB на software raid1

Сообщение AnViar »

Ale][R писал(а):
26.02.2011 20:04
Этого достаточно?

http://wiki.centos.org/HowTos/SoftwareRAID...ble+RAID1%29%29
тут все разжевано
Спасибо сказали: