Configurare Grub per raid: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
No edit summary
 
m prove da fare
Line 44: Line 44:
grub> quit
grub> quit
</pre>
</pre>
'''RICORDARSI SEMPRE DI FARE LE PROVE CON:'''
* sda con cavo dati STACCATO e sdb funzionante
* sdb con cavo dati STACCATO e sda funzionante
* sda con cavo alimentazione STACCATO e sdb funzionante
* sdb con cavo alimentazione STACCATO e sda funzionante


== Riferimenti ==
== Riferimenti ==
*[http://www.linuxsa.org.au/mailing-list/2003-07/1270.html LinuxSA Mailing List: GRUB + RAID howto]
*[http://www.linuxsa.org.au/mailing-list/2003-07/1270.html LinuxSA Mailing List: GRUB + RAID howto]

Revision as of 15:17, 11 July 2006

Supponendo di aver creato un array /dev/md0 come

cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md1 : active raid1 sda2[0] sdb2[1]
      1269056 blocks [2/2] [UU]

md0 : active raid1 sda1[2] sdb1[1]
      79103936 blocks [2/1] [UU]

Dopo aver installato Grub, lanciare come root ed eseguire:

# grub
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0xfd

grub> setup (hd0) 
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are
embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p
(hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
Done.

grub> root (hd1,0)
 Filesystem type is ext2fs, partition type 0xfd

grub> setup (hd1) 
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd1)"...  16 sectors are
embedded.
succeeded
 Running "install /boot/grub/stage1 (hd1) (hd1)1+16 p
(hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
Done.

grub> quit

RICORDARSI SEMPRE DI FARE LE PROVE CON:

  • sda con cavo dati STACCATO e sdb funzionante
  • sdb con cavo dati STACCATO e sda funzionante
  • sda con cavo alimentazione STACCATO e sdb funzionante
  • sdb con cavo alimentazione STACCATO e sda funzionante

Riferimenti