Re: Problema kernel panic durante shutdown o reboot con raid

Alessandro Baggi <[email protected]>
Newsgroups gmane.linux.debian.user.italian
Message-ID <[email protected]>
Buongiorno Marco e grazie per la tua risposta

Il 01/04/25 08:01, Marco Ciampa ha scritto:
> 
> Il resync periodico è mandatorio sul raid (altrimenti gli errori si
> rivelerebbero troppo tardi) per cui mi aspetto che di volta in volta
> venga fatto partire. Dai un occhio a crontab per vedere ogni quanto
> viene fatto partire. Le impostazioni del RAID permettono di metterlo a
> bassa priorità e velocità in modo da non impattare troppo sul sistema.
> Inoltre il RAID software non "capisce" le partizioni quindi deve fare il
> sync di tutto, anche dello spazio vuoto e quindi è abbastanza lento.
> Diverso è se fai delle unità LVM2 in RAID che essendo più "intelligenti"
> fanno il sync sono dello spazio del volume e non dell'intero pool.
> 

Nel crontab di root non c'è nulla.
In /etc/cron.d/mdadm trovo:

# By default, run at 00:57 on every Sunday, but do nothing unless the day of
# the month is less than or equal to 7. Thus, only run on the first 
Sunday of
# each month. crontab(5) sucks, unfortunately, in this regard; therefore 
this
# hack (see #380425).
57 0 * * 0 root if [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) 
-le 7 ]; then /usr/share/mdadm/checkarray --cron --all --idle --quiet; fi

Ma non penso sia questo da quello che dice il commento.

In /etc/cron.daily/mdadm trovo questo:

set -eu

MDADM=/sbin/mdadm
[ -x $MDADM ] || exit 0 # package may be removed but not purged

[ -e /etc/default/mdadm ] && . /etc/default/mdadm
[ $AUTOSCAN = false ] && exit 0

exec $MDADM --monitor --scan --oneshot

Anche qui non sembra lanciare nessun resync (se ho capito bene).
In /etc/(cron.hourly|cron.monthly|cron.weekly|cron.yearly) non ho 
trovato nulla.

In /etc/default/mdadm trovo "AUTOCHECK=True" e il commento dice che fa 
riferimento a /etc/cron.d/mdadm (riportato sopra)

Tra le unità|timer di systemd non sembra esserci nulla al riguardo,
le unità riportate sono queste:

[email protected] 
  static          -
[email protected] 
  static          -
mdadm-shutdown.service 
  enabled         enabled
mdadm-waitidle.service 
  masked          enabled
mdadm.service 
  masked          enabled
[email protected] 
  static          -

ma ispezionando i timer e i service file non mi sembra ci sia qualcosa 
al riguardo. (É possibile che mi sbagli)

Può esserci qualche script che viene lanciato dopo N riavvii?

In quale altra configurazione posso guardare?

Saluti, Alessandro.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.