Migration auf neue NVME SSD, Wechsel zu UEFI

Miraculix_de

New Member
Nov 12, 2023
21
0
1
Hi,
ich möchte mein PVE von einer SATA SSD auf eine NVME SSD exakt gleicher Größe umziehen. Der alte Server war ein Microserver Gen 8, er hatte kein UEFI. Der neue Server ist selbstgebaut auf Basis des Gigabyte B500I AORUS Pro und AMD Ryzen 7 5700G.

Wie stelle ich es an, von Legacy auf UEFI umzuziehen? Eigentlich müste man ja mit LVM die Daten umziehen können - wahrscheinlich sogar im laufenden Betrieb.

Aber bei der Boot-Sache bin ich total unsicher. Neuinstallation möchte ich vermeiden, PVE bootet auch schon von der alten SSD auf neuer Hardware. Screenshot 2024-10-19 at 18-57-44 pve - Proxmox Virtual Environment.png
 
Ich würde nicht auf UEFI umziehen (ansonsten ist pve neuinst. ein Muss) und bei Legacy bleiben.
In letzterem Fall und wenn der Rechnerzustand in dem Zustand wie im vorliegenden Bild zu sehen ist mach :
dd if=/dev/sda of=/dev/nvme0n1 bs=1024k
Dann Rechner aus, die verbrauchte (99%) sda entfernen und neu booten, sollte dann wie gewohnt laufen.
 
Warum würdest du nicht auf UEFI umsteigen? Ich wollte vorhin das Paket amd64-microcode installieren und da kam irgendwas von EFI. Wahrscheinlich kann man nur bei UEFI die Firmware aktualisieren.
 
Na, man hat dann keine Abhängigkeit zu M$ Certi's mit in seinen Rechner eingebaut, aber geht natürlich auch ... jedoch dann nur über eine Neuinst. und nicht per dd. Bzgl. der sda ssd mal checken: smartcl -x /dev/sda
 
Wie kann man ohne EFI denn den Microcode updaten?

Aus der Ausgabe von Smartctl werde ich nicht wirklich schlau:
Code:
$ smartctl -x /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.8.12-2-pve] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     WD Blue / Red / Green SSDs
Device Model:     WDC  WDS500G1R0A-68A4W0
Serial Number:    23151C440114
LU WWN Device Id: 5 001b44 4a58c4a29
Firmware Version: 411010WR
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5319
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Oct 20 13:08:42 2024 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     254 (maximum performance)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Unavailable

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x11) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  10) minutes.

SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  5 Reallocated_Sector_Ct   -O--CK   100   100   ---    -    0
  9 Power_On_Hours          -O--CK   100   100   ---    -    8435
 12 Power_Cycle_Count       -O--CK   100   100   ---    -    37
165 Block_Erase_Count       -O--CK   100   100   ---    -    16646353
166 Minimum_PE_Cycles_TLC   -O--CK   100   100   ---    -    1
167 Max_Bad_Blocks_per_Die  -O--CK   100   100   ---    -    72
168 Maximum_PE_Cycles_TLC   -O--CK   100   100   ---    -    3
169 Total_Bad_Blocks        -O--CK   100   100   ---    -    291
170 Grown_Bad_Blocks        -O--CK   100   100   ---    -    0
171 Program_Fail_Count      -O--CK   100   100   ---    -    0
172 Erase_Fail_Count        -O--CK   100   100   ---    -    0
173 Average_PE_Cycles_TLC   -O--CK   100   100   ---    -    1
174 Unexpected_Power_Loss   -O--CK   100   100   ---    -    3
184 End-to-End_Error        -O--CK   100   100   ---    -    0
187 Reported_Uncorrect      -O--CK   100   100   ---    -    0
188 Command_Timeout         -O--CK   100   100   ---    -    0
194 Temperature_Celsius     -O---K   069   043   ---    -    31 (Min/Max 19/43)
199 UDMA_CRC_Error_Count    -O--CK   100   100   ---    -    0
230 Media_Wearout_Indicator -O--CK   001   001   ---    -    0x0020000a0020
232 Available_Reservd_Space PO--CK   100   100   004    -    100
233 NAND_GB_Written_TLC     -O--CK   100   100   ---    -    764
234 NAND_GB_Written_SLC     -O--CK   100   100   ---    -    2158
241 Host_Writes_GiB         ----CK   253   253   ---    -    1795
242 Host_Reads_GiB          ----CK   253   253   ---    -    3341
244 Temp_Throttle_Status    -O--CK   000   100   ---    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      2  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x24       GPL     R/O   1797  Current Device Internal Status Data log
0x25       GPL     R/O   1797  Saved Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xde       GPL     VS       8  Device vendor specific log

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported

SCT Commands not supported

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4              37  ---  Lifetime Power-On Resets
0x01  0x010  4            8435  ---  Power-on Hours
0x01  0x018  6      3764508553  ---  Logical Sectors Written
0x01  0x020  6        89851632  ---  Number of Write Commands
0x01  0x028  6      7007817169  ---  Logical Sectors Read
0x01  0x030  6        91096669  ---  Number of Read Commands
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
0x07  0x008  1               0  N--  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  4            0  Command failed due to ICRC error
0x0002  4            0  R_ERR response for data FIS
0x0005  4            0  R_ERR response for non-data FIS
0x000a  4            2  Device-to-host register FISes sent due to a COMRESET
 
Mmh, I would trust more on the smart counter directly than on the output of pve.
Maybe do a long test which could take 24h or so and check after again with "-x" (smartctl -t long /dev/sda)
before you decide what you do.
 
Äh, die 99% sind mir noch garnicht aufgefallen!! Das ist eine WD Red für NAS, keine Ahnung wieso die innnerhalb von nur 1.5 Jahren solch einen Verschleiß haben kann...

Wahrscheinlich eine Fehlinterpretation der SMART Werte: https://listi.jpberlin.de/pipermail/smartmontools-support/2021-March/000652.html Das muss ich mit den Hersteller-Tools prüfen, die es natürlich nicht für Linux gibt :rolleyes:
Das Zeigt dir nur an wie viel du im Verhältnis zu der garantierten Schreibleistung der SSD geschrieben hast. Gute SSDs schaffen schon mal 600-800%, nur du hast keine Garantie mehr.
Das ist auch nicht ungewöhnlich bei Consumer SSDs, da die mit SLC Cache arbeiten und später die Daten auf TLC umkopieren, hast du schon mal gern 200% Verschleiß im Verhältnis zu der geschriebenen Datenmenge.
Auch wenn das NAS SSDs sind (ist am Ende eh nur Marketing) bleiben das Consumer SSDs ohne PLP. Nur SSDs mit Power Loss Protection haben deutlich weniger Verschleiß.
 

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!