Convert stripe to mirror... 2nd drive is slightly smaller

andyjay777

Dabbler
Joined
Jan 31, 2022
Messages
27
I have a "1TB" NVME drive in a stripe pool. Original drive = Intel 760p 1TB
I had planned to extend the pool to create a mirror with a 2nd "1TB" NVME. New drive = Sabrent Rocket 4.0 1TB

The Sabrent is 22.36GiB smaller.

Is there anyway to trim the original Intel 760p so it has the same usable size as the Sabrent?

SCALE-22.02.4
 

Attachments

  • NVME size mis-match.png
    NVME size mis-match.png
    11.8 KB · Views: 91

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
No, not that I know of.

The only way to do this, is to create a new pool on the smaller NVMe drive. Then copy the data over, probably with ZFS Send & Receive, (aka Replication). Whence you are certain everything is good, you destroy the old source pool. You can now add the slightly larger NMVe device as a Mirror.
 

andyjay777

Dabbler
Joined
Jan 31, 2022
Messages
27
Replication seemed to work OK.
I created a new pool on the smaller NVME.
Set up datasets and a zvol (for my VM) (all with slightly different names!)
Created a manual snapshot of each dataset and zvol.
Ran the replication task below.
Change the VM disk location to the new zvol.
Changed the app storage for Agent DVR to the new location.

Replication task.png
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Uh, replication should copy the datasets exactly the same name, because they are in a different pool. For example; You would not create anything on the new pool. The replication would do it for you.

Their is even a way to rename the new pool back to the old name, if desired.
 
Top