#/usr/sbin/swap -a /path/filename
Swap文件必须以绝对路径来指定,filename指的是上一步创建的文件。
4.现在新加的Swap文件已经起作用了,但系统重新启动以后,并不会记住前几步的操作。因此要在/etc/vfstab文件中记录文件的名字,和Swap类型,如:
/path/filename - - Swap - no -
5.效验Swap文件是否加上 /usr/sbin/swap -l
删除多余的Swap空间
1.成为超级用户
2.使用swap -d 命令收回swap空间。
#/usr/sbin/swap -d /path/filename
3.编辑/etc/ufstab文件,去掉此Swap(交换)文件的实体。
4.从文件系统中回收此文件。
#rm swap-filename
5.当然,如果此Swap(交换)空间不是一个文件,而是一个分区,则需创建一个新的文件系统,再挂接到原来的文件系统上。
如何使用网络方式安装soalris?
hello回答:
Installing Solaris Over The Network
Featured Article on SunHelpDesk
Author: John Richardson
Date: Oct 19, 2000
Typically, most Solaris installations use the system's internal cdrom. However, there are times when you will need to install over the network. For instance, you do not have an external cdrom, and need to install Solaris on a Netra T1 that is not equipped with an internal cdrom.
Alternatively, you may want to setup a Jumpstart server in which you can limit the interaction needed to complete the installation. Jumpstart servers are relatively complex to setup, and are typically used in a large environment where multiple systems need to be installed identically.
This document details the steps needed for a simple network installation of Solaris on the same subnet. The examples use Solaris 8 as a reference. Refer to the "Advanced Installation Guide" that accompanies your installation media for more details.
Assumptions:
* Using /etc files and not a name service such as NIS or NIS+.
* All associated servers are on the same subnet(no router between servers).
Create Install Server
An Install Server must be created by copying the Solaris 8 CD images to its hard drive.
Insert the CD labeled Solaris 8 software 1 of 2 into the CDRom drive
Volume manager automatically mounts the cdrom. Otherwise mount manually.
Make a directory where the Solaris images will be stored. Be sure that there is enough space to allocate to the CD images
# mkdir /var/Solaris8
Change directories to the Tools directory
# cd /cdrom/sol_8_sparc/s0/Solaris_8/Tools
Copy the image from the CD to the install directory
# ./setup_install_server /var/Solaris8
Eject the CD. Insert CD labeled Solaris 8 Software 2 of 2 into the cdrom drive
Volume manager automatically mounts the cdrom
Change directories to the Tools directory
# CD /cdrom/sol_8_sparc_2/Solaris_8/Tools
Copy the image from the CD to the install directory.
# ./add_to_install_server /var/Solaris8
Configure System to be Installed over Network
Be sure to collect the following information on the new system:
* Host name
* IP address
* Ethernet address
* Platform Group