Defekte Platte gestauscht

Hallo liebe Gemeinde,

ich habe aus meinem System eine defekte Festplatte getauscht.

Diese war augebscheinlich defekt.

Die defekte Platte Offline gestellt, die neue Platte eingebaut. System hochgefahren.

Und dann das selbe:

Meine System bevor ich die defekte Platte getauscht habe:

So sieht es jetzt aus, nach dem tausch:

Außerdem komme ich nicht an zwei Freigaben aus “Datenpool” dran.

Ich habe 4 Freigaben, 2 funktionieren und zwei nicht. Es wird unter Windows folgendes angezeigt:

Also habe ich die Verbindung unter Windows gelöscht und wollte diese neu machen, das ist dann mit diesem Ergebnis gescheitert.

Jetzt meine Fragen:

  1. Kann mir jemand helfen?
  2. Gibt es eine Möglichkeit ohne eine Verbindung über ein Mapping mit Windows die Daten wo anders hin zu kopieren?

Es scheint zumindestens noch die Ordner zu geben und hoffentlich auch die Fotos

Währe echt toll wenn ihr mir helfen könnt.

Gruß

Stephan

Hast du denn auch auf der ZFS-Ebene ein Replacement durchgeführt?

Kaputte Platte offline, neue einbauen … das reicht nicht. Du musst dem ZFS auch sagen, dass es jetzt die neue benutzen soll.

Poste doch mal die Ausgabe von

zpool status

root@truenas[~]# zpool status
pool: Daten2
state: ONLINE
status: The pool is formatted using a legacy on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using ‘zpool upgrade’. Once this is done, the
pool will no longer be accessible on software that does not support
feature flags.
scan: scrub in progress since Wed Sep 23 18:29:33 2026
1.27T / 1.44T scanned, 1.20T / 1.43T issued at 94.9M/s
0B repaired, 84.22% done, 00:41:31 to go
config:

    NAME        STATE     READ WRITE CKSUM
    Daten2      ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        sdd2    ONLINE       0     0     0
        sdb2    ONLINE       0     0     0

errors: No known data errors

pool: Datenpool
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using ‘zpool upgrade’. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 01:24:46 with 0 errors on Wed Sep 23 19:40:22 2026
config:

    NAME                                      STATE     READ WRITE CKSUM
    Datenpool                                 ONLINE       0     0     0
      mirror-0                                ONLINE       0     0     0
        ddca8deb-c49f-429f-82fd-f0c557c5cb42  ONLINE       0     0     0
        sdc2                                  ONLINE       0     0     0

errors: No known data errors

pool: boot-pool
state: ONLINE
status: One or more features are enabled on the pool despite not being
requested by the ‘compatibility’ property.
action: Consider setting ‘compatibility’ to an appropriate value, or
adding needed features to the relevant file in
/etc/zfs/compatibility.d or /usr/share/zfs/compatibility.d.
scan: scrub repaired 0B in 00:00:38 with 0 errors on Wed Sep 16 03:45:40 2026
config:

    NAME         STATE     READ WRITE CKSUM
    boot-pool    ONLINE       0     0     0
      nvme0n1p2  ONLINE       0     0     0

errors: No known data errors
root@truenas[~]#

dein zpool status sieht gesund aus. Datenpool und Daten2 sind beide ONLINE, also hat ZFS die neue Platte offenbar schon drin.

die Windows Freigaben mit Zugriff verweigert sind dann eher ACL / SMB.

zum Kopieren ohne Windows Mapping, von einem anderen Rechner:

sftp root@TRUENAS-IP

oder

rsync -aHAX --info=progress2 root@TRUENAS-IP:/mnt/Datenpool/PFAD/ /backup/

fuer die toten Freigaben paste:

