Scratchbook

Das Leben ist immer anders als die Realität.

Aus Ext3 mach XFS

Claude, 27. August 2005, 02:40 Uhr

Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 129 Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 130 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707

1303.jpg

— Achtung: Fachsimplerei! —

Ich habe lange hin und her überlegt, welches Dateisystem für meinen Linux-Server wohl besser ist: ReiserFS oder XFS?

Schliesslich überzeugten mich folgende Fakten von XFS:
– Journaling und Zuverlässigkeit
– hohe Leistungsfähigkeit
– schnelle Neustarts nach unerwarteten Unterbrechungen, Restartzeit 1 s

Genau das was ich brauche. Ich habe es satt, immer eine halbe Stunde lang auf fsck zu warten. Ext3 ist zu unstabil. Ständig gibts irgendwelche Fehler, wie aus dem nichts. Hier ein paar doppelte Inodes, dort ein ungültiger Block… Aber nicht auf meinem Pseudo-Raid mit meinen wichtigen Daten!

Pseudo-Raid:
Ursprünglich habe ich echtes Software-Raid von Linux verwendet. Resultat: CRC-Fehler… Ohne mich!
Ich habe mich für eine viel bessere Lösung Marke Eigenbau entschieden:

/mnt/longneck ist meine Haupt-HD. Die ist auch mit Samba freigegeben. Dort darf gewütet werden.
/mnt/kcengnol ist die Backup-HD für /mnt/longneck.
Immer um Mitternacht wird folgender Befehl ausgeführt:

cp /mnt/longneck/* /mnt/kcengnol/ -a -u -v > /home/longneck/drivelogdetail && date >> /home/longneck/drivelog

Der kopiert alle neuen Dateien (-u) mit den ursprünglichen Rechten (-a) auf kcengnol. Der Output (-v) wird in ein File (drivelogdetail) geschrieben. Und zum Schluss fügt er Datum & Uhrzeit beim drivelog an. So weiss ich immer, ob das Backup durchgelaufen ist (mit dem positiven Nebeneffekt, dass ich die Dauer auch noch gleich sehe, Start ist ja um Mitternacht, 0:00…).

Jetzt kann es aber sein, dass ich auf /mnt/longneck Daten lösche und neue darauf kopiere. Das Script merkt nicht, dass Daten gelöscht wurden.
Damit die Backup-Platte nicht überschwemmt, wird sie jeden Sonntag um 23:00 Uhr mit rm -R /mnt/kcengnol/* geleert – und natürlich eine Stunde später wieder gefüllt!

Dieses System hat den Vorteil, dass ich sowohl meine Daten gesichert habe als auch bei versehentlichem Löschen die Daten noch vorhanden sind – jedenfalls bis Sonntag, 23:00…

Jetzt aber nun zum eigentlichen Thema: XFS.
Die Migration hat problemlos geklappt. Nun bin ich gespannt, ob das Ganze nun auch fehlerfrei läuft.
Der Gag: Ganze 10GB wurden durch diese Umstellung verfügbar! Offenbar braucht EXT3 viel Platz für seine Journale…

MrWatch

Seit ich mein Linux auf xfs umgestellt habe, bootet das ganze schneller und kleinere Dateien brauchen weniger Platz als vorher, d.h. die kleinste schreibbare Datenmenge ist wesentlich kleiner als bei anderen Formaten.

GPH

also neee, ich hätte ein wenig mehr erwartet. schon mal was von rsync gehört? checksum calculation aller daten um zu prüfen was gelöscht und was neu dazugekommen ist? dann muss man nix mehr löschen und nix mehr mit cp kopieren, und wir haben erst noch richtige error return codes. ein bisschen lesen würds manchmal auch noch tun…

Longneck

natürlich gibt es mehrere möglichkeiten, aber ich finde meine funktioniert und auch so wie ich das will. warum also etwas anderes nehmen?

Longneck

apropos „also neee, ich hätte ein wenig mehr erwartet.“: ich freu mich auf dein blog über rsync!

Warning: count(): Parameter must be an array or an object that implements Countable in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/themes/scratchbook/navigation_bar_bottom.php on line 1