head 1.2; access; symbols RELENG_4_11_0_RELEASE:1.1.2.2 RELENG_4_11:1.1.2.2.0.16 RELENG_4_11_BP:1.1.2.2 RELENG_4_10_0_RELEASE:1.1.2.2 RELENG_4_10:1.1.2.2.0.14 RELENG_4_10_BP:1.1.2.2 RELENG_4_9_0_RELEASE:1.1.2.2 RELENG_4_9:1.1.2.2.0.12 RELENG_4_9_BP:1.1.2.2 RELENG_4_8_0_RELEASE:1.1.2.2 RELENG_4_8:1.1.2.2.0.10 RELENG_4_8_BP:1.1.2.2 RELENG_4_7_0_RELEASE:1.1.2.2 RELENG_4_7:1.1.2.2.0.8 RELENG_4_7_BP:1.1.2.2 RELENG_4_6_2_RELEASE:1.1.2.2 RELENG_4_6_1_RELEASE:1.1.2.2 RELENG_4_6_0_RELEASE:1.1.2.2 RELENG_4_6:1.1.2.2.0.6 RELENG_4_6_BP:1.1.2.2 RELENG_4_5_0_RELEASE:1.1.2.2 RELENG_4_5:1.1.2.2.0.4 RELENG_4_5_BP:1.1.2.2 RELENG_4_4_0_RELEASE:1.1.2.2 RELENG_4_4:1.1.2.2.0.2 RELENG_4_4_BP:1.1.2.2 RELENG_4:1.1.0.2; locks; strict; comment @# @; 1.2 date 2001.06.11.01.48.12; author ache; state dead; branches; next 1.1; 1.1 date 2001.04.27.21.27.54; author bmah; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2001.06.01.18.02.55; author bmah; state Exp; branches; next 1.1.2.2; 1.1.2.2 date 2001.06.22.00.29.19; author bmah; state dead; branches; next ; desc @@ 1.2 log @ISO_* -> ISO* rename @ text @ Upgrading &os; These instructions describe a procedure for doing a binary upgrade from an older version of &os;. While the &os; upgrade procedure does its best to safeguard against accidental loss of data, it is still more than possible to wipe out your entire disk with this installation! Please do not accept the final confirmation request unless you have adequately backed up any important data files. These notes assume that you are using the version of &man.sysinstall.8; supplied with the version of &os; to which you intend to upgrade. Using a mismatched version of &man.sysinstall.8; is almost guaranteed to cause problems and has been known to leave systems in an unusable state. The most commonly made mistake in this regard is the use of an old copy of &man.sysinstall.8; from an existing installation to upgrade to a newer version of &os;. This is not recommended. Furthermore, if you are upgrading from &os; 2.2.5 or earlier, see for important details regarding changes to the /etc/fstab file required during the upgrade procedure. Introduction The upgrade procedure replaces distributions selected by the user with those corresponding to the new &os; release. It preserves standard system configuration data, as well as user data, installed packages and other software. Administrators contemplating an upgrade are encouraged to study this section in its entirety before commencing an upgrade. Failure to do so may result in a failed upgrade or loss of data. Upgrade Overview Upgrading of a distribution is performed by extracting the new version of the component over the top of the previous version. Files belonging to the old distribution are not deleted. System configuration is preserved by retaining and restoring the previous version of the following files: Xaccel.ini, adduser.conf, aliases, aliases.db, amd.map, crontab, csh.cshrc, csh.login, csh.logout, daily, disktab, dm.conf, exports, fbtab, fstab, ftpusers, gettytab, gnats, group, hosts, hosts.equiv, hosts.lpd, inetd.conf, kerberosIV, localtime, login.access, mail.rc, make.conf, manpath.config, master.passwd, mib.txt, modems, monthly, motd, namedb, networks, nsswitch.conf, passwd, phones, ppp, printcap, profile, protocols, pwd.db, rc, rc.firewall, rc.i386, rc.local, rc.network, rc.conf, remote, resolv.conf, rmt, security, sendmail.cf, services, shells, skeykeys, spwd.db, supfile, syslog.conf, termcap, ttys, uucp, weekly The versions of these files which correspond to the new version are moved to /etc/upgrade/. The system administrator may peruse these new versions and merge components as desired. Note that many of these files are interdependent, and the best merge procedure is to copy all site-specific data from the current files into the new. During the upgrade procedure, the administrator is prompted for a location into which all files from /etc/ are saved. In the event that local modifications have been made to other files, they may be subsequently retrieved from this location. Procedure This section details the upgrade procedure. Particular attention is given to items which substantially differ from a normal installation. Backup User data and system configuration should be backed up before upgrading. While the upgrade procedure does its best to prevent accidental mistakes, it is possible to partially or completely destroy data and configuration information. Mount Filesystems The disklabel editor is entered with the nominated disk's filesystem devices listed. Prior to commencing the upgrade, the administrator should make a note of the device names and corresponding mountpoints. These mountpoints should be entered here. Do notset the newfs flag for any filesystems, as this will cause data loss. Select Distributions When selecting distributions, there are no constraints on which must be selected. As a general rule, the bin distribution should be selected for an update, and the man distribution if manpages are already installed. Other distributions may be selected beyond those originally installed if the administrator wishes to add additional functionality. After Installation Once the installation procedure has completed, the administrator is prompted to examine the new configuration files. At this point, checks should be made to ensure that the system configuration is valid. In particular, the /etc/rc.conf and /etc/fstab files should be checked. Read the following, but do not update /etc/fstab as described below until the new system has booted correctly. The upgrade procedure replaces the previous &os; kernel with a GENERIC kernel, and a custom kernel may need to be generated to suit the local system configuration. &os; 2.2.6 introduced a change in the naming of the device from which the root filesystem is mounted. This change affects all systems, however user intervention is only required for systems undergoing an upgrade installation from a version prior to &os; 2.2.6. Previously, the root filesystem was always mounted from the compatibility slice, while other partitions on the same disk were mounted from their true slice. This might, for example, have resulted in an /etc/fstab file like: # Device Mountpoint FStype Options Dump Pass# /dev/wd0s2b none swap sw 0 0 /dev/wd0a / ufs rw 1 1 /dev/wd0s2f /local0 ufs rw 1 1 /dev/wd0s2e /usr ufs rw 1 1 For &os; 2.2.6 and later, this format changes so that the device for / is consistent with others. Also, the driver for the ATA-drives has changed from &man.wd.4; to &man.ad.4;, so the new file could look something like: # Device Mountpoint FStype Options Dump Pass# /dev/ad0s2b none swap sw 0 0 /dev/ad0s2a / ufs rw 1 1 /dev/ad0s2f /local0 ufs rw 1 1 /dev/ad0s2e /usr ufs rw 1 1 If /etc/fstab is not updated manually in this case, the system will issue a warning message whenever / is mounted (normally at startup) indicating the change that must be made. In addition, trouble may be experienced if the root filesystem is not correctly unmounted, whereby the root filesystem will not be marked clean at the next reboot. This change should be made as soon as the upgraded system has been successfully rebooted. Alternative Upgrade Techniques Those interested in an upgrade method that allows more flexibility and sophistication should take a look at the Upgrading FreeBSD from source tutorial found at http://www.freebsd.org/docs.html. This method requires reliable network connectivity, extra disk space and spare time, but has advantages for networks and other more complex installations. @ 1.1 log @First commit of RELNOTESng, the rewrite of the *.TXT documentation files. src/release/doc/README has additional information. Reviewed by: -current, -doc @ text @d2 1 a2 1 $FreeBSD$ @ 1.1.2.1 log @MFC: RELNOTESng. I didn't MFC the changes to the release Makefile or the nuking of the *.TXT files. We're not ready for that yet. I just wanted to get the RELNOTESng sources for RELENG_4 into the repository so I can maintain the content in parallel with the *.TXT version of the release notes. These files include an SGML-ified version of RELENG_4's release notes, plus the hardware compatability lists from HEAD (minus CURRENT-specific features such as Cardbus support). @ text @d2 1 a2 1 $FreeBSD: src/release/doc/en_US.ISO_8859-1/installation/common/upgrade.sgml,v 1.1 2001/04/27 21:27:54 bmah Exp $ @ 1.1.2.2 log @MFC: ISO_* -> ISO* rename. @ text @d2 1 a2 1 $FreeBSD: src/release/doc/en_US.ISO_8859-1/installation/common/upgrade.sgml,v 1.1.2.1 2001/06/01 18:02:55 bmah Exp $ @