Question: I’ve a ZFS installation in Proxmox, in particular a RAIDZ-1 file system, for testing purposes (before going on production with this setup) I’ve added a new drive to the machine, but I’m blocked on this point… What’s the command to add the new drive to the zpool?
I’ve tried with zpool add, but I don’t achieve to find the correct combination of commands & params.
This is the result of zpool status of my testing environment:
?pool: rpool state: ONLINE ?scan: none requestedconfig: ?NAME ???STATE ?READ WRITE CKSUM ?rpool ???ONLINE ?0 ?0 ?0 ?raidz1-0 ??ONLINE ?0 ?0 ?0 ?pci-0000:00:10.0-scsi-0:0:0:0-part2 ?ONLINE ?0 ?0 ?0 ?pci-0000:00:10.0-scsi-0:0:1:0-part2 ?ONLINE ?0 ?0 ?0 ?pci-0000:00:10.0-scsi-0:0:2:0-part2 ?ONLINE ?0 ?0 ?0 ?pci-0000:00:10.0-scsi-0:0:3:0-part2 ?ONLINE ?0 ?0 ?0 ?pci-0000:00:10.0-scsi-0:0:4:0-part2 ?ONLINE ?0 ?0 ?0errors: No known data errors
Thanks in advance! 🙂
Answer: You can’t extend the existing raidz1 vdev by adding another disk but you can add another vdev to the pool to increase the pool’s capacity. You’ll need more than one additional disk if you want to retain redundancy. For example, you could use two disks to add a mirror vdev or 3+ disks for another raidz1 vdev.