Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
dateisysteme [07/09/2022 - 15:24] – thommie4 | dateisysteme [05/03/2024 - 10:52] – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== | + | ====== Dateisysteme ====== |
+ | |||
+ | ===== Plattenplatz ermitteln ===== | ||
+ | |||
+ | Filtern auf ext4, was ist verfügbar? | ||
+ | |||
+ | < | ||
+ | root@tokoeka ~ # df -h -t ext4 --total | ||
+ | Filesystem | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | total | ||
+ | </ | ||
+ | |||
+ | Filtern auf ext4, was wird genutzt? | ||
+ | |||
+ | < | ||
+ | root@tokoeka ~ # df -h -t ext4 --output=used | ||
+ | | ||
+ | 39G | ||
+ | | ||
+ | | ||
+ | 40K | ||
+ | | ||
+ | </ | ||
===== Platte voll - grösste Dateien/ | ===== Platte voll - grösste Dateien/ | ||
+ | |||
+ | { find ocdata/ -type f -name " | ||
Zeile 48: | Zeile 77: | ||
'' | '' | ||
'' | '' | ||
- | ====== BTRFS ====== | + | ===== BTRFS ===== |
Standard-Datei-System bei OpenSUSE und SLES | Standard-Datei-System bei OpenSUSE und SLES | ||
- | ===== Platte läuft mit Snapshots voll ===== | + | ==== Platte läuft mit Snapshots voll ==== |
Die Grundeinstellungen stehen in / | Die Grundeinstellungen stehen in / | ||
Zeile 64: | Zeile 93: | ||
''/ | ''/ | ||
- | ===== btrfs Maintenance | + | ==== Platte vergrössern |
+ | |||
+ | Bei btrfs kann man zwei Partitionen zu einem gemeinsamen Filesystem zusammenkleben, | ||
+ | |||
+ | Neue Partition anlegen und btrfs erzeugen | ||
+ | |||
+ | < | ||
+ | mkfs.brfs /dev/[neues device] | ||
+ | </ | ||
+ | |||
+ | Neue Partition zum btrfs Wurzelverzeichnis hinzufügen. | ||
+ | |||
+ | < | ||
+ | sudo btrfs device add /dev/sda6 / | ||
+ | </ | ||
+ | |||
+ | btrfs balance verteilt die Metadaten gleichmässig auf beiden Partitionen | ||
+ | |||
+ | < | ||
+ | sudo btrfs balance start / | ||
+ | </ | ||
+ | |||
+ | Nach einem Reboot ist das btrfs root um den Platz der neuen Partition vergrössert. | ||
+ | ==== btrfs Maintenance | ||
There is btrfsmaintenance package that should be installed by default that provides cron script. Somewhat interesting implementation is, these cron scripts are not installed directly but there is a service that does it. And *this* service is disabled by default | There is btrfsmaintenance package that should be installed by default that provides cron script. Somewhat interesting implementation is, these cron scripts are not installed directly but there is a service that does it. And *this* service is disabled by default | ||
Zeile 84: | Zeile 136: | ||
</ | </ | ||
- | ===== Weitere BTRFS Kommandos | + | ==== Weitere BTRFS Kommandos ==== |
Füllgrad feststellen: | Füllgrad feststellen: | ||
Zeile 106: | Zeile 158: | ||
'' | '' | ||
- | ===== BTRFS Dateisystem reparieren ===== | + | === BTRFS Dateisystem reparieren === |
'' | '' | ||
- | ===== Hohe Last durch BTRFS quota ===== | + | ==== Hohe Last durch BTRFS quota ==== |
[[https:// | [[https:// | ||
Zeile 149: | Zeile 200: | ||
Doku: [[http:// | Doku: [[http:// | ||
- | ====== LUKS ====== | + | ===== LUKS ===== |
Basisinfo: [[https:// | Basisinfo: [[https:// | ||
Zeile 169: | Zeile 220: | ||
**Ab Leap werden normale LUKS Partitionen benutzt.** | **Ab Leap werden normale LUKS Partitionen benutzt.** | ||
- | ===== LUKS Partitionen ab OpenSUSE Leap ===== | + | **LUKS Partitionen |
Die Partition wird über ein Loop Setup ins Dateisystem gemountet: | Die Partition wird über ein Loop Setup ins Dateisystem gemountet: | ||
Zeile 246: | Zeile 297: | ||
</ | </ | ||
+ | |||
+ | Passphrase testen | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | |||