Changing drives in a ZFS pool to a different controller in the same machine

Dec 13, 2024
2
0
1
I have a ZFS pool that Proxmox built on setup with two disks. They are the only disks in the machine. I'd like to move these two disks to a different controller in the same machine. Can anyone help me with the recommended steps to complete this task? I've found some notes on using zpool export but it's not entirely clear to me if that's necessary in this scenario.

Thanks


Code:
root@pve1:~$ zpool list -v rpool
NAME                                                   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool                                                 1.73T   150G  1.59T        -         -    23%     8%  1.00x    ONLINE  -
  mirror-0                                            1.73T   150G  1.59T        -         -    23%  8.42%      -    ONLINE
    ata-INTEL_SSDSC2KB019T8_-part3  1.75T      -      -        -         -      -      -      -    ONLINE
    ata-INTEL_SSDSC2KB019T8_part3  1.75T      -      -        -         -      -      -      -    ONLINE

Code:
root@pve1:~$ lsblk --output NAME,FSTYPE,MODEL,LABEL,PTTYPE,SIZE -e 7
NAME      FSTYPE     MODEL               LABEL PTTYPE   SIZE
sda                  INTEL SSDSC2KB019T8       gpt      1.7T
├─sda1                                         gpt     1007K
├─sda2    vfat                                 gpt        1G
└─sda3    zfs_member                     rpool gpt      1.7T
sdb                  INTEL SSDSC2KB019T8       gpt      1.7T
├─sdb1                                         gpt     1007K
├─sdb2    vfat                                 gpt        1G
└─sdb3    zfs_member                     rpool gpt      1.7T
sr0                  hp DVD-ROM DUB0N                  1024M
zd0                                            gpt      120G
├─zd0p1   vfat                                 gpt      100M
├─zd0p2                                        gpt       16M
├─zd0p3   ntfs                                 gpt    119.1G
└─zd0p4   ntfs                                 gpt      768M
zd16                                                      4M
zd32                                           gpt       75G
├─zd32p1                                       gpt        1M
└─zd32p2  ext4                                 gpt       75G
zd48                                                      1M
zd64                                           gpt       50G
├─zd64p1                                       gpt        1M
└─zd64p2  ext4                                 gpt       50G
zd80                                                      4M
zd96                                                      1M
zd112                                          gpt      120G
├─zd112p1 vfat                                 gpt      100M
├─zd112p2                                      gpt       16M
├─zd112p3 ntfs                                 gpt    119.1G
└─zd112p4 ntfs                                 gpt      768M
 
Last edited:
I've found some notes on using zpool export but it's not entirely clear to me if that's necessary in this scenario.
Since it is the rpool, you cannot export it except for shutting down Proxmox.
I'd like to move these two disks to a different controller in the same machine. Can anyone help me with the recommended steps to complete this task?
I don't think ZFS cares about the controller, as long as it is working and has a Linux driver. Shut down your Proxmox host and connect the drives to the other (SATA?) controller. Maybe you need to change the boot drive selection in the motherboard BIOS.
This is not Proxmox specific and other ZFS or other Linux drive guides will probably apply also.
 
  • Like
Reactions: bobk and UdoB