[gelöst] remount SW Raid?

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
fulltilt
Beiträge: 1163
Registriert: 03.12.2006 20:10:57

[gelöst] remount SW Raid?

Beitrag von fulltilt » 23.12.2014 10:31:13

kann man ein SW raid im laufenden Betrieb re-mounten ohne das dabei Probleme auftreten?
ich will in der fstab noatime verwenden und möglichst auf einen reboot verzichten ...

Code: Alles auswählen

mount -o remount  /dev/md2
Zuletzt geändert von fulltilt am 26.12.2014 08:58:41, insgesamt 1-mal geändert.

Benutzeravatar
feltel
Webmaster
Beiträge: 10477
Registriert: 20.12.2001 13:08:23
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Leipzig, Germany
Kontaktdaten:

Re: remount SW Raid?

Beitrag von feltel » 24.12.2014 19:36:33

Ja, sollte ohne Probleme funktionieren.

Code: Alles auswählen

mount -o remount,noatime /dev/md2

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: remount SW Raid?

Beitrag von Cae » 25.12.2014 15:09:20

Ja. Ist uebrigens unabhaengig davon, ob ein RAID (in welcher Form auch immer) darunter liegt.

Gruss Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

Benutzeravatar
fulltilt
Beiträge: 1163
Registriert: 03.12.2006 20:10:57

Re: remount SW Raid?

Beitrag von fulltilt » 25.12.2014 17:28:59

Danke, also ich habe jetzt die /etc/fstab wie folgt geändert:
vorher

Code: Alles auswählen

UUID=33e12a7c-acaf-4657-931e-946dd2c0ba7e /               ext4    errors=remount-ro,usrquota  0       1
nachher

Code: Alles auswählen

UUID=33e12a7c-acaf-4657-931e-946dd2c0ba7e /               ext4    errors=remount-ro,usrquota,noatime,barrier=0  0       1
ein anschliessendes mount -a zeigt keine Fehlermeldung
nur um ganz sicherzugehen frage ich nochmal :)
um das ganze jetzt ohne reboot wirksam zu machen kann ich dann so re.mounten, also mit allen Optionen?

Code: Alles auswählen

mount -o remount,errors=remount-ro,usrquota,noatime,barrier=0 /dev/md2
Zuletzt geändert von fulltilt am 26.12.2014 08:59:32, insgesamt 2-mal geändert.

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: remount SW Raid?

Beitrag von Cae » 25.12.2014 20:10:02

fulltilt hat geschrieben:ein anschliessendes mount -a gibt zeigt Fehlermeldung
Wie lautet die Fehlermeldung?

Gruss Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

Benutzeravatar
fulltilt
Beiträge: 1163
Registriert: 03.12.2006 20:10:57

Re: remount SW Raid?

Beitrag von fulltilt » 25.12.2014 20:19:57

sorry - tippfehler
Kein Fehler ##

kann ich den Befehl so eingeben?

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: remount SW Raid?

Beitrag von Cae » 26.12.2014 06:17:18

Ja, sieht fuer mich gut aus.

Sofern du ganz sicher gehen willst, koenntest du testhalber eine Datei mit genau dem gleichen Dateisystem loop-mounten, eine Datei darin geoeffnet halten [1] und danach mit der remount-Zeile bearbeiten. Sofern im dmesg daraufhin keine Fehler zu sehen sind, waere ich mir sehr sicher, dass der remount auch auf dem produktiven Dateisystem fehlerfrei bleibt.

Gruss Cae

[1] z.B.

Code: Alles auswählen

$ date >a
$ tail -f a
## (shell blockt)
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

Benutzeravatar
fulltilt
Beiträge: 1163
Registriert: 03.12.2006 20:10:57

Re: remount SW Raid?

Beitrag von fulltilt » 26.12.2014 08:58:19

Danke, hat alles geklappt :)

Antworten