zfs get acltype,aclmode,aclinherit Datenpool
midclt call sharing.smb.query
ls -ld /mnt/Datenpool/*

und sag welche zwei Freigabenamen genau tot sind.

Hallo,

die toten Freigaben in /mnt/Datenpool/ lauten:

  1. Fotos
  2. Dokumente

Die im selben Pool liegenden Freigaben funktionieren.

  1. Musik
  2. Sicherung

Danke für die Hilfe

Ich habe auch die drei Befehle abgesetzt.

zfs get acltype,aclmode,aclinherit Datenpool

NAME PROPERTY VALUE SOURCE
Datenpool acltype nfsv4 default
Datenpool aclmode passthrough local
Datenpool aclinherit passthrough local

midclt call sharing.smb.query

[{“id”: 1, “purpose”: “DEFAULT_SHARE”, “name”: “Fotos”, “path”: “/mnt/Datenpool/Fotos”, “enabled”: true, “comment”: “”, “readonly”: false, “browsable”: true, “access_based_share_enumeration”: true, “locked”: false, “audit”: {“enable”: false, “watch_list”: [], “ignore_list”: []}, “options”: {“aapl_name_mangling”: false, “hostsallow”: [], “hostsdeny”: []}},

{“id”: 2, “purpose”: “LEGACY_SHARE”, “name”: “Musik”, “path”: “/mnt/Datenpool/Musik”, “enabled”: true, “comment”: “”, “readonly”: false, “browsable”: true, “access_based_share_enumeration”: false, “locked”: false, “audit”: {“enable”: false, “watch_list”: [], “ignore_list”: []}, “options”: {“recyclebin”: false, “path_suffix”: null, “hostsallow”: [], “hostsdeny”: [], “guestok”: true, “streams”: true, “durablehandle”: true, “shadowcopy”: true, “fsrvp”: false, “home”: false, “acl”: true, “afp”: false, “timemachine”: false, “timemachine_quota”: 0, “aapl_name_mangling”: false, “vuid”: null, “auxsmbconf”: “”}},

{“id”: 3, “purpose”: “DEFAULT_SHARE”, “name”: “Dokumente”, “path”: “/mnt/Datenpool/Dokumente”, “enabled”: true, “comment”: “”, “readonly”: false, “browsable”: true, “access_based_share_enumeration”: false, “locked”: false, “audit”: {“enable”: false, “watch_list”: [], “ignore_list”: []}, “options”: {“aapl_name_mangling”: false, “hostsallow”: [], “hostsdeny”: []}},

{“id”: 5, “purpose”: “LEGACY_SHARE”, “name”: “Sicherung”, “path”: “/mnt/Datenpool/Sicherung”, “enabled”: true, “comment”: “”, “readonly”: false, “browsable”: true, “access_based_share_enumeration”: false, “locked”: false, “audit”: {“enable”: false, “watch_list”: [], “ignore_list”: []}, “options”: {“recyclebin”: false, “path_suffix”: null, “hostsallow”: [], “hostsdeny”: [], “guestok”: true, “streams”: true, “durablehandle”: true, “shadowcopy”: true, “fsrvp”: false, “home”: false, “acl”: true, “afp”: false, “timemachine”: false, “timemachine_quota”: 0, “aapl_name_mangling”: false, “vuid”: “97f7c619-9bdf-4585-859b-f160cf096e02”, “auxsmbconf”: “”}},

{“id”: 6, “purpose”: “LEGACY_SHARE”, “name”: “Videos2”, “path”: “/mnt/Daten2/Videos2”, “enabled”: true, “comment”: “”, “readonly”: false, “browsable”: true, “access_based_share_enumeration”: false, “locked”: false, “audit”: {“enable”: false, “watch_list”: [], “ignore_list”: []}, “options”: {“recyclebin”: false, “path_suffix”: null, “hostsallow”: [], “hostsdeny”: [], “guestok”: true, “streams”: true, “durablehandle”: true, “shadowcopy”: true, “fsrvp”: false, “home”: false, “acl”: true, “afp”: false, “timemachine”: false, “timemachine_quota”: 0, “aapl_name_mangling”: false, “vuid”: null, “auxsmbconf”: “”}}]

ls -ld /mnt/Datenpool/*

drwxrwxrwx 21 webdav webdav 26 Nov 9 2025 /mnt/Datenpool/Dokumente
drwxrwxrwx 61 root root 62 Sep 23 19:29 /mnt/Datenpool/Fotos
drwxrwxrwx 415 webdav webdav 417 Dec 21 2025 /mnt/Datenpool/Musik
drwxrwx–x 12 root root 18 Nov 16 2025 /mnt/Datenpool/Sicherung
drwxrwxrwx 2 guest 31 9 Jun 9 2024 /mnt/Datenpool/guest
drwxr-xr-x 9 root root 11 Jun 23 2024 /mnt/Datenpool/iocage

Der einzige grundlegende Unterschied ist in dem Parameter.

“purpose”: “LEGACY_SHARE” Dieser Eintrag ist in den Freigaben die funktionieren enthalten

“purpose”: “DEFAULT_SHARE” Dieser Eintrag ist in den Freigaben die nicht funktionieren enthalten

Vielleicht hilft das.

ja das purpose ding passt. Fotos und Dokumente sind DEFAULT_SHARE, Musik und Sicherung LEGACY mit guestok true. deswegen kommt windows bei den toten ohne passenden user nicht rein.

mal:
-midclt call filesystem.getacl /mnt/Datenpool/Fotos
-midclt call filesystem.getacl /mnt/Datenpool/Musik
-ls -la /mnt/Datenpool/Fotos /mnt/Datenpool/Musik

dann in der ui bei Fotos und Dokumente den windows user (oder gruppe) mit modify rein und speichern. oder kurz guest auf Fotos an, nur zum testen ob der share dann aufgeht.

wenn getacl auf Fotos leer oder komisch ist gegenueber Musik, acl im dataset editor neu setzen.