this post was submitted on 06 Oct 2023
10 points (100.0% liked)

linux4noobs

1240 readers
3 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 1 year ago
MODERATORS
 

I have a bigger SSD that I plan on migrating to. Thankfully I have ZFS on the disk, is it as easy as exporting and importing pools? What if I want to increase the pool size?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 10 months ago

Exporting and importing a pool is a different operation. Ideally you can have both disks accessible at the same time in your system and you would replace the disk inside of the pool. I did this the other week in my NAS and it allowed the system to keep data integrity, but I had the room to have all disks active so it could resilver the disks.

If this is your only drive and you are fully swapping it out, then you are backing up your data and restoring it. This can be done manually, or using zfs send and receive

[–] [email protected] 1 points 10 months ago

Not sure about ZFS, but one of btrfs's strengths is that it allows you to add and remove any arbitrary-sized disk pretty easily.

Example: https://markmcb.com/linux/btrfs/five-years-of-btrfs/#my-disk-setup-over-the-years

[–] [email protected] 1 points 10 months ago* (last edited 10 months ago)

Personally, I would setup the new disk, snapshot the old disk, then zfssend and zfsrecive to move the snapshot data. After the data is copied, then zfs import.

Edit: skip mbuffer. It is great over a network, but adds complexity you don't need. ~~Piping through mbuffer with as much ram as you can spare, but even a little is great.~~