dateisysteme

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
dateisysteme [07/09/2022 - 15:24] thommie4dateisysteme [05/03/2024 - 10:52] – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
-====== ext Dateisysteme ======+====== Dateisysteme ====== 
 + 
 +===== Plattenplatz ermitteln ===== 
 + 
 +Filtern auf ext4, was ist verfügbar? 
 + 
 +<code> 
 +root@tokoeka ~ # df -h -t ext4 --total 
 +Filesystem              Size  Used Avail Use% Mounted on 
 +/dev/mapper/pve-root    196G   39G  148G  21% / 
 +/dev/md0                486M  400M   57M  88% /boot 
 +/dev/mapper/pve-data    3.0T  560G  2.3T  20% /mnt/data 
 +/dev/mapper/pve-backup  414G   40K  393G   1% /mnt/backup 
 +total                   3.6T  598G  2.8T  18% - 
 +</code> 
 + 
 +Filtern auf ext4, was wird genutzt? 
 + 
 +<code> 
 +root@tokoeka ~ # df -h -t ext4 --output=used 
 + Used 
 +  39G 
 + 400M 
 + 560G 
 +  40K 
 + 598G 
 +</code> 
  
 ===== Platte voll - grösste Dateien/Verzeichnisse finden ===== ===== Platte voll - grösste Dateien/Verzeichnisse finden =====
 +
 +   { find ocdata/ -type f -name "*.*" -printf "%s+"; echo 0; } | bc | numfmt --to=si
  
  
Zeile 48: Zeile 77:
 ''root@server3:/srv/vm/shared/win702# getfacl /srv/vm/shared/win702 getfacl: Entferne führende '/' von absoluten Pfadnamen # file: srv/vm/shared/win702 # owner: hekneis # group: hekneis user::rwx group::r-x mask::r-x other::r-x default:user::rwx default:user:hekneis:rw- default:group::r-x default:group:hekneis:rw- default:mask::rwx default:other::r-x  ''root@server3:/srv/vm/shared/win702# getfacl /srv/vm/shared/win702 getfacl: Entferne führende '/' von absoluten Pfadnamen # file: srv/vm/shared/win702 # owner: hekneis # group: hekneis user::rwx group::r-x mask::r-x other::r-x default:user::rwx default:user:hekneis:rw- default:group::r-x default:group:hekneis:rw- default:mask::rwx default:other::r-x 
 '' ''
-====== 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 /etc/snapper/configs/root. Empfehlungen siehe [[http://www.nrtm.org/index.php/2012/03/13/the-joys-of-btrfs-and-opensuse-or-no-space-left-on-device/comment-page-1/|http://www.nrtm.org/index.php/2012/03/13/the-joys-of-btrfs-and-opensuse-or-no-space-left-on-device/comment-page-1/]] Die Grundeinstellungen stehen in /etc/snapper/configs/root. Empfehlungen siehe [[http://www.nrtm.org/index.php/2012/03/13/the-joys-of-btrfs-and-opensuse-or-no-space-left-on-device/comment-page-1/|http://www.nrtm.org/index.php/2012/03/13/the-joys-of-btrfs-and-opensuse-or-no-space-left-on-device/comment-page-1/]]
Zeile 64: Zeile 93:
 ''/etc/cron.weekly/btrfs-balance.sh '' ''/etc/cron.weekly/btrfs-balance.sh ''
  
-===== btrfs Maintenance =====+==== Platte vergrössern ==== 
 + 
 +Bei btrfs kann man zwei Partitionen zu einem gemeinsamen Filesystem zusammenkleben, auch wenn die zweite Partition am Ende einer Partitionstabelle liegt. 
 + 
 +Neue Partition anlegen und btrfs erzeugen 
 + 
 +<code> 
 +mkfs.brfs /dev/[neues device] 
 +</code> 
 + 
 +Neue Partition zum btrfs Wurzelverzeichnis hinzufügen.  
 + 
 +<code> 
 +sudo btrfs device add /dev/sda6 /  
 +</code> 
 + 
 +btrfs balance verteilt die Metadaten gleichmässig auf beiden Partitionen 
 + 
 +<code> 
 +sudo btrfs balance start /  
 +</code> 
 + 
 +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:
 </code> </code>
  
-===== Weitere BTRFS Kommandos =====+==== Weitere BTRFS Kommandos ====
  
 Füllgrad feststellen: Füllgrad feststellen:
Zeile 106: Zeile 158:
 ''snapper rollback [ID] '' ''snapper rollback [ID] ''
  
-===== BTRFS Dateisystem reparieren ===== +=== BTRFS Dateisystem reparieren ===
  
 ''fsck.btrfs /dev/… '' ''fsck.btrfs /dev/… ''
  
-===== Hohe Last durch BTRFS quota =====+==== Hohe Last durch BTRFS quota ====
  
 [[https://forums.opensuse.org/showthread.php/523354-High-CPU-load-related-to-btrfs-causes-lock-up|https://forums.opensuse.org/showthread.php/523354-High-CPU-load-related-to-btrfs-causes-lock-up]] [[https://forums.opensuse.org/showthread.php/523354-High-CPU-load-related-to-btrfs-causes-lock-up|https://forums.opensuse.org/showthread.php/523354-High-CPU-load-related-to-btrfs-causes-lock-up]]
Zeile 149: Zeile 200:
 Doku: [[http://docs.cray.com/books/S-2377-22/html-S-2377-22/z1029470303.html|http://docs.cray.com/books/S-2377-22/html-S-2377-22/z1029470303.html]] und [[http://xfs.org/index.php/XFS_FAQ|http://xfs.org/index.php/XFS_FAQ]] Doku: [[http://docs.cray.com/books/S-2377-22/html-S-2377-22/z1029470303.html|http://docs.cray.com/books/S-2377-22/html-S-2377-22/z1029470303.html]] und [[http://xfs.org/index.php/XFS_FAQ|http://xfs.org/index.php/XFS_FAQ]]
  
-====== LUKS ======+===== LUKS =====
  
 Basisinfo: [[https://de.opensuse.org/SDB:Sicherheit_Verschl%C3%BCsselung_mit_LUKS|https://de.opensuse.org/SDB:Sicherheit_Verschl%C3%BCsselung_mit_LUKS]] Basisinfo: [[https://de.opensuse.org/SDB:Sicherheit_Verschl%C3%BCsselung_mit_LUKS|https://de.opensuse.org/SDB:Sicherheit_Verschl%C3%BCsselung_mit_LUKS]]
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 (ab OpenSUSE Leap)**
  
 Die Partition wird über ein Loop Setup ins Dateisystem gemountet: Die Partition wird über ein Loop Setup ins Dateisystem gemountet:
Zeile 246: Zeile 297:
  
 </code> </code>
 +
 +Passphrase testen
 +
 +<code>cryptsetup luksOpen --test-passphrase
 +
 +</code>
 +
  
  • dateisysteme.txt
  • Zuletzt geändert: 06/04/2024 - 06:48
  • von thommie4