The /etc/rc file contains commands that the storage system executes at boot time to configure the system.
Startup commands are placed into the /etc/rc file automatically after you run the setup command or the Setup Wizard.
Commands in the /etc/rc file configure the storage system to
To understand the commands used in the /etc/rc file on the root volume, examine the following sample /etc/rc file, which contains default startup commands:
#Auto-generated /etc/rc Tue May 30 14:51:36 PST 2000
hostname toaster
ifconfig e0 `hostname`-0
ifconfig e1 `hostname`-1
ifconfig f0 `hostname`-f0
ifconfig a5 `hostname`-a5
route add default MyRouterBox
routed on
savecore
This section explains the sample /etc/rc file:
hostname toaster
Sets the storage system host name to "toaster."
ifconfig e0 `hostname`-0
ifconfig e1 `hostname`-1
ifconfig f0 `hostname`-f0
ifconfig a5 `hostname`-a5
Sets the IP addresses for the storage system network interfaces with a default network mask.
The arguments in single backquotes expand to "toaster" if you specify "toaster" as the host name during setup. The actual IP addresses are obtained from the /etc/hosts file on the storage system root volume. If you prefer to have the actual IP addresses in the /etc/rc file, you can enter IP addresses directly in /etc/rc on the root volume.
For more information about the ifconfig command, see the Network Management Guide.
route add default MyRouterBox
Specifies the default router.
You can set static routes for the storage system by adding route commands to the /etc/rc file. The network address for MyRouterBox must be in /etc/hosts on the root volume.
For more information about routing, see the Network Management Guide.
routed on
Starts the routing daemon.
For more information about routing, see the Network Management Guide.
savecore
Saves the core file from a system panic, if any, in the /etc/crash directory on the root volume. Core files are created only during the first boot after a system panic.
For more information about core files, see About core files.
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01077_B0
File: 7maint10.htm
Last updated: 21-Dec-2005 09:03:29