BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- Subject: [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- From: richard.pieri at gmail.com (Rich Pieri)
- Date: Fri, 20 May 2016 18:59:17 -0400
- In-reply-to: <012bc295-d913-9fe6-d95d-19b7190446b0@gmail.com>
- References: <73af2b22-1b31-3e69-ae2d-342194e68446@gmail.com> <CAMdng5tNDiVW3=18bF8JRVsFTjngX16HtghUOdmKXpZbXgDN-Q@mail.gmail.com> <CAEvgogEgjm2UxrWcnAbG1vZY2O+f1BbLrtqaQoMc8nskjkwCwg@mail.gmail.com> <20160520181301.GA15865@randomstring.org> <CAEvgogGZco6MXb3xBxnA9-RuUdKmGusFd5xoqwaztLsL04yrMA@mail.gmail.com> <012bc295-d913-9fe6-d95d-19b7190446b0@gmail.com>
I've done a test migration using a VM and some small (20GB) volumes. It works with a couple of caveats: * You need to have enough free space available in the Btrfs set to evacuate at least one full ZFS vdev worth of devices. * If you are using raid10 data and metadata then you may need to convert to raid1 in order to evacuate those disks. Here are the steps for a 4 disk, raid1 Btrfs set: * Make sure you have a good backup of your data. * Evacuate two disks from the set: btrfs device delete /dev/sdb /btrfs btrfs device delete /dev/sdc /btrfs * Create the first vdev: zpool create -f zfs mirror sdb sdc * Replicate Btrfs subvolumes as ZFS datasets: zfs create zfs/foo ..... * Copy data from Btrfs to ZFS: rsync -avxSHP /btrfs/ /zfs/ * Unmount the Btrfs volume. * Create the second vdev and add it to the pool: zpool add zfs mirror sdd sde Done. After performing this process on a test VM I decided that I probably won't use it for real. Two reasons. The first is that I don't have capacity for evacuating two disks at once. The second is that ZFS currently lacks a mechanism for automatically balancing device pools so the data as migrated would all be on one vdev. As I will be dependent on backups for restoring my data it makes sense to me to use backups for everything. -- Rich P.
- References:
- [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- From: mark at buttery.org (Shirley Márquez Dúlcey)
- [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- From: gaf.linux at gmail.com (Jerry Feldman)
- [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- From: gaf.linux at gmail.com (Jerry Feldman)
- [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- Prev by Date: [Discuss] Boot issues
- Next by Date: [Discuss] Yow
- Previous by thread: [Discuss] ZFS On Linux "in" Debian, migration from Btrfs
- Next by thread: [Discuss] Yow
- Index(es):