HP-UX的安装

安装所需的介质和资料:
HP-UX 11.0 Core OS Install/Update/Recovery光盘(1张)
HP-UX 11.0 Support Plus光盘(1张)
HP-UX 11.0 Application Software光盘(5张)
1.安装前的准备:
在系统的安装之前检查机器的各线连接,将机器通过网线接到hub上,并且在确保各个外设(磁带机.磁盘阵列等)加电后,然后再开机。
2.在屏幕上将看到:
"Processor is booting from fist availiable device
To discontinue.press any keuy within 10 seconds"
在10秒之内按任意键,之后屏幕将显示一9个命令集画面:
Main Menu…………………………………………….
Command Description
Boot[PRI|ALT|<path>] Boot from specified path
……………………… ………………………
……………………… ………………………
……………………… ………………………
Main Menu : Enter command >
3.将HP-UX11.0CoreOSInstall/Update/Recovery放入光驱或DVD,
4.键入命令SEA,系统会查询硬件设备的物理路径:
Main menu :Enter command >sea
(例如)
Path Number Device path Device Type
P0 8/4.5 Random access media
P1 8/4.9 Random access media
P2 … …………
5.根据'device path如:8/4.5'与机器前门内标注(D250)确定光驱或DVD的路径,
假设为P1 8/4.9
键入命令bo p1回车:
Main Menu:Enter command>bo p1
6 .系统会询问是否要进行交互访问,要输入 n回车
Interact with IPL? > n
注意: :接下来可能出现屏幕乱码现象,解决方法:
按User System 键,屏幕底出现8个小亮块,最右边一块为
按F8键,8个亮块发生变化,其中有一个为 ,按F5键, 进入TERMINAL CONFIGURATIONJIEMIAN界面,
将TERM MODE项的值改为EM100),然后按F1,保存设置
7.系统要求选择安装方式:
Welcome to the HP-UX installation/recovery process!
Use the <tab> key to navigate between fields,and the arrow keys
Within fields.Use the <return/enter>key to select an item .
Use the <return>or <spacebar>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 Optionslllllllll
Source Location Options:
 [*] Media only installation
[ ] 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和[*]Advanced Installation两项,[*] 为选中状态,然后OK.
8.屏幕出现:
Basic Software System File system Advanced
Configrations:[……………………………………….] [ Description…]
Environments:[……………………………………....] [HP-UX B.11.00]
[Root Disk….]……………………………………………………………
File System :[Logical Volume Manager <LVM> with VxFS ]
[Root Swap(MB)]…… Physical Memory (RAM) =……
[Languages…….]…… [Keyboards…] [Additional….]
对于Basic中的内容不要做任何修改,保留默认值。
9.选中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 xxx Swap+D
/ xxx VxFS
/stand xxx HFS
/var xxx VxFS
/usr xxx VxFS
/Tmp xxx VxFS
/Opt xxx VxFS
/home xxx VxFS
如果屏幕上的各个文件系统的缺省值与用户要求不一样,要进行修改,
每次修改之后要按Modify项确认,以便保留设置。
设置完毕,GO,继续下一步。
10.接着系统会提示被安装的硬盘上的原有数据将被破坏,选GO,继续。
11.这时候系统文件的安装开始,屏幕显示,
Loading configuration utilitys……..
*Starting system configuration…….
*…………………………………..
………………………………………
整个过程包括710个文件的安装,需要较长时间(大约2小时),请耐心等待,最后系统自动重启两次,显示大大的OK字样,提示安装成功。
12.重启后,,系统要求配置网络
Are you ready to link this system to a network?
Press[y]for yes or [n] for no .then press [Return]
键入y,回车
13.系统询问是否使用DHCP:
Do you wish to use DHCP to obtain networking information ?
Press [y] for yes or [n] for no .then press [Return]
键入n,回车
14.系统询问是否继续下面的主机名。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,回车
15.接着下一个画面底下两行将显示:
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,回车
16.屏幕要求你选择你所在的位置:
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 ,然后回车
17.接下来要求选择时间:
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,回车
18.屏幕显示:
The current system time is --------------
Is this correct?
Press [y] for yes or [n] for no .then press [Return]
看系统的时间是否正确,如果不需要修改,键入y,回车
19.系统询问是否想设root的密码:
Do you want to set the root password at this time?
Press [y] for yes or [n] for no .then press [Return]
键入y,回车,系统提示输入新密码,键入密码,回车继续
20.系统要求输入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,回车确认。
21.屏幕出现:
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,回车
22.接下来系统问是否要设置子网掩码和网关:
*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,回车
23.屏幕底行出现:
The subnetwork mask shown above is the system default value and possibly should be changed.Enter the new subnetwork mask,then press [Return]or just prss [Return] to use the default value above:
输入你要的子网掩码,回车
24.接着系统要求输入网关:
Enter the gateway IP address,then press [Return]
输入网关,回车
25.系统询问刚才的输入是否正确:
Are the parameters above correct?
Press [y] for yes or [n] for no .or [c] to cancel ,then press [Return]
确认无误,键入y,回车之后,系统显示:Are you continue ?
确认继续后,回车。
26.系统询问是否进行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,回车。
27.系统询问是否设置NIS:
Do you wish to specify NIS client information ?
Press [y] for yes or [n] for no .then press [Return]
键入n,回车。
28.在屏幕出现Press [Return] to continue ……时,回车继续。
29.接着又出现Press [Return] to continue ……时,回车继续
30.这时候屏幕出现进程检测状态,然后用户便可登录系统了,安装结束。
31.进入SAM Disks and File System Fil system中查看各文件系统的大小等各种信息是否与要求一致。
Mount Dir L2000(MB) Usage
Primary swap xxx Swap+D
/ xxx VxFS
/stand xxx HFS
/var xxx VxFS
/usr xxx VxFS
/Tmp xxx VxFS
/Opt xxx VxFS
/home xxx VxFS
二.AUTO RAID的磁盘空间分配
L2000下的AUTORAID中共有5块18.2G的硬盘,可用空间49,038MB,
1.进入SAM disk and file system disk device
    选中设备 HP auto-raid disk array controller
    然后进入Action disk array maitance Bind LUN
    输入大小为xxxxMB
