Files
presentations/zfs-migrations/slides.md
T
2025-06-20 12:16:48 +02:00

3.0 KiB

Migration Geodesic ZFS


Needs

![intro](https://gricad-gitlab.univ-grenoble-alpes.fr/uploads/-/system/personal_snippet/339/6a97572d1bf17094e56d38d78c1006eb/intro.png =500x)


Summary

  • Rsync
    • Offline migration (data files)
    • Online migration (dumps)
  • Snapshots
    • Virtual Machines
    • ZFS/BTRFS
    • Container-based solutions

rsync/scp : offline migration

rsync 1


rsync/scp : online migration

rsync 2


rsync/scp

Possible practical issues :

  • File permissions
  • Postgres permissions
  • SSH keys
  • Configuration mismatch
+ No big architectural changes
- Lots of configuration
- Heavy : will take time to backup and restore
- Hacky ?

Snapshots

![gitflow1.svg](https://gricad-gitlab.univ-grenoble-alpes.fr/uploads/-/system/personal_snippet/339/bd9f6a847e821531acde7831c3afa9c7/gitflow1.svg =100%x)


Snapshots

![gitflow2.svg](https://gricad-gitlab.univ-grenoble-alpes.fr/uploads/-/system/personal_snippet/339/98b95ac5511be266098338fa9197288c/gitflow2.svg =100%x)


Snapshots

![gitflow3.svg](https://gricad-gitlab.univ-grenoble-alpes.fr/uploads/-/system/personal_snippet/339/ab3e6403503c24eb218c9af7a4b8b2f5/gitflow3.svg =100%x)


Snapshots

![gitflow4.svg](https://gricad-gitlab.univ-grenoble-alpes.fr/uploads/-/system/personal_snippet/339/f4da1dc71b31e7f4dfc30e724ad1d826/gitflow4.svg =100%x)


Virtual Machine cloning

- Must fiddle with hypervisor
- We don't want to nest virtual machines

ZFS

cow.gif

Conventional Filesystem


ZFS

cow.gif

Copy on write (CoW)


ZFS

cow.gif

Simplified CoW representation


ZFS

cow.gif

Snapshots using CoW


ZFS

Tools :

+ Automatic / Seamless
- Possible use of untested additional tools/programs
- Additional system complexity 

Container-based solutions

LXD

  • Hypervisor for Linux Containers (LXC) and virtual machines
  • Can use ZFS
  • Canonical maintaned
+ Automatic / Seamless
- Additional architectural complexity 

Kubernetes Volume Cloning

+ Automatic / Seamless
- Additional architectural complexity 
- Definitely Hacky
- Kubernetes
- Better handled with operators/pods