Nvision.com, Inc.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Table of Contents Introduction .................................................................................................................................................................1 Starting the Shadow Process.......................................................................................................................................1 Creating Users ................................................................
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Introduction The shadow process for a FreeBSD Server to a FreeBSD v2 Server is meant to be a selfmigration for users with VPS experience. This document does not explain the differences between a FreeBSD Server and a FreeBSD v2 Server. However, this document steps you through the basics of how to migrate your FreeBSD Server to a FreeBSD v2 Server.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Creating Users Your first task after the shadow process is to create your users by running the addaccounts.pl script. To do this: 1. SHH to your new FreeBSD v2 Server and in the command line, type: % cd /.migrate/bin %./addaccounts.pl accountname where “accountname” is your old FreeBSD Server account owner.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server i. Press Enter to create the directory. j. Press Enter or type y if the information is correct. k. Select a location for the transfer logs. l. Press Enter or type y if the information is correct. m. Select a location for the error logs. n. Press Enter or type y if the information is correct. o. Select an option for CGI execution for this virtual host. p. Press Enter or type y if the information is correct. q.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Migrating Sendmail and Mail programs If you are using Procmail, Spamassassin, Majordomo, or any other mail program that needs to make modifications to the sendmail.cf file, you need to: 1. Do a vinstall of these programs first. To see a list of available vinstalls type the following at the shell command line: % vinstall -l 2.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server The migratesm script updates ALIASES_TODO and backs up the previous copy in /etc/mail/ALIASES_TODO.0. Additionally, if you have any Majordomo mailing list in the default location of ~/usr/local/majordomo/Lists/, those lists will be copied to the FreeBSD v2 Server default location of /usr/local/majordomo/lists/. 8.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Vinstalling Additional Add-ons Since your server is a new server, you will need to vinstall any additional programs that you may have installed on your FreeBSD Server account. There may not be a vinstall for some of the programs that you had installed in the FreeBSD Server account with vinstalls. If this is the case, you can install the program using the FreeBSD Ports collection.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Migrating Databases Only MySQL, the most popular database that is used with the VPS servers, is covered. 1. Vinstall the MySQL database by typing the following at the shell prompt: % vinstall mysql The vinstall will prompt you whether to install MySQL using the Ports collection or FreeBSD Server style. For convenience, choose the FreeBSD Server style of installation. This will install MySQL and start the MySQL daemon for you. 2.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Moving Your Custom Digital Certificate The default digital certificate is already on your new VPSv2 server. This procedure applies only to custom certificate. 1. Using FTP or another method, copy the certificate and Private Key files to the new server. Both the certificate and the key are stored in the ~/etc/ directory of the FreeBSD Server server. The certificate should be in a file named ssl.cert, and the key should be in the ssl.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server Migrating Time-Sensitive Material There are three areas requiring migration that are time sensitive: • DNS • Mail • Databases These have to be migrated with minimum downtime and without losing information. For this reason, they migrated last. Perform the following steps precisely in order to achieve the best results. 1. S SSH into your new FreeBSD v2 Server and add the following line to the /etc/hosts.
Nvision.com, Inc. Migrating from a FreeBSD Server to a FreeBSD v2 Server domain will now point to the FreeBSD v2 Server instead. You will need to do this manually since there may be many different names for mail folders. 7. Migrate your databases from MySQL. To do this, SSH into your FreeBSD Serverusing the IP address. 8.
Document Conventions The conventions used in this document are designed to be completely predictable and are used for the following specific purposes. Conventions List Typeface Italic Bold Blue Underline Cross-Reference Operating System Text Program Code Usage Used to indicate the following: • The first mention of new terms in any information unit. For example: The rudaplex and the strataguide have been the modified for this model.
Special Elements These elements provide a variety of information ranging from warnings that the reader should not neglect to supplementary information and tips that will simply enhance their reading experience. Tip Used to point out helpful ideas, some not-so-obvious features, quick or alternate ways to get a particular job done, and techniques you might not discover by yourself. The Tip List special element is used when multiple tips are used. Note: Used to highlight certain information for the reader.