Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save balamurugana/9fadfb7567ed4c95bd0fa166b4cb244a to your computer and use it in GitHub Desktop.
Save balamurugana/9fadfb7567ed4c95bd0fa166b4cb244a to your computer and use it in GitHub Desktop.
Replace drive workaround for DirectPV < 4.0.9
  1. Run command $ kubectl edit directpvdrives <NEW-DRIVE-ID> and add directpv.min.io.volume/pvc-12345678 in the finalizer
  2. Run command $ kubectl directpv cordon <NEW-DRIVE-ID>
  3. Run command $ kubectl edit directpvdrives <NEW-DRIVE-ID> and remove the directpv.min.io.volume/pvc-12345678 finalizer
  4. Run command $ ./replace.sh <OLD-DRIVE-ID> <NEW-DRIVE-ID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment