Nachteile von TrueNAS auf Proxmox vs. bare metal?

ironfist

New Member
Jun 23, 2024
5
0
1
Hallo ihr Lieben,

was spricht dagegen TrueNAS als virtuelle Maschine auf Proxmox laufen zu lassen und die SATA-Platten durchzureichen?

Ich wollte das so machen.

Unter dem YT-Video mit Anleitung gibt es dann einen Kommentar:

NOTE: This whole Truenas on a VM/Container thing is not the way to do it. Use Samba or NFS with Proxmox or put truenas on bare metal. This is not the right way to do things. You have been warned.

https://www.youtube.com/watch?v=MkK-9_-2oko
 
Proxmox nur als Unterlage für ein TrueNAS und sonst nix ist doch unsinnig. Das macht das ganze nur fehleranfälliger. Ich meine, es geht, ja, aber nur auf dem Blech wird es sicher nicht weniger stabil laufen.

Wenn du nur basteln und lernen willst mit deiner IT, dann ist das natürlich egal.
 
was spricht dagegen TrueNAS als virtuelle Maschine auf Proxmox laufen zu lassen
Zum Beispiel Abhängigkeiten.

und die SATA-Platten durchzureichen?
Platten durchreichen funktioniert nie zuverlässig: es sind dann immer noch virtuelle Platten, deren Daten eben direkt auf der Hardware-Platte landen. Wenn du so etwas bauen willst, solltest du unbedingt einen Controller per PCI-Passthrough anbinden. Nur so sieht TrueNAS wirklich die Platten und kann beispielsweise die SMART-Daten auslesen.

Nicht alles, was technisch machbar ist, auch empfehlenswert. Am Ende entscheidet das jeder für sich selber --> ausprobieren ;-)

Ich bin sicher, dass dieses Thema schon vielfach durchgekaut wurde, leider haben wir keine FAQ, auf die ich verweisen könnte...
 
  • Like
Reactions: Neobin
Wenn du so etwas bauen willst, solltest du unbedingt einen Controller per PCI-Passthrough anbinden. Nur so sieht TrueNAS wirklich die Platten und kann beispielsweise die SMART-Daten auslesen.

+1
Imho, der einzig vernünftige Weg.
 
Initial war pci-passthrough auf meinem Nas nicht aktiviert.

Code:
dmesg | grep -e DMAR -e IOMMU
[    0.015476] ACPI: DMAR 0x000000005A663000 000088 (v01 INTEL  EDK2     00000002      01000013)
[    0.015529] ACPI: Reserving DMAR table memory at [mem 0x5a663000-0x5a663087]
[    0.187124] DMAR: Host address width 39
[    0.187125] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[    0.187135] DMAR: dmar0: reg_base_addr fed90000 ver 4:0 cap 1c0000c40660462 ecap 29a00f0505e
[    0.187138] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[    0.187143] DMAR: dmar1: reg_base_addr fed91000 ver 5:0 cap d2008c40660462 ecap f050da
[    0.187145] DMAR: RMRR base: 0x00000064000000 end: 0x000000683fffff
[    0.187149] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1
[    0.187151] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[    0.187153] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[    0.188223] DMAR-IR: Enabled IRQ remapping in x2apic mode
[    0.725376] pci 0000:00:02.0: DMAR: Skip IOMMU disabling for graphics
[    0.809595] DMAR: No ATSR found
[    0.809596] DMAR: No SATC found
[    0.809597] DMAR: IOMMU feature fl1gp_support inconsistent
[    0.809599] DMAR: IOMMU feature pgsel_inv inconsistent
[    0.809600] DMAR: IOMMU feature nwfs inconsistent
[    0.809601] DMAR: IOMMU feature dit inconsistent
[    0.809602] DMAR: IOMMU feature sc_support inconsistent
[    0.809603] DMAR: IOMMU feature dev_iotlb_support inconsistent
[    0.809604] DMAR: dmar0: Using Queued invalidation
[    0.809608] DMAR: dmar1: Using Queued invalidation
[    0.813180] DMAR: Intel(R) Virtualization Technology for Directed I/O

