Editing
Infrastructure Machines
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Moving from one server to another === Here are the steps you would take to move settings and data from one server to a new backup server: * rsync over all /data/customers (we do this cause if we didn't use *-file it would copy over the files AND the data in the mountpoint) rsync -av --progress --ignore-times *-file root@10.1.2.33:/data/customers/ after umounting all the customers, copy over the (empty) directories separately: for f in `find . -type d`; do rsync -av $f root@69.55.229.25:/data/customers; done * copy mount script [root@backup3 /data/customers]# scp /etc/nfs_backup_mounts.sh root@69.55.229.25:/etc/nfs_backup_mounts.sh * copy rc.local [root@backup3 /data/customers]# scp /etc/rc.local root@69.55.229.25:/etc/rc.local * copy /etc/exports [root@backup3 /data/customers]# scp /etc/exports root@69.55.229.25:/etc/exports * edit /etc/hostname on both machines (set current to oldbackup3) * edit /etc/network/interfaces (swap IPs). * stop mounts from mounting on old and new servers so it doesnt start with reboot right away: chmod 000 /etc/nfs_backup_mounts.sh * reboot both servers @ same time * check everything out * run /etc/nfs_backup_mounts.sh on new server * if switch port changed update mrtg to reflect correct port pub nic is on (on p20): vi /usr/local/www/mgmt/mrtg/mrtg1.cfg
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information