zfs-localpv/docs
Pawan Prakash Sharma 1b30116e5f
feat(migration): adding support to migrate the PV to a new node (#304)
Usecase: A node in the Kubernetes cluster is replaced with a new node. The 
new node gets a different `kubernetes.io/hostname`. The storage devices
that were attached to the old node are re-attached to the new node. 

Fix: Instead of using the default `kubenetes.io/hostname` as the node affinity 
label, this commit changes to use `openebs.io/nodeid`. The ZFS LocalPV driver 
will pick the value from the nodes and set the affinity.

Once the old node is removed from the cluster, the K8s scheduler will continue 
to schedule applications on the old node only.

User can now modify the value of `openebs.io/nodeid` on the new node to the same
value that was available on the old node. This will make sure the pods/volumes are 
scheduled to the node now. 


Note: Now to migrate the PV to the other node, we have to move the disks to the other node
and remove the old node from the cluster and set the same label on the new node using
the same key, which will let k8s scheduler to schedule the pods to that node.

Other updates: 
* adding faq doc
* renaming the config variable to nodename

Signed-off-by: Pawan <pawan@mayadata.io>
Co-authored-by: Akhil Mohan <akhilerm@gmail.com>

* Update docs/faq.md

Co-authored-by: Akhil Mohan <akhilerm@gmail.com>
2021-05-01 19:05:01 +05:30
..
backup-restore.md chore(doc): add prerequisites for using latest velero-plugin (#295) 2021-03-12 16:16:06 +05:30
clone.md refactor(readme): refactoring readme (#254) 2020-12-14 20:31:38 +05:30
developer-setup-examples.md chore(doc): update docs for GO module support (#160) 2020-06-26 17:11:31 +05:30
developer-setup.md chore(doc): update docs for GO module support (#160) 2020-06-26 17:11:31 +05:30
faq.md feat(migration): adding support to migrate the PV to a new node (#304) 2021-05-01 19:05:01 +05:30
features.md chore(doc): adding docs for backup and restore 2020-09-15 23:31:54 +05:30
grafana-dashboard.md fix(image): updating the screneshot with new dashboard 2020-05-15 21:42:27 +05:30
import-existing-volume.md chore(doc): update the import-existing-volume doc with finalizer info (#313) 2021-04-21 13:46:31 +05:30
prometheus-monitoring.md chore(metrics): adding list of zfs metrics exposed by prometheus 2020-01-17 14:40:42 +05:30
raw-block-volume.md chore(doc): adding raw block volume details in README 2020-05-07 22:25:10 +05:30
resize.md chore(doc): adding btrfs filesystem in the doc 2020-07-08 17:25:08 +05:30
snapshot.md refactor(readme): refactoring readme (#254) 2020-12-14 20:31:38 +05:30
storageclasses.md chore(doc): Updated the readme/docs with zfs-driver scheduler information (#308) 2021-04-15 13:49:26 +05:30