Add drive to zfs pool to create RAIDZ1

Por12

Member
Mar 6, 2023
57
3
8
Hi there,

Up until now I was running a PBS pointing to a lone 12 TB drive. Following directions on the forum I have now bought and installed a second 12 TB HDD with the intent of creating a mirror and have resiliency against drive failures.

Currently I have around 2 TB used on that drive.

What would be the recommended method to add the drive to the ZFS array? Copy the 2 TB to another server, destroy and re-create the array and the datasets? Or is there anything simpler?

The pool I want to mirror is the rust-aphrodite.

Thanks!

Code:
root@aphrodite:~# zpool status
  pool: rpool
 state: ONLINE
  scan: scrub repaired 0B in 00:00:11 with 0 errors on Sun Sep  8 00:24:12 2024
config:


        NAME                                               STATE     READ WRITE CKSUM
        rpool                                              ONLINE       0     0     0
          nvme-eui.01000000000000008ce38e04043a99c0-part3  ONLINE       0     0     0


errors: No known data errors


  pool: rust-aphrodite
 state: ONLINE
  scan: scrub repaired 0B in 05:30:10 with 0 errors on Sun Sep  8 05:54:11 2024
config:


        NAME                                 STATE     READ WRITE CKSUM
        rust-aphrodite                       ONLINE       0     0     0
          ata-HGST_HUH721212ALN600_5PHKH26D  ONLINE       0     0     0


errors: No known data errors
 
zpool attach rust-aphrodite /dev/disk/by-id/ata-HGST_HUH721212ALN600_5PHKH26D /dev/disk/by-id/... # add here the right from the new 12TB hdd
zpool status
 
zpool attach rust-aphrodite /dev/disk/by-id/ata-HGST_HUH721212ALN600_5PHKH26D /dev/disk/by-id/... # add here the right from the new 12TB hdd
zpool status
not sure about this approach. This gonna just add 12To to his stripped pool, without convert to mirror.

@Por12 , you just have 2To of used data on this pool. The best way is to snapshot the dataset and save it (on a temporary stripped pool or in a file, destroy your zpool, and re-create it mirrored :) Just have to import snapshot after
 
  • Like
Reactions: SkyZoThreaD
zpool "add" rust-aphrodite /dev/disk... /dev/disk... should "create a stripped" pool, "attach" should "create a mirrored pool" out of a single disk ... in theory, perhaps the best test with a few truncate files before :)
 
  • Like
Reactions: Pifouney
not sure about this approach. This gonna just add 12To to his stripped pool, without convert to mirror.

@Por12 , you just have 2To of used data on this pool. The best way is to snapshot the dataset and save it (on a temporary stripped pool or in a file, destroy your zpool, and re-create it mirrored :) Just have to import snapshot after
Any guide on how to save the snapshot as a file?

Thanks!

zpool "add" rust-aphrodite /dev/disk... /dev/disk... should "create a stripped" pool, "attach" should "create a mirrored pool" out of a single disk ... in theory, perhaps the best test with a few truncate files before :)
It’s definitely simple and easy if it does what intend!

Regards
 
zpool "add" rust-aphrodite /dev/disk... /dev/disk... should "create a stripped" pool, "attach" should "create a mirrored pool" out of a single disk ... in theory, perhaps the best test with a few truncate files before :)
TY for the tips !!!!! :O
 

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!