ZFS attach Disk to Pool

Sep 28, 2025
1
0
1
Hallo zusammen,

ich habe folgendes Problem / Frage zu einem ZFS Pool.

Ich würde gerne eine Platte (/dev/sde) einem bestehenden Pool (DATA) hinzufügen. Dort liegen nur reine VM Disks / Container rum.

Folgendes erscheint bei zpool status:

Code:
 pool: DATA
 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 00:09:35 with 0 errors on Sun Sep 14 00:33:36 2025
config:

    NAME                                        STATE     READ WRITE CKSUM
    DATA                                        ONLINE       0     0     0
      raidz1-0                                  ONLINE       0     0     0
        scsi-3600508b1001ced701612f2dd3117070c  ONLINE       0     0     0
        scsi-3600508b1001cc73b8a40e2803f3547f9  ONLINE       0     0     0
        scsi-3600508b1001cefc5cb352cd40465646e  ONLINE       0     0     0

Sobald ich den Befehl:
Bash:
zpool attach DATA raidz1-0 /dev/sde
ausführe, kommt folgende Meldung:

Bash:
cannot attach /dev/sde to raidz1-0: raidz_expansion feature must be enabled in order to attach a device to raidz

Nun meine Frage, muss ich hier erst zpool upgrade DATA machen, damit das Feature freigeschaltet wird? Ist das mit Risiken verbunden? Ich habe in dem Admin Guide gelesen, dass es Risiken gibt...

Vielen Dank für eure Hilfe und einen schönen Abend
 
Also sicherlich ist das Feature noch nicht aktiv.
Code:
# zpool version
zfs-2.3.4-pve1
zfs-kmod-2.3.4-pve1

Code:
zpool upgrade

Test es halt mal mit raw-Dateiein, anstatt einem realen zfs pool.
Code:
# man fallocate
fallocate -l 1G dev0.raw
fallocate -l 1G dev1.raw
fallocate -l 1G dev2.raw
fallocate -l 1G dev3.raw

Aus den drei Dateiein dev0.raw, dev1.raw und dev2.raw erzeugst Du Dir einen zfs pool tpoolz1.
Bei mir muss ich den absoluten Pfad angeben.

Code:
zpool create tpoolz1 raidz1 /rpool/test/dev0.raw /rpool/test/dev1.raw /rpool/test/dev2.raw

Code:
# zpool status tpoolz1
pool: tpoolz1
 state: ONLINE
config:
    NAME                      STATE     READ WRITE CKSUM
    tpoolz1                   ONLINE       0     0     0
      raidz1-0                ONLINE       0     0     0
        /rpool/test/dev0.raw  ONLINE       0     0     0
        /rpool/test/dev1.raw  ONLINE       0     0     0
        /rpool/test/dev2.raw  ONLINE       0     0     0

Danach kannst Du mit diesem Commando das mal untersuchen:
Code:
zpool attach tpoolz1 raidz1-0 /rpool/test/dev3.raw

Code:
# zpool status  tpoolz1
  pool: tpoolz1
 state: ONLINE
  scan: scrub repaired 0B in 00:00:00 with 0 errors on Sun Sep 28 20:23:10 2025
expand: expanded raidz1-0 copied 427K in 00:00:00, on Sun Sep 28 20:23:10 2025
config:
    NAME                      STATE     READ WRITE CKSUM
    tpoolz1                   ONLINE       0     0     0
      raidz1-0                ONLINE       0     0     0
        /rpool/test/dev0.raw  ONLINE       0     0     0
        /rpool/test/dev1.raw  ONLINE       0     0     0
        /rpool/test/dev2.raw  ONLINE       0     0     0
        /rpool/test/dev3.raw  ONLINE       0     0     0
 
Last edited:
  • Like
Reactions: UdoB