OS images become unavailable: Difference between revisions

From GigaTux Wiki
Jump to navigation Jump to search
Created page with "OS images are stored on both '''node00001.gigatux.com''' and '''node01001.gigatux.com'''. They are mounted via NFS on each other physical server. Sometimes, the NFS connection c..."
 
No edit summary
 
Line 1: Line 1:
OS images are stored on both '''node00001.gigatux.com''' and '''node01001.gigatux.com'''. They are mounted via NFS on each other physical server.
OS images are stored on both '''node00001.gigatux.com''' and '''node01001.gigatux.com'''. They are mounted via [http://en.wikipedia.org/wiki/SSHFS SSHFS] on all other physical servers.


Sometimes, the NFS connection can go down. Unfortunately, NFS is a kernel-level server so sometimes this means that it's really difficult to get it running again.
We used to use NFS but this regularly went down. However, NFS mounts still exist.


As a backup, we can use [http://en.wikipedia.org/wiki/SSHFS SSHFS] which is basically a filesystem mounted using SSH. This is pretty reliable. To get this working, the old NFS mounts need to be unmounted and SSHFS needs to be set up. The following commands achieve this:
If you need to remount the SSHFS mounts for whatever reason, type the following commands:


* umount -l /usr/share/dtc-xen-os
* umount -l /usr/share/dtc-xen-os
Line 11: Line 11:
* sshfs [email protected]:/usr/share/dtc-xen-app/ /usr/share/dtc-xen-app/
* sshfs [email protected]:/usr/share/dtc-xen-app/ /usr/share/dtc-xen-app/
* sshfs [email protected]:/usr/share/dtc-xen-hvm/ /usr/share/dtc-xen-hvm/
* sshfs [email protected]:/usr/share/dtc-xen-hvm/ /usr/share/dtc-xen-hvm/
If everything fails, the NFS mountpoints are still available so something like the below should work:
* umount -l /usr/share/dtc-xen-os
* umount -l /usr/share/dtc-xen-app
* umount -l /usr/share/dtc-xen-hvm
* mount -v node01001.gigatux.com:/usr/share/dtc-xen-os /usr/share/dtc-xen-os -o rsize=65526,wsize=65536,proto=udp,noauto,vers=3
* mount -v node01001.gigatux.com:/usr/share/dtc-xen-app /usr/share/dtc-xen-app -o rsize=65526,wsize=65536,proto=udp,noauto,vers=3
* mount -v node01001.gigatux.com:/usr/share/dtc-xen-hvm /usr/share/dtc-xen-hvm -o rsize=65526,wsize=65536,proto=udp,noauto,vers=3

Latest revision as of 12:39, 25 January 2013

OS images are stored on both node00001.gigatux.com and node01001.gigatux.com. They are mounted via SSHFS on all other physical servers.

We used to use NFS but this regularly went down. However, NFS mounts still exist.

If you need to remount the SSHFS mounts for whatever reason, type the following commands:

  • umount -l /usr/share/dtc-xen-os
  • umount -l /usr/share/dtc-xen-app
  • umount -l /usr/share/dtc-xen-hvm
  • sshfs [email protected]:/usr/share/dtc-xen-os/ /usr/share/dtc-xen-os/
  • sshfs [email protected]:/usr/share/dtc-xen-app/ /usr/share/dtc-xen-app/
  • sshfs [email protected]:/usr/share/dtc-xen-hvm/ /usr/share/dtc-xen-hvm/

If everything fails, the NFS mountpoints are still available so something like the below should work:

  • umount -l /usr/share/dtc-xen-os
  • umount -l /usr/share/dtc-xen-app
  • umount -l /usr/share/dtc-xen-hvm
  • mount -v node01001.gigatux.com:/usr/share/dtc-xen-os /usr/share/dtc-xen-os -o rsize=65526,wsize=65536,proto=udp,noauto,vers=3
  • mount -v node01001.gigatux.com:/usr/share/dtc-xen-app /usr/share/dtc-xen-app -o rsize=65526,wsize=65536,proto=udp,noauto,vers=3
  • mount -v node01001.gigatux.com:/usr/share/dtc-xen-hvm /usr/share/dtc-xen-hvm -o rsize=65526,wsize=65536,proto=udp,noauto,vers=3