Recover instance from NFS

From Wikitech
Jump to: navigation, search

Disable per-instance

Note: This procedure disables NFS, which means the contents of /home, /data/project, /public/dumps and /data/scratch will disappear. We can recover them later if you would like.

  1. Go to your instance's Hiera page. This is at Hiera:<projectname>/host/<hostname>.
  2. Add the line: mount_nfs: false
  3. ssh to your instance, and just unmount all the NFS mounts!
  4. You should also check /etc/fstab for old NFS mounts that will return on reboot if you do not remove them. Puppet does not remove existing lines from fstab for you.

DONE!

Enable per-instance

  1. Go to your instance's Hiera page. This is at Hiera:<projectname>/host/<hostname>.
  2. Add the line: mount_nfs: true
  3. Force a puppet run: sudo -i puppet agent --test --verbose