# Information smartd étrange

**URL:** <https://www.debian-fr.org/t/information-smartd-etrange/78060>\
**Category:** Support Debian\
**Created:** [Novembre 23, 2018, 7:18 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060 "2018-11-23T07:18:08Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![grandtoubab](https://www.debian-fr.org/user_avatar/www.debian-fr.org/grandtoubab/32/4505_2.png) [@grandtoubab](https://www.debian-fr.org/u/grandtoubab)\
**Post date:** [Novembre 27, 2018, 5:45 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060/21 "2018-11-27T17:45:58Z")

</div>

> [@anon29980398](#):
>
> Oui, bon, la syntaxe utilisée par `cron` n’est pas mal non plus.

trouve ce site qui fait la conversion  
exemple cron toute les 6 heures

> **[Crontab.guru - The cron schedule expression generator](https://crontab.guru/every-6-hours)**
>
> An easy to use editor for crontab schedules.

---

<div class="post-metadata">

**Author:** ![sk4hrr](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/7bcc69/32.png) [@sk4hrr](https://www.debian-fr.org/u/sk4hrr)\
**Post date:** [Novembre 28, 2018, 8:49 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060/22 "2018-11-28T08:49:03Z")

</div>

> [@anon29980398](#):
>
> mais je pense aussi que c’est possible en utilisant [une des fonctionnalités de **`smartd`**](https://wiki.archlinux.org/index.php/S.M.A.R.T.#Schedule_self-tests)

Bon ça me rassure, je n’ai pas fait n’importe quoi.. Du coup je m’en sert comme ça :

```auto
/dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7J9KB700899 -a -d sat -o on -S on -s (S/../.././01|L/../../1/03) -m root -M exec /usr/share/smartmontools/smartd-runner

```

> [@grandtoubab](#):
>
> je préfère poser mon script directement dans cron.weekly

Je comprends mais lorsqu’il y a un truc prévu pour mon besoin, je préfère l’utiliser.

---

<div class="post-metadata">

**Author:** ![grandtoubab](https://www.debian-fr.org/user_avatar/www.debian-fr.org/grandtoubab/32/4505_2.png) [@grandtoubab](https://www.debian-fr.org/u/grandtoubab)\
**Post date:** [Novembre 28, 2018, 9:16 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060/23 "2018-11-28T09:16:42Z")

</div>

> [@sk4hrr](#):
>
> ```auto
> /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7J9KB700899 -a -d sat -o on -S on -s (S/../.././01|L/../../1/03) -m root -M exec /usr/share/smartmontools/smartd-runner
> 
> ```

et donc en français c’est quoi la périodicité avec

```auto

(S/../.././01|L/../../1/03)

```

---

<div class="post-metadata">

**Author:** ![anon29980398](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@anon29980398](https://www.debian-fr.org/u/anon29980398)\
**Post date:** [Novembre 28, 2018, 9:57 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060/24 "2018-11-28T09:57:24Z")

</div>

Bonjour

> [@grandtoubab](#):
>
> …et donc en français c’est quoi la périodicité avec
> 
> ```plaintext
> (S/../.././01|L/../../1/03)
> 
> ```

`T/MM/DD/d/HH`

Un Short Self-Test tous les jours à `01:00`  
et un Long Self-Test tous les lundis à `03:00`

---

<div class="post-metadata">

**Author:** ![grandtoubab](https://www.debian-fr.org/user_avatar/www.debian-fr.org/grandtoubab/32/4505_2.png) [@grandtoubab](https://www.debian-fr.org/u/grandtoubab)\
**Post date:** [Novembre 28, 2018, 10:39 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060/25 "2018-11-28T10:39:55Z")

</div>

> [@anon29980398](#):
>
> Bonjour
> 
> > [@grandtoubab](#):
> >
> > …et donc en français c’est quoi la périodicité avec
> > 
> > ```plaintext
> > (S/../.././01|L/../../1/03)
> > 
> > ```
> 
> `T/MM/DD/d/HH`
> 
> Un Short Self-Test tous les jours à `01:00`  
> et un Long Self-Test tous les lundis à `03:00`

- ok c’est plus un cas pour serveur

- Dans mon cas - PC Desktop - éteint la nuit les tâches nocturnes ne passeront jamais.

- J’utilise Anacron qui rattrape le temps perdu et lance les tâches au boot.  
Pour vérifier l’horodatage

```auto
 ls -alrt /var/spool/anacron/

-rw------- 1 root root 9 nov. 27 12:14 cron.monthly
-rw------- 1 root root 9 nov. 27 12:18 cron.weekly
-rw------- 1 root root 9 nov. 28 00:24 cron.daily
-rw------- 1 root root 9 nov. 28 10:44 cron.hourly

```

Le dernier lancement weekly a eu lieu le 27 novembre ( hier mardi)  
donc mes tâches weekly seront relancées mardi prochain quelque soit l’heure du boot.

---

<div class="post-metadata">

**Author:** ![sk4hrr](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/7bcc69/32.png) [@sk4hrr](https://www.debian-fr.org/u/sk4hrr)\
**Post date:** [Novembre 28, 2018, 10:45 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060/26 "2018-11-28T10:45:40Z")

</div>

> [@grandtoubab](#):
>
> ok c’est plus un cas pour serveur

Effectivement, c’est sur un serveur avec quelques disques en RAID logiciel.

> [@grandtoubab](#):
>
> Dans mon cas - PC Desktop - éteint la nuit les tâches nocturnes ne passeront jamais.

Si j’en crois la phase de démarrage de mon PC (fixe), les données SMART sont remontées directement par le contrôleur SATA (la carte mère dans mon cas). Du coup je n’ai pas l’utilité d’une tâche au niveau du système d’exploitation.

> [@grandtoubab](#):
>
> Le dernier lancement weekly a eu lieu le 27 novembre ( hier mardi)  
> donc mes tâches weekly seront relancées mardi prochain quelque soit l’heure du boot.

C’est vachement pratique ça, je vais peut être m’intéresser à `anacron` pour d’autres besoins, merci !

---

<div class="post-metadata">

**Author:** ![grandtoubab](https://www.debian-fr.org/user_avatar/www.debian-fr.org/grandtoubab/32/4505_2.png) [@grandtoubab](https://www.debian-fr.org/u/grandtoubab)\
**Post date:** [Novembre 28, 2018, 10:49 UTC](https://www.debian-fr.org/t/information-smartd-etrange/78060/27 "2018-11-28T10:49:12Z")

</div>

ma petite synthese sur le sujet

> **[Anacron, c’est pas une insulte.](https://bidouilledebian.wordpress.com/2018/06/02/anacron-cest-pas-une-insulte/)**
>
> Pour lancer des tâches périodiques, de maintenance  ou autres, rien de mieux que Anacron

[Page précédente](https://www.debian-fr.org/t/information-smartd-etrange/78060.md?page=1)