2.同样方法建立容量xxxxMB的LUN共5个
3.删除缺省的大小为2048MB的LUN:
   Action disk array maitance UNBind LUN
2. 最后剩下xxxxMB,分成一个LUN.
3. 同时选中这6个逻辑盘,在Action configure using Logical Volume Manage中创建vg01
4. 将vg01按LVOL01…..LVOL10....的顺序建立大小为xxxx的逻辑单元n个。
7.在SAM Logical Volume Manage中查看刚才自己的设置是否符合要求。
三.HP-UX 11.0系统的补丁安装
1. 以root身份登录,将光盘Support Plus user's Guide放入
5. 建立目录: mkdir /cdrom
6. 使用ioscan -fnCdisk 命令查看DVD或CD-ROM的路径为cntndn
4.使用mount /dev/dek/cntndn /cdrom命令
5.使用lsf /cdrom命令浏览光盘上的内容,目录XSWHWCR1100/和XSWGR1100/即是补丁路径
6.首先安装文件XSWHWCR1100/
     命令为:swinstall -s /cdrom/XSWHWCR1100/
7.进入SD Install 界面,选中XSWHWCR/,在Action选项中选择Manage….,进入Manage Patch Selection界面,将上方的两个Automatically….项,全部选中为[X]状态。
8.选择OK,在出现的Configuration框中选YES,接下来的目标文件搜索过程有时需要几分钟,不要误以为死机。
9.然后屏幕显示跟刚进入SD Istall时一样,只有一行
     XSWHWCR1100/………….
     在Action中选Installation,出现一个以百分比显示安装进度的画面,表明安装正常,需10分钟左右
10.安装完毕,系统自动重启
11.相同的方法安装XSWGR/文件。
Hostname:wndy_srv

lvcreate -n lvol9 -L 5000 /dev/vg00
newfs –F vxfs /dev/vg00/rlvo9
mkdir /Sybase
mount /dev/vg00/lvol9 /Sybase

#ioscan fnCdisk
pvcreate B /dev/rdsk/c2t6d0
vgextend /dev/vg00 /dev/dsk/c2t6d0
mkboot /dev/vdsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t6d0
mkboot -a"hpun (;0)/stand/vmunix" /dev/dsk/c2t6d0
lvlnboot -b /dev/vg00/lvol1
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -v
lvlnboot –R
#shutdown –ry 0

create PV
#iosacn –fnCdisk
#pvcreate –f /dev/rdsk/c3d0t0
#pvcreate –f /dev/rdsk/c5d0t0

#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
vgcreat vg01 /dev/dsk/c3d0t0 /dev/dsk/c5d0t0 /dev/dsk/c7d0t0 /dev/dsk/c9d0t0


2.create the LV
lvcreate -n tss_data01 -L 5000 /dev/vg01
lvcreate -n tss_data02 -L 5000 /dev/vg01
lvcreate -n tss_data03 -L 5000 /dev/vg01
lvcreate -n tss_data04 -L 5000 /dev/vg01
lvcreate -n tss_data05 -L 5000 /dev/vg01
lvcreate -n tss_data06 -L 5000 /dev/vg01
lvcreate -n tss_data07 -L 5000 /dev/vg01
lvcreate -n tss_data08 -L 5000 /dev/vg01
lvcreate -n tss_back01 -L 10000 /dev/vg01
lvcreate -n tss_back02 -L 10000 /dev/vg01
lvcreate -n tss_log01 -L 2000 /dev/vg01
lvcreate -n tss_log02 -L 2000 /dev/vg01
lvcreate -n tss_log03 -L 2000 /dev/vg01
lvcreate -n tss_log04 -L 2000 /dev/vg01
lvcreate -n tss_log05 -L 2000 /dev/vg01
lvcreate -n sybmaster_2k -L 100 /dev/vg01
lvcreate -n sybmaster_4k -L 100 /dev/vg01
lvcreate -n sybsysproc_2k -L 120 /dev/vg01
lvcreate -n sybsysproc_4k -L 120 /dev/vg01

newfs –F vxfs /dev/vg01/rtss_back01
mkdir /Sybase/tss_back01
mount /dev/vg01/ tss_back01 /Sybase/ tss_back01

#netstat –i
#netstat -r
/etc/rc.config.d/netconfi
RARP=0

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=156.32.16.8
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]= 156.32.16.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0

ROUTE_DESTINATION[1]="default"
ROUTE_GATEWAY[1]= 156.32.16.6
ROUTE_MASK[1]="255.255.255.0"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

Ndd –set /dev/ip ip_send_source_quench 0  (only HP-UX11.0)

Vi /etc/fstab
/dev/vg00/lvol9 /sybase vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg01/tss_back01 /sybase/tssback vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2 

 

你可能感兴趣的:(basic,System,action,Parameters,NetWork,interface)