Bestehende Array Konfiguration aufgrund HDD-Erweiterung neu konfigurieren


bmnkrkc

Recommended Posts

Hallo liebe Community!

 

WD hat aktuell ein gutes Angebot, daher war ich so frei und habe mir gleich 2x WD RED NAS 16TB Festplatten bestellt.

 

Jetzt möchte ich meinen Unraid-Server gerne erweitern bzw. neu konfigurieren. Für die aktuelle IST-Konfiguration siehe Abbild 01.

 

Abbild 01

image.thumb.png.8d2b299ae740cc55ccb002618d2b8b85.png

 

Das Array soll mit den neuen zwei 16TB Festplatten erweitert und neu konfiguriert werden, ohne dabei die Daten zu verlieren. Die meisten Daten liegen aktuell auf Disk 1 (sdb) und Disk 3 (sdd). Die neue Ausrichtung bzw. Konfiguration ist wie folgt gewünscht:

 

Abbild 02 

image.thumb.png.8b2385b4e9ae156cac5f6515f6c67886.png

 

Selbstverständlich würde ich vorerst einmal ein PreClear auf beiden Festplatten durchführen lassen.

FRAGE:

Kann man 2 PreClear parallel laufen lassen?

 

Ich habe hierzu etwas recherchiert und etwas gefunden, dass die neue Konfiguration ermöglicht. Leider bin ich Anfänger im Thema Unraid und daher unsicher, ob die unten angegebenen Lösungen die Richtigen für mich sind. 

FRAGE:

Hat jemand ähnliche Erfahrung gemacht bzw. kennt eine Methode, die mein Vorhaben umsetzen lässt?

 

Freue mich auf Eure Unterstützung. 

 

Lösungsansätze:

 

1. https://wiki.unraid.net/Replacing_Multiple_Data_Drives_with_a_Single_Larger_Drive

Faster Method

This method disables the parity drive while transferring data from the smaller drives to the larger drive, and then rebuilds parity at the end. Not having parity allows faster writing to the larger drive.

  1. Stop array and power down.
  2. Add new larger drive and power up.
  3. Stop array and use Tools - New Config.
  4. Assign new larger drive to new slot, unassign parity drive, and start array.
  5. Copy all files from the smaller drives to the larger drive. For example, if the smaller drives are Disk 1 and Disk 2, and the larger drive is Disk 3, then you could use these commands in console or telnet:
       rsync -avX /mnt/disk1/ /mnt/disk3
       rsync -avX /mnt/disk2/ /mnt/disk3
  6. Stop array and power down.
  7. Remove smaller drives and power up.
  8. Use New Config to unassign removed drives and assign parity. You can also change the slot assignment of the new drive or any other drives at this point.
  9. Start array and let parity rebuild.

 

Safer Method

This method rebuilds one of the smaller drives onto the new larger drive then copies the data from the other smaller drives. This will maintain parity during the data transfer then rebuild parity after the last of the smaller drives have been removed.

  1. Stop array and power down.
  2. Replace one of the smaller drives with the new larger drive and power up.
  3. Assign new larger drive to replace missing smaller drive, and start the array, to let unRAID rebuild onto it.
  4. Copy all files from the other smaller drive(s) to the larger drive. For example, if a smaller drive is Disk 2 and the larger drive is Disk 3, then you could use this command in console or telnet:
       rsync -avX /mnt/disk2/ /mnt/disk3
  5. Stop array and power down.
  6. Remove the remaining smaller drive(s) and power up.
  7. Use New Config to unassign removed drive(s). You can also change the slot assignments of the new drive or any other drives at this point.
  8. Start array and let parity rebuild.

 


2. https://wiki.unraid.net/Manual/Storage_Management#Reset_the_array_configuration
Reset the array configuration

If you wish to remove a disk from the array or you simply wish to start from scratch to build your array configuration, there is a tool in Unraid that will do this for you. To reset the array configuration, perform the following steps:

 

  1. Navigate to the Tools page and click New Config
  2. You can (optionally) select to have the system preserve some of the current assignments while resetting the array. This can be very useful if you only intend to make a small change as it avoids you having to re-enter the details of the disks you want to leave unchanged.
  3. Click the checkbox confirming that you want to do this and then click apply to perform the operation
  4. Return to the Main tab and your configuration will have been reset
  5. Make any adjustments to the configuration that you want.
  6. Start the array to commit the configuration. You can start in Normal or Maintenance mode.

 

Notes:

  • Unraid will recognize if any drives have been previously used by Unraid, and when you start the array as part of this procedure the contents of such disks will be left intact.
  • There is a checkbox next to the Start button that you can use to say 'Parity is Valid'. Do not check this unless you are sure it is the correct thing to do, or unless advised to do so by an experienced Unraid user as part of a data recovery procedure.
  • Removing a data drive from the array will always invalidate parity unless special action has been taken to ensure the disk being removed only contains zeroes
  • Reordering disks after doing the New Config without removing drives does not invalidate parity1, but it DOES invalidate parity2.

 

Undoing a reset

If for any reason after performing a reset, you wish to undo it, perform the following steps:

  1. Browse to your flash device over the network (SMB)
  2. Open the Config folder
  3. Rename the file super.old to super.dat
  4. Refresh the browser on the Main page and your array configuration will be restored

 

 

Link to comment
On 3/8/2023 at 1:20 PM, bmnkrkc said:

habe mir gleich 2x WD RED NAS 16TB Festplatten bestellt

Warum so teure Platten oder waren die im Angebot?

 

On 3/8/2023 at 1:20 PM, bmnkrkc said:

Selbstverständlich würde ich vorerst einmal ein PreClear auf beiden Festplatten durchführen