Konnte es über Hinzufügen eines Kernel Parameters aktivieren:

Code:
sudo vi /etc/default/grub
# Füge den Parameter zu GRUB_CMDLINE_LINUX_DEFAULT hinzu
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
# Aktualisiere die GRUB-Konfiguration
sudo update-grub
# Starte das System neu
sudo reboot


Code:
dmesg | grep -e DMAR -e IOMMU
[    0.015255] ACPI: DMAR 0x000000005A663000 000088 (v01 INTEL  EDK2     00000002      01000013)
[    0.015299] ACPI: Reserving DMAR table memory at [mem 0x5a663000-0x5a663087]
[    0.073640] DMAR: IOMMU enabled
[    0.186911] DMAR: Host address width 39
[    0.186913] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[    0.186922] DMAR: dmar0: reg_base_addr fed90000 ver 4:0 cap 1c0000c40660462 ecap 29a00f0505e
[    0.186925] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[    0.186930] DMAR: dmar1: reg_base_addr fed91000 ver 5:0 cap d2008c40660462 ecap f050da
[    0.186932] DMAR: RMRR base: 0x00000064000000 end: 0x000000683fffff
[    0.186936] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1
[    0.186938] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[    0.186939] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[    0.188013] DMAR-IR: Enabled IRQ remapping in x2apic mode
[    0.725245] pci 0000:00:02.0: DMAR: Skip IOMMU disabling for graphics
[    0.810212] DMAR: No ATSR found
[    0.810213] DMAR: No SATC found
[    0.810215] DMAR: IOMMU feature fl1gp_support inconsistent
[    0.810216] DMAR: IOMMU feature pgsel_inv inconsistent
[    0.810217] DMAR: IOMMU feature nwfs inconsistent
[    0.810218] DMAR: IOMMU feature dit inconsistent
[    0.810219] DMAR: IOMMU feature sc_support inconsistent
[    0.810220] DMAR: IOMMU feature dev_iotlb_support inconsistent
[    0.810221] DMAR: dmar0: Using Queued invalidation
[    0.810226] DMAR: dmar1: Using Queued invalidation
[    0.813667] DMAR: Intel(R) Virtualization Technology for Directed I/O
 
Hat geklappt! Super...


Code:
admin@truenas[~]$ sudo /usr/sbin/smartctl -a /dev/sdb
[sudo] password for admin:
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.32-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org


=== START OF INFORMATION SECTION ===
Device Model:     ST16000NT001-3LV101
Serial Number:    xxxxxxxx
LU WWN Device Id: xxxxxxxxxx
Firmware Version: EN01
User Capacity:    16,000,900,661,248 bytes [16.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database 7.3/5528
ATA Version is:   ACS-4 (minor revision not indicated)
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Jul 19 12:14:14 2024 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


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


General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
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:                (  567) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        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:        (   1) minutes.
Extended self-test routine
recommended polling time:        (1395) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x50bd) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.


SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   044    Pre-fail  Always       -       87968
  3 Spin_Up_Time            0x0003   094   094   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       5
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   100   253   045    Pre-fail  Always       -       21178
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       9
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       2
 18 Unknown_Attribute       0x000b   100   100   050    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   058   058   000    Old_age   Always       -       42 (Min/Max 30/42)
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       30
194 Temperature_Celsius     0x0022   042   042   000    Old_age   Always       -       42 (0 30 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0023   100   100   001    Pre-fail  Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       0 (62 9 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       0
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       87968


SMART Error Log Version: 1
No Errors Logged


SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Conveyance offline  Completed without error       00%         9         -
# 2  Short offline       Completed without error       00%         9         -


SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


The above only provides legacy SMART information - try 'smartctl -x' for more


admin@truenas[~]$
 
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!