Gespiegelte Systemplatte ausgetauscht - neue Platte spiegeln (Raid1)

ferhat.oekten

Member
Jun 23, 2023
33
1
8
Moin,

wie kann ich in Proxmox die ausgetauschte Systemplatte wieder als gespiegelte einbinden?
 

Attachments

  • 2024-09-20 15_48_39-prox-li-01 - Proxmox Virtual Environment – Mozilla Firefox.png
    2024-09-20 15_48_39-prox-li-01 - Proxmox Virtual Environment – Mozilla Firefox.png
    72.9 KB · Views: 6
  • 2024-09-20 16_04_37-prox-li-01 - Proxmox Virtual Environment – Mozilla Firefox.png
    2024-09-20 16_04_37-prox-li-01 - Proxmox Virtual Environment – Mozilla Firefox.png
    25.3 KB · Views: 6
Dies kannst über die CMD lösen in dem du die alte ID der nicht mehr vorhandenen Systemplatte mit der neuen austauschst.
Code:
zpool replace <poolname> <alte ID> <neue ID>

Beispiel:
Code:
zpool replace rpool 23476874629234623 ata-ST8000NM017B-2TJ103_QEET3452A

Die ID's kannst du bei bequem über die CMD kopieren. Hier auf meinem Testserver:
Code:
ls -l /dev/disk/by-id/ | grep sdo
lrwxrwxrwx 1 root root  9 Aug 27 16:33 ata-ST8000NM017B-2TJ103_QEET3452A -> ../../sdg

Die alte ID zum Kopieren bekommst du mit zpool status

Im Prinzip siehst das auch alles im Webinterfaces. Nur dort müsstest du die Daten abschreiben.
 
Don't to forget to read first chapter 3.9.6 in https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysboot
under "Changing a failed bootable device" the partitioning recovery before doing the above zpool replace cmd :)
Danke für den Hinweis :):cool:

Die ersten Schritte des Kopierens der Partitionstabelle, der Neuvergabe der GUIDs und des Ersetzens der ZFS-Partition sind die gleichen. Um das System von der neuen Platte bootfähig zu machen, sind verschiedene Schritte erforderlich, die vom verwendeten Bootloader abhängen. [1]
Code:
sgdisk <healthy bootable device> -R <new device>
sgdisk -G <new device>

Danach der Replace.

[1] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_zfs_change_failed_dev
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!