Wenn du beim PreClear vom reinen Nullen, also vorbereiten der Platten sprichst, kannst du dir das vom Prinzip sparen, weil genau das ja bereits passiert, wenn du das Array erweiterst. Wobei du jetzt nicht erweiterst, sondern nur New Config machen willst. Dann würde sogar nur die Parity beschrieben werden. Und dann macht Unraid keinen PreClear, sondern schreibt ja reale Daten.

 

On 3/8/2023 at 1:20 PM, bmnkrkc said:

Kann man 2 PreClear parallel laufen lassen?

Entweder vertraust du den neuen HDDs oder nicht. Tust du es nicht, solltest du sie testen. Das hat aber nichts mit einem Preclear zu tun. PreClear ist wie der Name schon sagen ein Leeren der HDD, also das Beschreiben mit Nullen. Wenn du aber der HDD nicht vertraust, muss du sie stattdessen mit zufälligen Daten beschreiben lassen, die dann anschließend wieder ausgelesen und verifiziert werden. Tatsächlich besitzen die PreClear Plugins diese zusätzliche Tests. Das solltest du dann also jetzt machen, bevor du mit den Änderungen beim Array weiter machen kannst.

 

Wenn du den neuen HDDs dann vertraust, machst du es einfach so:

- SMB, Docker und VM in den Einstellungen auf Nein stellen

- Tools > New Config > Preserve Pools und OK

- jetzt ist das Array leer und du ordnest alle HDDs da zu, wo du sie haben willst und startest das Array. Dem Parity Slot darfst du natürlich keine Disk zuordnen, wo Dateien drauf liegen, da die vollständig überschrieben wird. Aber das hast du ja eh nicht vor. Kommt ja die neue rein.

- Unraid erstellt nun die Parität

- du hast eine HDD aus dem Array weggelassen, wo noch Daten drauf sind? Mit dem Unassiged Devices Plugin diese HDD nun mounten und die Daten auf die gewünschte Disk verschieben. Dabei hilft zb das File Manager Plugin. Das geht alles während Unraid die Parität aufbaut. Du musst also nicht auf dessen Abschluss warten

- wenn alle Daten da liegen, wo du sie haben willst, kannst du SMB, Docker und VM wieder starten

 

Hinweis: Hierbei gehe ich davon aus, dass du bei keinem Share die Optionen include/exclude Disks nutzt. Falls doch, müsste man die erstmal wieder auf den Standard zurückstellen.

  • Like 1
Link to comment
On 3/12/2023 at 9:57 AM, mgutt said:

Warum so teure Platten oder waren die im Angebot?

Die Platten waren im Angebot. Es gab 15% auf die Platte - das waren 346,- Euro inkl. Versand. Der Preis war unschlagbar.

 

On 3/12/2023 at 9:57 AM, mgutt said:

Wenn du beim PreClear vom reinen Nullen, also vorbereiten der Platten sprichst, kannst du dir das vom Prinzip sparen, weil genau das ja bereits passiert, wenn du das Array erweiterst. Wobei du jetzt nicht erweiterst, sondern nur New Config machen willst. Dann würde sogar nur die Parity beschrieben werden. Und dann macht Unraid keinen PreClear, sondern schreibt ja reale Daten.

Vielen Dank für die Info! Hatte mir hierzu noch einige Videos von Spaceinvader One angesehen.

 

On 3/12/2023 at 9:57 AM, mgutt said:

Entweder vertraust du den neuen HDDs oder nicht. Tust du es nicht, solltest du sie testen.

Ich bin sicher gegangen und habe auf beiden Platten einen PreClear durchgeführt. Beide Platten waren einwandfrei und sind mittlerweile schon eingebunden. Die New Config hat auch einwandfrei funktioniert.

Nochmals vielen Dank für Deine Unterstützung!  

Link to comment
1 hour ago, mgutt said:

Also ich würde keine 250 € für 16TB zahlen und selbst ohne Angebot gibt es ja viel Auswahl unter 300 € ?!

Ich hatte bereits 4x 8TB WD RED PRO Festplatten und wollte bei WD RED PRO bleiben, um es einheitlich zu halten. Ansonsten hätte ich pro Platte 100,- Euro sparen können. Hinterher ist man immer schlauer. B| Das war jetzt Lehrgeld.

Was mich jetzt interessiert. Was macht den Unterschied, dass Toshiba und Seagate im Vergleich zu WD RED PRO so günstig sind? Als Laie erkenne ich keinen Unterschied. Oder ist es letzten Endes nur der Name bzw. die Marke, für die man zahlt?

Edited by bmnkrkc
Link to comment
2 hours ago, bmnkrkc said:

Oder ist es letzten Endes nur der Name bzw. die Marke, für die man zahlt?

Subjektiv genau das.

Offiziell sind die WD Red pro natürlich mit ganz viel Voodoo ausgestattet damit die Vibrationen der Festplatten sich nicht gegenseitig aufschaukeln etc PP... Wer dran glauben möchte🤷‍♂️

  • Like 1
Link to comment
On 3/14/2023 at 1:26 PM, bmnkrkc said:

Was mich jetzt interessiert. Was macht den Unterschied, dass Toshiba und Seagate im Vergleich zu WD RED PRO so günstig sind?

Weniger NAS gerichtete Werbung.

 

Die anderen werben nict mit ihrer NASware und so.

Aber auch sind die WD Consumergerichteten Festplatten meist etwas teuerer als Toshiba und Seagate.

Zusätzlich wird Toshiba aufgrund der Garantiepolitik weniger Garantierückläufer haben und deshalb möglicherweise auch billiger sein können.

Mit Seagate bin ich (auch der Garantieabwicklung) bisher sehr zufrieden.

Edited by DataCollector
  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.