《aix系统应用基础》07 devices.ppt
合集下载
《aix系统应用基础》07 devices-精选文档

1 1
root root
system system
22,0 22,1
Oct 29 02:25 Oct 29 02:25
rmt0 rmt0.1
1 1 2 1
root root root root
system system system system
14,1 14,2 14,1 14,2
Oct 29 02:44 Nov 1 05:31 Oct 29 02:44 Nov 1 05:31
hdisk0 hdisk1 rhdisk0 rhdisk1
rmt0 fd0
© Copyright IBM Corporation 2019
rmt1
Device configuration database
Predefined Configuration Database
Class memory tape disk adapter adapter adapter adapter Name sa0 sioka0 rmt0 hdisk0 hdisk1 mem0 ent0 lft diskette printer Type totmem 4mm4gb osdisk 23100020 14101800 chrp_ecp keyboard Status Available Available Available Available Available Available Available lft fd ibm4019 Subclass sys scsi scsi pci pci isa_sio kma_chrp Location 01-S1 01-K1-00 10-80-00-0.0 10-80-00-4,0 10-80-00-5,0 10-60 node siofd parallel Description Memory 4.0 GB 4mm Tape Drive Other SCSI Disk Drive IBM 10/100Mbps Ethernet PCI Adapter (23100020) IBM PCI Tokenring Adapter (14101800) CHRP IEEE1284 (ECP) Parallel Port Adapter Keyboard Adapter Description Standard I/O Serial Port Keyboard Adapter SCSI 4mm Tape Drive 16 Bit SCSI Disk Drive 16 Bit SCSI Disk Drive Memory IBM 10/100 Mbps Ethernet PC Adapter (23100020) Low Function Terminal Subsystem Diskette Drive IBM 4019 LaserPrinter
aix系统教材培训7

