Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[conf] Problema con raidstart dopo il boot [Risolto (+o-)]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
kender_m
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2004
Posts: 78

PostPosted: Tue Aug 03, 2004 7:19 am    Post subject: [conf] Problema con raidstart dopo il boot [Risolto (+o-)] Reply with quote

Ho alcuni dischi IDE in software RAID ed ho riscontrato questo "curioso" problema: mentre le partizioni in Raid 1 si attivano normalmente dopo un reboot, la partizione in Raid 0 non lo fa (è necessario dare un raidstart a mano)...
posto il mio raidtab, anche se non credo che sia un problema legato a quello...
Code:
# /mnt/backup (RAID 0)
raiddev         /dev/md2
raid-level      0
nr-raid-disks      2
chunk-size      32
persistent-superblock   1
device         /dev/hda7
raid-disk      0
device         /dev/hdc7
raid-disk      1

# /   (RAID 1)
raiddev         /dev/md0
raid-level      1
nr-raid-disks      2
chunk-size      32
persistent-superblock   1
device         /dev/hda5
raid-disk      0
device         /dev/hdc5
raid-disk      1

# /home   (RAID 1)
raiddev         /dev/md1
raid-level      1
nr-raid-disks      2
chunk-size      32
persistent-superblock   1
device         /dev/hda6
raid-disk      0
device         /dev/hdc6
raid-disk      1


L'unica differenza tra le partizioni raid 1 e quella raid 0 è che le raid 1 sono state create all'installazione, seguendo le varie guide, mentre quella in raid 0 è più recente. Un'altro particolare è che mkraid non funzionava per creare /dev/md2 ed ho dovuto creare a mano il blocco in /dev (per inciso è /dev/md/2 come gli altri.. e md2 è un link simbolico)
Idee per non dover dare raidstart dopo ogni reboot? (visto che sto per allontanarmi dal Pc in questione per 3 settimane e non vorrei trovarmi cose strane al mio ritorno...)


Last edited by kender_m on Wed Aug 04, 2004 12:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
unz
l33t
l33t


Joined: 28 Jul 2004
Posts: 819
Location: Roma, Italia

PostPosted: Tue Aug 03, 2004 8:29 am    Post subject: Reply with quote

aggiungilo all'avvio
Quote:
rc-update add raidstart boot

:wink:
_________________
Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/
Back to top
View user's profile Send private message
kender_m
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2004
Posts: 78

PostPosted: Tue Aug 03, 2004 8:56 am    Post subject: Reply with quote

unz wrote:
aggiungilo all'avvio
Quote:
rc-update add raidstart boot

:wink:


8O :?: raidstart mica è un demone...

è un comando che serve ad "attivare" le partizioni in raid.. ma bisogna dargli degli argomenti (tiporaidstart /dev/md2 o raidstart -a etc...)
eppoi se dipendesse da qualche servizio, perché le altre due partizioni raid (1) vengono attivate senza problemi?
stavo pensando adesso, può dipendere dal fatto che le /dev/md0 ed /dev/md1 vengono montate all'avvio mentre su /dev/md2 ho messo noauto nell'fstab? ad ogni modo se provo a montare /dev/md2 prima di aver dato
Code:
 raidstart /dev/md2
dà giustamente il seguente errore
Code:
wrong fs type, bad option, bad superblock on /dev/md2
etc...
Back to top
View user's profile Send private message
unz
l33t
l33t


Joined: 28 Jul 2004
Posts: 819
Location: Roma, Italia

PostPosted: Tue Aug 03, 2004 9:55 pm    Post subject: Reply with quote

Code:
#!/sbin/runscript

depend() {
   need modules
}

start() {
   ebegin "Initializing RAID devices"
   /etc/StartRaid/StartRaid.sh
   eend $? "Error starting RAID devices"
}

stop() {
   ebegin "Removing RAID devices"
   dmsetup remove_all
   eend $? "Failed to remove RAID devices."
}


Code:
#!/bin/sh
raidstart /dev/md2
mount -t  blahblah /dev/md /CartellaCheVuoiTe


e così? potrebbe funzionare? 8O
io la butto là, ma non ho le competenze tecniche per assicurti un risultato ...
_________________
Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/
Back to top
View user's profile Send private message
kender_m
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2004
Posts: 78

PostPosted: Wed Aug 04, 2004 8:00 am    Post subject: Reply with quote

Uhmmm boh...
il tuo script non dovrebbe dare problemi, anche se io avrei voluto capire perché il "disco" in raid 0 non parte da solo.. ad ogni modo prima di passare alla tua soluzione (non per una mancanza di fiducia, ma come tentativo di capire il problema) proverò a togliere il noauto dalla partizione e vedere se così funziona....

grazie cmq :)
Back to top
View user's profile Send private message
kender_m
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2004
Posts: 78

PostPosted: Wed Aug 04, 2004 12:44 pm    Post subject: Reply with quote

Ok... ho tolto il noauto da /dev/md2 nell'fstab e così all'avvio attiva la "partizione" raid 0 e la monta, anche se come soluzione non mi piace molto..

diciamo che è risolto :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum