filesystem:start
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| filesystem:start [2016/12/14 23:51] – créée jonathan | filesystem:start [2018/02/22 01:23] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== FileSystem ====== | ====== FileSystem ====== | ||
| - | ===== Repair | + | |
| - | ==== XFS ==== | + | ===== Tune2fs |
| - | à froid :\\ | + | Par défaut un pourcentage (souvent 5%) de l' |
| - | si LVM : | + | Cela peut-être handicapant par exemple sur une très large partition système, voir inutile sur une partition data.\\ |
| + | On peut alors modifier cette valeur | ||
| + | Par exemple pour paramétrer à 1% ( on peut aussi mettre 0 ) sur sda3 : | ||
| < | < | ||
| - | vgscan | + | tune2fs |
| - | vgchange -a y | + | |
| </ | </ | ||
| - | repair : | + | |
| + | ===== Check & Repair ===== | ||
| + | Les manipulations doivent être effectuées sur une partition démontée.\\ | ||
| + | On prend pour exemple la partition " | ||
| + | ==== à chaud ==== | ||
| + | === Sans LVM === | ||
| < | < | ||
| - | xfs_repair | + | df -h | head -1 && df -h | grep mapartitiondetest |
| + | Sys. de fichiers | ||
| + | /dev/sda5 236M | ||
| </ | </ | ||
| - | check : | ||
| < | < | ||
| - | mkdir /media/plop | + | umount |
| - | mount / | + | |
| </ | </ | ||
| - | ==== EXT ==== | + | == check == |
| + | EXTx | ||
| + | < | ||
| + | e2fsck /dev/sda5 | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_check /dev/sda5 | ||
| + | </ | ||
| + | == repair | ||
| + | EXTx | ||
| + | < | ||
| + | fsck -y /dev/sda5 | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_repair /dev/sda5 | ||
| + | </ | ||
| + | === Avec LVM === | ||
| + | < | ||
| + | df -h | head -1 && df -h | grep mapartitiondetest | ||
| + | Sys. de fichiers | ||
| + | / | ||
| + | </ | ||
| + | < | ||
| + | umount / | ||
| + | </ | ||
| + | == check == | ||
| + | EXTx | ||
| + | < | ||
| + | e2fsck / | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_check / | ||
| + | </ | ||
| + | == repair == | ||
| + | EXTx | ||
| + | < | ||
| + | fsck -y / | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_repair / | ||
| + | </ | ||
| + | |||
| + | ==== à froid==== | ||
| + | Les manipulations doivent être effectuées sur une partition démontée.\\ | ||
| + | S'il y a le moindre doute, préférer effectuer cette intervention à froid.\\ | ||
| + | Attention, on part ici du principe qu'on connait la partition que l'on souhaite manipuler, si ce n'est pas le cas, vérifier avant tout que l'on peut la retrouver d'une quelconque façon, grâce à sa taille par exemple. | ||
| + | === Sans LVM === | ||
| + | Booter sur un liveCD et ouvrir un terminal.\\ | ||
| + | Ou, si l'OS est crashé au démarrage, entrer simplement le mot de passe root normalement proposé. | ||
| + | == check == | ||
| + | EXTx | ||
| + | < | ||
| + | e2fsck /dev/sda5 | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_check /dev/sda5 | ||
| + | </ | ||
| + | == repair == | ||
| + | EXTx | ||
| + | < | ||
| + | fsck -y /dev/sda5 | ||
| + | </ | ||
| + | Astuce, si l'OS est accessible, effectuer simplement la commande suivante : | ||
| < | < | ||
| touch /forcefsck | touch /forcefsck | ||
| reboot | reboot | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_repair /dev/sda5 | ||
| + | </ | ||
| + | === Avec LVM === | ||
| + | Booter sur un liveCD, ouvrir un terminal et monter toutes les partitions LVM disponibles : | ||
| + | < | ||
| + | vgscan -c --mknodes | ||
| + | vgchange -a y | ||
| + | </ | ||
| + | == check == | ||
| + | EXTx | ||
| + | < | ||
| + | e2fsck / | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_check / | ||
| + | </ | ||
| + | == repair == | ||
| + | EXTx | ||
| + | < | ||
| + | fsck -y / | ||
| + | </ | ||
| + | XFS | ||
| + | < | ||
| + | xfs_repair / | ||
| </ | </ | ||
filesystem/start.1481755860.txt.gz · Dernière modification : (modification externe)