瓶颈定义
No Differenc
U bound k I/O bound plication disk bound ging space low ging bound
n列出系统记录名称: alog -L l示例: boot bosinst nim console
n列出文件: alog -o -t boot
小结
l创建一些用户 l浏览 /etc/security/* l简单浏览 /etc/rc/* l检查错误记录
简介
性能监测
调整方法
l1. Stress System l2. Measure Subsystems l3. Identify Predominant Bottleneck l4.Tune bottleneck l5. Repeat... forever
lsystem 管理者组 lstaff 普通用户组
安全性记录文件
l/var/adm/sulog
l记录每次su命令的执行。这是个文本文
件。使用任何文本文etc/utmp
l记录用户的成功登录。使用who命令查看。
l/etc/security/failedlogin
l检查打印机状态 lpstat l取消打印任务 cancel <jobno>
CD-ROM (cd0)
l自配置设备 l加载cdrom
n使用: mount -rv cdrfs /dev/cd0 /mnt
n或者创建一个CD-ROM文件系统并进行加载 lsmit cdrf lmount /cdrom
l卸载cdrom
磁带机 (rmt)
lAIX 磁带是自配置设备,其操作与在其它的UNIX版本
上一样
l磁带机设备名是/dev/rmtx,系统还为每个磁带驱动器
《aix系统应用基础》08 shell ba

test1.2 test1.3 myfile
$ cat ?[!y]*[2-5]
ne
test1.2 test1.3
net
new
nest
few
ppt课件
6
The Standard Files
standard in (0)
cmd
standard out (1)
standard error (2)
ppt课件
Default standard input
$ mail team01 Subject: Letter This is a letter. <ctrl-d> Cc: $
Redirect input from a file: <
$ mail team01 < letter $
ppt课件
9
Output Redirection
7
File Descriptors
● Three descriptors are assigned by the shell when the program starts:
Standard in:
<
0
Standard out:
>
1
Standard error:
2>
2
ppt课件
8
Input Redirection
Examples: *?![][-]
ppt课件
4
File Name Substitution (1 of 2)
Wildcards:
*
?
One character compare:
/
$ ls ne? net new
AIX高级系统管理培训教材PPT课件

第45页/共310页
管理引导列表(bootlist)
第46页/共310页
管理引导列表(SMS)
第47页/共310页
管理引导列表(SMS)-按键
第48页/共310页
系统管理服务(SMS)
第49页/共310页
Service Processor和报错
第50页/共310页
复习
1.(对/错):要使用SMS的程序,必须启动了AIX
可激活它们并动态地分配给相应的分区使用 热备w/CuOD: 用未获得许可的好CPU自动和动态地替换坏的CPU
第7页/共310页
高级虚拟化(APV)
第8页/共310页
高级虚拟化(APV)概念1
Advanced Power Virtulization: 支持虚拟I/O; 支持P5系统;
Micro-Partition(微分区): 微分区功能: 继承主机(Mainframe)的技术; 对CPU和I/O设备进行虚拟化,使之能够由多个区共享;
o可以删除committed的软件 o不能恢复到以前版本
如果安装不成功:
a)
Installp –C
b)
Smit maintain_software
o清理失败 o删除软件并重新安装
第34页/共310页
预定义设备(PdDv)
第35页/共310页
预定义属性(PdAt)
第36页/共310页
客户化设备(CuDv)
第9页/共310页
高级虚拟化(APV)概念2
Virtual I/O Server(VIOS): 需要安装专门VIOS系统软件; 支持共享以太网:
物理网卡分配给VIOS
通过在工作分区上定义虚拟以太卡来共享物理网卡. 支持虚拟SCSI服务器:
管理引导列表(bootlist)
第46页/共310页
管理引导列表(SMS)
第47页/共310页
管理引导列表(SMS)-按键
第48页/共310页
系统管理服务(SMS)
第49页/共310页
Service Processor和报错
第50页/共310页
复习
1.(对/错):要使用SMS的程序,必须启动了AIX
可激活它们并动态地分配给相应的分区使用 热备w/CuOD: 用未获得许可的好CPU自动和动态地替换坏的CPU
第7页/共310页
高级虚拟化(APV)
第8页/共310页
高级虚拟化(APV)概念1
Advanced Power Virtulization: 支持虚拟I/O; 支持P5系统;
Micro-Partition(微分区): 微分区功能: 继承主机(Mainframe)的技术; 对CPU和I/O设备进行虚拟化,使之能够由多个区共享;
o可以删除committed的软件 o不能恢复到以前版本
如果安装不成功:
a)
Installp –C
b)
Smit maintain_software
o清理失败 o删除软件并重新安装
第34页/共310页
预定义设备(PdDv)
第35页/共310页
预定义属性(PdAt)
第36页/共310页
客户化设备(CuDv)
第9页/共310页
高级虚拟化(APV)概念2
Virtual I/O Server(VIOS): 需要安装专门VIOS系统软件; 支持共享以太网:
物理网卡分配给VIOS
通过在工作分区上定义虚拟以太卡来共享物理网卡. 支持虚拟SCSI服务器:
AIX操作系统培训(共130PPT)

显示逻辑卷信息
● 依卷组显示逻辑卷 #lsvg -l rootvg
第二十五页,共一百三十页。
SMIT逻辑卷管理器菜单
# lvm
第二十六页,共一百三十页。
SMIT卷组菜单
# smit vg
第二十七页,共一百三十页。
显示卷组信息(1)
●显示全部卷组或活动卷组
●显示卷组状态
第二十八页,共一百三十页。
第五十页,共一百三十页。
Paging Space的概念
为了给有限的内存提供更大的空间,系统将正在工作的 程序调入内存,而将处于inactive状态的应用放入磁盘。 这块磁盘空间叫做系统的Paging Space。
并非内存的替代品
第五十一页,共一百三十页。
Paging Space的图释
RAM=16MB
第四页,共一百三十页。
传统UNIX磁盘存储
分区1
分区2
空余空间 问题:
分区位置不可变 扩展分区大小困难
文件和文件系统大小受限制 要求分配给分区的空间连续
预先方案难度
第五页,共一百三十页。
LVM概念
LVM:Logical Volume Manager 包括一系列的命令、lib库、其他工
具 分为逻辑存储和物理存储
启动逻辑卷〔Boot Logical Volume,blv,例如 /dev/hd5〕
无结构〔裸设备〕
第十六页,共一百三十页。
文件系统
文件系统是: -是存储数据的一种方法 -具有层次目录结构 AIX文件系统有3种类型: -日志文件系统〔jfs〕 -CD-ROM文件系统〔cdrfs〕 -网络文件系统〔nfs〕
不同的文件系统以目录结构连接起来
第十七页,共一百三十页。
《aix系统应用基础》04 files and directories共26页文档

Relative Path Name (start from current directory): $ cd /home/team01 $ vi doc/mon_report $ cd /usr/bin $ ./ls –l /home/team01
© Copyright IBM Corporation 2019
Unit Objectives
After completing this unit, you should be able to: ● Describe the different file types ● Describe the AIX file system structure ● Use full and relative path names in a file specification ● Create, delete, and list directories ● Use the touch command to create an empty file
Special Files: Represent hardware or logical devices Example: The CD-ROM device is accessed via the /dev/cd0 file.
© Copyright IBM Corporation 2019
Directory Contents
/tmp /opt /home
© Copyright IBM Corporation 2019
Hierarchical Structure
/
usr dev
etc
tty1
bin
lp0
sbin home var tmp opt proc
© Copyright IBM Corporation 2019
Unit Objectives
After completing this unit, you should be able to: ● Describe the different file types ● Describe the AIX file system structure ● Use full and relative path names in a file specification ● Create, delete, and list directories ● Use the touch command to create an empty file
Special Files: Represent hardware or logical devices Example: The CD-ROM device is accessed via the /dev/cd0 file.
© Copyright IBM Corporation 2019
Directory Contents
/tmp /opt /home
© Copyright IBM Corporation 2019
Hierarchical Structure
/
usr dev
etc
tty1
bin
lp0
sbin home var tmp opt proc
《aix系统应用基础》04 software install25页PPT文档

Install and Update Software List Software and Related Information Software Maintenance and Utilities Software Service Management Relocatable Software Installation and Maintenance Network Installation Management EZ NIM (Easy NIM Tool) System Workload Partition Software Maintenance System Backup Manager Alternate Disk Installation EFIX Management Thin Server Maintenance
© Copyright IBM Corporation 2019
Fileset naming
LPP
Package
Fileset
Suffix
bos.terminfo.print.data
Message convention: LPP.msg[.lang].package.fileset
© Copyright IBM Corporation 2019
F1=Help F9=Shell
F2=Refresh F10=Exit
F3=Cancel Enter=Do
and managed on the system
© Copyright IBM Corings
AIX LPPs
AIX documentation
Expansion Pack
Bonus Pack Web
(not available in AIX 6.1)
© Copyright IBM Corporation 2019
Fileset naming
LPP
Package
Fileset
Suffix
bos.terminfo.print.data
Message convention: LPP.msg[.lang].package.fileset
© Copyright IBM Corporation 2019
F1=Help F9=Shell
F2=Refresh F10=Exit
F3=Cancel Enter=Do
and managed on the system
© Copyright IBM Corings
AIX LPPs
AIX documentation
Expansion Pack
Bonus Pack Web
(not available in AIX 6.1)
AIX基础学习

1994年10月04日
AIX Version 4.1.3
1995年06月19日
AIX Version 4.1.4
1996年10月10日
AIX Version 4.2
1996年04月23日
AIX Version 4.2.1
1997年04月15日
AIX Version 4.2
1997年10月06日
AIX Version 4.3.1
影响力,被很多商业厂家采用,成为很多商用 Unix的基础 。BSD Unix中最先实现了TCP/IP, 使Internet和Unix紧密结合在一起。
什么是 AIX
AIX=Advanced Interactive eXecutive 高级交互执行体 常见的UNIX版本: HP-UNIX,SUN-Solaris,SCO-
(3)首先给系统附加设备单元加电,再给系统单元加电,启动 系统;
(4)选择系统安装控制台;
(5)选择安装过程中提示信息所使用的语言;
(6)更改安装设置:更改安装方法,安装硬盘,基本语言环境 ,选择桌面环境,选择64位内核和JFS2等;
(7)系统重新启动;
(8)重新启动后的系统会自动运行配置助手(Configuration
➢ 系统启动模式与过程
➢ 系统管理服务(SMS)
➢ 配置文件/etc/inittab的介绍
➢ 系统启动过程常用命令bootlist与alog
➢ 停止系统运行常用命令shutdown 、
halt以及reboot
2023/1/19
15
用光盘引导安装系统
(1)准备安装和启动AIX操作系统;
(2)将卷标为1的AIX安装磁盘或光盘插入驱动器;
UNIXWare等
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Status
Location
Description
Available 01-S1
Standard I/O Serial Port
Available 01-K1-00
Keyboard Adapter
Available 10-80-00-0.0 SCSI 4mm Tape Drive
Available 10-80-00-4,0 16 Bit SCSI Disk Drive
Unit objectives
After completing this unit, you should be able to: • Describe the difference between logical and physical
devices • Describe the purpose of the ODM predefined and
description Memory 4.0 GB 4mm Tape Drive Other SCSI Disk Drive IBM PCI Ethernet Adapter (22100020) IBM PCI Tokenring Adapter (14101800) Standard I/O Parallel Port Adapter Keyboard Adapter
14101800 pci
IBM PCI Tokenring Adapter (14101800)
chrp_ecp isa_sio
CHRP IEEE1284 (ECP) Parallel Port Adapter
keyboard kma_chrp Keyboard Adapter
Customized Configuration Database
# lsdev -P -H
class memory tape disk adapter adapter adapter adapter .. ..
type totmem 4mm4gb osdisk 22100020 14101800 ppa isa_keyboard
subclass sys scsi scsi pci pci isa_sio isa_sio
customized databases • Describe the different states of a device • Describe the format of device location codes • Use SMIT to add/show/change/delete devices
node siofd parallel
Low Function Terminal Subsystem Diskette Drive IBM 4019 LaserPrinter
© Copyright IBM Corporation 2008
List all supported devices
PdDv (Predefined Devices)
© Copyright IBM Corporation 2008
Device terminology
• Physical Devices • Ports • Device Drivers • Logical Devices • /dev Directory
© Copyright IBM Corporation 2008
rmt0
fd0
© Copyright IBM Corporation 2008
rmt1
Device configuration database
Class memory tape disk adapter adapter adapter adapter
Name sa0 sioka0 rmt0 hdisk0 hdisk1 mem0 ent0
Available 10-80-00-5,0 16 Bit SCSI Disk Drive
Available
Memory
Available 10-60
IBM 10/100 Mbps Ethernet PC Adapter (23100020)
lft
lft
diskette fd
printer ibm4019
Unit 7 Devices
© Copyright IBM Corporation 2008
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
5.1
Listing of /dev directory
# ls -l /dev
brw-rw--rw
1
brw-rw--rw
1
crw-rw--rw
1
crw-rw--rw
1
:
:
crw-r--r--
1
crw-r--r--
1
:
:
brw-------
1
brw-------
1-
1
root root root root
system system system system
root root
system system
root root root root
system system system system
20,0 Oct 29 02:25 20,64 Oct 29 02:26 20,0 Oct 29 02:25 20,64 Oct 29 02:26
22,0 Oct 29 02:25 22,1 Oct 29 02:25
14,1 14,2 14,1 14,2
Oct 29 02:44 Nov 1 05:31 Oct 29 02:44 Nov 1 05:31
fd0 fd1 rfd0 rfd1
rmt0 rmt0.1
hdisk0 hdisk1 rhdisk0 rhdisk1
Predefined Configuration Database
Type
Subclass
Description
totmem sys
Memory
4mm4gb scsi
4.0 GB 4mm Tape Drive
osdisk
scsi
Other SCSI Disk Drive
23100020 pci
IBM 10/100Mbps Ethernet PCI Adapter (23100020)