Difference between revisions of "Tech:NFS"

From Meta
Jump to navigation Jump to search
(move mw static here)
(these are technical docs really - we don't need background on where dumps are stored here + some doc todos)
 
Line 1: Line 1:
 
<useful documentation>
 
<useful documentation>
   
== MediaWiki Static ==
+
== Adding New Mounts ==
  +
[TODO]
'''This section is a draft and may not be fully accurate.'''
 
   
  +
== Adding New Servers ==
'''MediaWiki Static''' is used for hosting files on Miraheze and can be found at https://static.miraheze.org. It is also used for uploading [[Backups]] (dumps) to https://static.miraheze.org/dumps.
 
  +
The below works well in both adding new servers and ''immediate failover''.
   
 
If you are intending on doing an immediate failover, then change Bacula to restore static to another server of your choosing [https://github.com/miraheze/puppet/blob/master/modules/bacula/templates/director/bacula-dir.conf#L334] and then continue with the below.
[Not sure about this one] It is hosted on [[Tech:Cp1]] and [[Tech:Cp2]] but can also be accessed on [[Tech:Mw1]] and [[Tech:Mw2]]
 
   
{{Ping|John}} Needs to take a look a this and correct mistakes and better define the functionality of MW static.
 
 
 
== Failover-recovery ==
 
 
# Change Bacula to restore static to another server of your choosing [https://github.com/miraheze/puppet/blob/master/modules/bacula/templates/director/bacula-dir.conf#L334]
 
 
# Add 'role::staticserver' to the new server and run puppet
 
# Add 'role::staticserver' to the new server and run puppet
 
# Restore the Bacula content to /srv/mediawiki-static and restart the NFS server and kernel
 
# Restore the Bacula content to /srv/mediawiki-static and restart the NFS server and kernel

Latest revision as of 17:42, 1 January 2017

<useful documentation>

Adding New Mounts[edit | edit source]

[TODO]

Adding New Servers[edit | edit source]

The below works well in both adding new servers and immediate failover.

If you are intending on doing an immediate failover, then change Bacula to restore static to another server of your choosing [1] and then continue with the below.

  1. Add 'role::staticserver' to the new server and run puppet
  2. Restore the Bacula content to /srv/mediawiki-static and restart the NFS server and kernel
  3. Change the mount on MediaWiki servers [2]