Configurare Grub per raid: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
m prove da fare
No edit summary
Line 13: Line 13:


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


grub> setup (hd0)  
device (hd0) /dev/sda
Checking if "/boot/grub/stage1" exists... yes
root (hd0,0)  
Checking if "/boot/grub/stage2" exists... yes
setup (hd0)
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)
device (hd1) /dev/sdb
Filesystem type is ext2fs, partition type 0xfd
root (hd1,0)  
setup (hd1)


grub> setup (hd1)
quit
Checking if "/boot/grub/stage1" exists... yes
</pre>
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
Questa configurazione è stata testata e funziona.
</pre>


'''RICORDARSI SEMPRE DI FARE LE PROVE CON:'''
'''RICORDARSI SEMPRE DI FARE LE PROVE CON:'''
Line 53: Line 36:


== Riferimenti ==
== Riferimenti ==
*[http://www.linuxsa.org.au/mailing-list/2003-07/1270.html LinuxSA Mailing List: GRUB + RAID howto]
* [http://www.debian-administration.org/articles/393 Debian Administration :: Mondo, RAID, Debian Sarge Workaround]
* [http://www.linuxsa.org.au/mailing-list/2003-07/1270.html LinuxSA Mailing List: GRUB + RAID howto]

Revision as of 16:17, 28 August 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:

sudo grub

device (hd0) /dev/sda
root (hd0,0) 
setup (hd0)

device (hd1) /dev/sdb
root (hd1,0) 
setup (hd1)

quit

Questa configurazione è stata testata e funziona.

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