You are not logged in.

#1 2014-01-22 16:43:22

blackwhite
Member
Registered: 2012-11-02
Posts: 7

[solved]move a system with zfs from a small drive to a big one?

I have tested zfs on a small drive and ready for move the installed system to a big drive, but I have no idea how to move the system easily to a big drive for a zfs system (for other fs', I usually use find and cpio to do the work), what is the best way to migrate the zfs system to a big drive?
Note: currently zfs pool is on a single drive, not mirrored.
Thanks in advance.

Last edited by blackwhite (2014-01-27 17:35:38)

Offline

#2 2014-01-22 17:03:35

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,904
Website

Re: [solved]move a system with zfs from a small drive to a big one?

Not sure what tools zfsprogs on linux offers, but look up zfs clone.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-01-22 20:49:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved]move a system with zfs from a small drive to a big one?

Please remove the redundant plea for help from your thread title: https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-01-22 21:05:52

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: [solved]move a system with zfs from a small drive to a big one?

If the small drive is not to be part of the zfs array on the large drive system you can use 'zfs send' to do this.  See the zfs article on our wiki.  I have added links to a very good discussion on this and other zfs topics.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2014-01-27 17:35:05

blackwhite
Member
Registered: 2012-11-02
Posts: 7

Re: [solved]move a system with zfs from a small drive to a big one?

Using `zfs send/receive` is one of many ways.
Finally I use `zpool attach/detach` to migrate to a large drive.

zpool scrub rpool
zpool attach rpool your_old_drive_id_part2 your_new_drive_id_part2
zpool status # waiting for mirroring finishes successfully
zpool detach rpool your_old_drive_id_part2
zpool scrub rpool

Extra work needed is fixing boot manager grub2/syslinux.

Offline

Board footer

Powered by FluxBB