] Display help for menu or command
REBOOT Restart Partition
RECONFIGRESET Reset to BIB
Main Menu : Enter command >
3、将HP-UX 11i v1安装光盘放入光驱
4、键入命令SEA,系统会查询硬件设备的物理路径:
Main menu :Enter command >sea
(例如RP8420)
Path Number Devicepath Device Type
P0 0/0/0/2/0.6 Randomaccess media (硬盘)
P1 0/0/0/3/0.6 Randomaccess media (硬盘)
P2 1/0/0/2/0.6 Randomaccess media (硬盘)
P3 1/0/0/3/0.6 Randomaccess media (硬盘)
P4 0/0/0/2/1.2 Random access media (光驱)
如果是RP4440将出现类似下列设备:
Path Number Devicepath Device Type
P0 1/0/1/1/1.0 Randomaccess media (硬盘)
P1 2/0/1/1/0.1 Randomaccess media (硬盘)
P3 0/0/3/0.0 Random access media (光驱)
5、根据'device path确定光驱或DVD的路径
键入命令bo p4回车:
Main Menu:Enter command>boot p4
6、系统会询问是否要进行交互访问,要输入 n回车
Interact with IPL? > n
7、系统要求选择安装方式:
Welcome to the HP-UX installation/recovery process!
Use the key to navigate between fields,andthe arrow keys
Within fields.Use the key to select an item .
Use the or to pop-up a choices list.If the
Menus are not clear,select the "Help" item for more information.
[Install HP-UX ]
[Run a Recovery Shell]
[Advance Options ]
选择[Install HP-UX],回车继续。
8、屏幕出现: User Interface And Media Options
Source Location Options:
[*] Media onlyinstallation
[ ] Media with Network enabled(allows use of SD depots)
[ ] Idnite-UX server based installation
User Interface Option:
[*]Guided Installation (recommand for basic installs)
[ ]Advanced Installation
选择[*]Media only installation和[*]GuidedInstallation两项,[*] 为选中状态,然后OK.
9、屏幕出现:
Basic Software System File system Advanced
Configrations:[……………………………………….] [Description…]
Environments:[……………………………………....] [HP-UX B.11.11]
[Root Disk….]……………………………………………………………
File System :[Logical Volume Manager withVxFS ]
[Root Swap(MB)]…… Physical Memory (RAM) =……
[Languages…….]…… [Keyboards…] [Additional….]
对于Basic中的内容不要做任何修改,保留默认值。
10、选中File System,显示如下
(表中数据只是为例,有的数据被省略)
Basic Software System File system Advanced
Mount Dir Usages Size(MB) % used VG Name
/stand HFS 84 24 vg00 [Add]
Primary SWAP+D --- -- ---- [Modify]
/ VxFS -- -- --- [Remove]
Usage :[…..] VG name: [ ] Mount Dir :………..
Size: [Fixed MB ]----- Avail:------
[Add/Remove Disks…] [---Additional Task---]
在这里可以修改各系统文件的空间大小
Type Filesystem kbytes used avail %used Mounted on
hfs /dev/vg00/lvol1 199381/200M 29440 150002 16% /stand
*** /dev/vg00/lvol2 199381/2048M ***** ****** **% /***
vxfs /dev/vg00/lvol3 258048/252M 152942 98537 61% /
vxfs /dev/vg00/lvol4 1048576/1024M 1357 981768 0% /home
vxfs /dev/vg00/lvol5 1048576/1024M 309329 693045 31% /opt
vxfs /dev/vg00/lvol6 512000/500M 1449 478642 0% /tmp
vxfs /dev/vg00/lvol7 1048576/1024M 530219 485960 52% /usr
vxfs /dev/vg00/lvol8 2097152/2048M 397013 1593881 20% /var
vxfs /dev/vg00/lvol9 2097152/2048M 1776350 300752 86% /sybase
根据要求设置各文件系统的大小与下表一致:
Mount Dir L2000(MB) Usage
Primary swap 建议与内存大小一致 Swap+D
/ 1024M VxFS
/stand 512M HFS
/var 4096M VxFS
/usr 2048M VxFS
/Tmp 2048M VxFS
/Opt 4096M VxFS
/home 2048M VxFS
如果屏幕上的各个文件系统的缺省值与用户要求不一样,要进行修改,
每次修改之后要按Modify项确认,以便保留设置。
设置完毕,GO,继续下一步。
11、接着系统会提示被安装的硬盘上的原有数据将被破坏,选GO,继续。
12、这时候系统文件的安装开始,屏幕显示,
Loading configuration utilitys……..
*Starting system configuration…….
*…………………………………..
………………………………………
最后系统自动重启两次,提示安装成功。
5.2.3 配置操作系统
系统安装完全后,会通过交互式方式来进行系统的一些基本配置。
1、重启后,系统要求配置网络
Are you ready to link this system to a network?
Press[y]for yes or [n] for no .then press [Return]
键入y,回车
2、系统询问是否使用DHCP:
Do you wish to use DHCP to obtain networking information ?
Press [y] for yes or [n] for no .then press [Return]
键入n,回车
3、系统询问是否继续下面的主机名。Ip地址。时间的配置:
*Your system name (host name)
*Your internet protocol (IP0 address.
*Your time zone
Are you wish to continue (answering no will HALT the system)?
Press [y] for yes or [n] for no .then press [Return]
键入y,回车
4、接着下一个画面底下两行将显示:
Enter the system name ,,then press [Return].Just pressing [Return]will keep the(not recommended)name "unhost": root
在光标处输入你想要的系统名,例如root然后回车
然后系统询问是否正确:
You have chosen root as the name for this system .
Is this correct?
Press [y] for yes or [n] for no .then press [Return]
键入y,回车
5、屏幕要求你选择你所在的位置:
1) North America or Hawaii
2) Central America
3) South America
4) Europe
5) Africa
6) Asia
7) Australia,New Zealand
Enter the number for your location (1-70then press [return]
键入6,选择Asia ,然后回车
6、接下来要求选择时间:
Select your time zone from the following list:
1)Western Russia 6)Phillipines,hongkong,Eastern China ,Taiwan
2)India 7)Japan
3)Pakistan 8)Korea
9)Thailand 9)Unlisted time zone
5)Singapore 10)Previous menu
Enter the nunber for your tiiiiiime zone(1-10),then press [Return]
键入6,回车继续
系统会询问选择是否正确:
Is this correct ?
Press [y] for yes or [n] for no .then press [Return]
键入y,回车
7、屏幕显示:
The current system time is --------------
Is this correct?
Press [y] for yes or [n] for no .then press [Return]
看系统的时间是否正确,如果不需要修改,键入y,回车
8、系统询问是否想设root的密码:
Do you want to set the root password at this time?
Press [y] for yes or [n] for no .then press [Return]
键入y,回车,系统提示输入新密码,键入密码,回车继续
9、系统要求输入IP地址:
Enter your IP address,then press [Return]or just press [Return] to select
Default address:
输入IP地址,回车,屏幕出现:
You have chosen------as the IP address for this system,
Is this correct ?
Press [y] for yes or [n] for no .then press [Return]
如果觉得输入的IP没有错误,键入y,回车确认。
10、屏幕出现:
You may configure some additional network parameters at this time :
*Subnetwork Mask and Default Gateway
*Domain Name System(DNS)
*Network Information Service(NIS)
Do want to configure these additional network parameters?
Press [y] for yes or [n] for no .then press [Return]
键入y,回车
11、接下来系统问是否要设置子网掩码和网关:
*Subnetwork mask
*Default gateway IP address
Do you wish to specify this information ?
Press [y] for yes or [n] for no .then press [Return]
键入y,回车
12、屏幕底行出现:
The subnetwork mask shown above is the system default value and possibly shouldbe changed.Enter the new subnetwork mask,then press [Return]or just prss[Return] to use the default value above:
输入你要的子网掩码,回车
13、接着系统要求输入网关:
Enter the gateway IP address,then press [Return]
输入网关,回车
14、系统询问刚才的输入是否正确:
Are the parameters above correct?
Press [y] for yes or [n] for no .or [c] to cancel ,then press [Return]
确认无误,键入y,回车之后,系统显示:Are youcontinue ?
确认继续后,回车。
15、系统询问是否进行DNS设置:
To configure DNS you will need to known the :
*Local domain name
*DNS server IP address
Do you wish to specify this information ?
Press [y] for yes or [n] for no,then press [Return]
键入n,回车。
16、系统询问是否设置NIS:
Do you wish to specify NISclient information ?
Press [y] for yes or [n] for no .then press [Return]
键入n,回车。
17、在屏幕出现Press [Return] to continue ……时,回车继续。
18、接着又出现Press [Return] to continue ……时,回车继续
19、这时候屏幕出现进程检测状态,然后用户便可登录系统了,安装结束。
5.2.4 安装系统补丁
在操作系统启动安装完成后,需要安装系统补丁,即HP-UX 11iVersion 1 Support Plus中的补丁包,包含BUNDLE11i、GOLDQPK11i、HWEnable11i。
首先登录到系统中,放入补丁光盘,mount CDROM
# mount /dev/dsk/c0t0d0 /cdrom
再用swinstall命令进行安装
# swinstall –s /cdrom/BUNDLE11i
在Action中选择markedfor install,再选择install
# swinstall –s /cdrom/ HWEnable11i
在Action中选择markedfor install,再选择install
# swinstall –s /cdrom/ GOLDQPK11i
在Action中选择markedfor install,再选择install
安装完成后,用以下命令进行验证
#swlist|more
5.2.5 安装megpatch
在系统补丁安装完成后,需要安装最新的megpatch。
首先登录到系统中,放入megpatch光盘,mount CDROM
# mount /dev/dsk/c0t0d0 /cdrom
再用swinstall命令进行安装
# swinstall –s /cdrom/2007Jun.DEPOT
在Action中选择markedfor install,再选择install
安装完成后,用以下命令进行验证
#swlist|more
5.3 根盘镜像
每个主机系统均配置了两块内置硬盘,用MirrorDisk/UX软件实现根盘镜像。
1、操作系统安装完成后会占用一块硬盘作根盘,确认根盘,见下例:
#lvlnboot -v
BootDefinitions for Volume Group /dev/vg00:
PhysicalVolumes belonging in Root Volume Group:
/dev/dsk/c2t1d0 -- Boot Disk
/dev/dsk/c3t0d0
Boot:lvol1 on: /dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c2t0d0, 0
此系统初始设置 c2t0d0是根盘
2、找到另外一块没有镜像的盘 c3t0d0
3、在另外一块硬盘上做系统镜像
# pvcreate -fB /dev/rdsk/c3t0d0
# vgextend /dev/vg00 /dev/dsk/c3t0d0
# mkboot /dev/rdsk/c3t0d0
# mkboot -a "hpux -lq"/dev/rdsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol1/dev/dsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol2/dev/dsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol3/dev/dsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol4/dev/dsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol5/dev/dsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol6/dev/dsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol7/dev/dsk/c3t0d0
# lvextend -m 1 /dev/vg00/lvol8/dev/dsk/c3t0d0
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -R /dev/vg00
4、查看镜像是否成功
#lvlnboot -v
Boot Definitions for Volume Group/dev/vg00:
Physical Volumes belonging in RootVolume Group:
/dev/dsk/c2t1d0 -- Boot Disk
/dev/dsk/c3t0d0 -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0
/dev/dsk/c3t0d0
Root: lvol3 on: /dev/dsk/c2t1d0
/dev/dsk/c3t0d0
Swap: lvol2 on: /dev/dsk/c2t1d0
/dev/dsk/c3t0d0
Dump: lvol2 on: /dev/dsk/c2t1d0, 0
第6章 通过磁带恢复安装操作系统步骤
当需要安装多台同样的服务器时,可以通过备份已经安装的系统,然后用内置磁带机进行系统恢复的方式安装。具体步骤如下:
6.1 系统备份
在系统安装完成(包含系统补丁和megpatch)后,需要对系统进行备份,以便在系统crush后可以尽快恢复系统。
1、 把磁带放入磁带机
2、 用root登录系统,执行以下命令
#make_tape_recovery-Av
此命令备份整个根盘逻辑卷组。
磁带机指示灯开始闪烁,待备份完成后,系统会提示compeletely successful,磁带机指示灯会长亮绿灯,这时可以取出磁带保管。
6.2 恢复系统
1、 打开磁带机电源,插入系统备份磁带,指示灯长亮绿色;
2、 开启主机电源,当出现“To discontinue the boot, press any key with 10 second”时,按任意键进入BCH维护模式;
---Main Menu ---------------------------------------------------------------
Command Description
------- -----------
BOot [PRI|HAA|ALT|] Boot from specified path
PAth [PRI|HAA|ALT] [] Display or modify a path
SEArch[ALL||] Search for boot devices |
ScRoll [ON|OFF] Display or change scrollingcapability
COnfiguration menu Displays or sets boot values
INformation menu Displays hardware information
SERvice menu Displays service commands
DIsplay Redisplay thecurrent menu
HElp [