shutdown -Fr 关机
shutdown 关机,但要一分钟
halt -q 直接关机相当于直接掉电让HACMP接管
不推荐使用reboot关机
shutdown +4 阿斯顿阿斯顿阿斯的 四分钟后广播出去广播可以用
ctrl+c可以中止,也可以kill掉此进程
shutdown -m 切换到当用户模式,对于init -m来说,比init好用,init常常无效
shutdown -t mmddhhyy 指定一个时间重新开机
shutdown -u 对于升级微码有用
一般指定一个用户到service分区的组来升级微码
/etc/rc.shutdown 中写一个关机之前关闭数据库
Multiboot startup <off> 让startup启动的时候给出一个列表,和windows不同,如果不选择引导方式则会一直等待,不会选择一个默认项timeout。
有多个硬盘的情况下,只显示有MBR的硬盘。
SANBOOT不能安装操作系统
安装iscsi软件方式共享方式,由于是软件方式所以不支持引导,性能很差
不要选择默认安装方式,因为默认安装不同的机器,不同的安装次数,不同的配置默认的情况都不一样。
使用迁移方式进行安装花的时间比新安装要慢得多。要等近1个小时。遇到钉子户,硬盘灯不转,光盘不转,机器像死机状态。
老版本没有,新版本有的情况:安装缺省安装选项进行安装。
建议买硬盘至少3块而且最好大小不一样。这样实验的环境更丰富些。
建议不要选择中文,选择英文,将中文作为第二语言。
installs all devices 装完所有的驱动这样就是和将硬盘带到其他的小机上安装,也可以备份出来。
如果光盘坏了怎么办,它会继续读盘,那么就要把光盘推出,系统安装就自动跳开。
date命令执行后以DT结尾即是夏令时
SUMA打补丁是IBM的扯淡行为
AIX 6.1 光盘DVD2张,CD8张
systemdirector不支持win7
./lsr 单独安装。查机器配置
lsof /doc 查看有谁在用什么
/etc/rc.dt 启动aix x-window
[p275:jaminwm:/home] oslevel -s
7100-00-01-1037
[p275:jaminwm:/home] oslevel -sg 7100-00-00 比这个版本更高的
Fileset Actual Level Maintenance Level
-----------------------------------------------------------------------------
bos.rte 7.1.0.1 7.1.0.0
在smit中按F4中才mount光驱,不用就unmount
@表示已经安装
@@表示是RPM格式的安装
/mnt表示
mount -o ro -v cdrfs /dev/cd0 /mnt
ummont /mnt
用smit来mount光驱比较好
mount /cdrom
不要自动mountCDROM
install software 只列出可以被安装的,如其他语言文件不列出
install and update from all acvailable software 列出所有的
但发现文件大小为0的时候
inutoc .
可以重新查看
geninstall
installp
打补丁instfix -k IY58143 -d /dev/cd0
instfix -i | grep ML
显示文件集装齐么有
instfix -i | grep SP
现在用这个
oslevel -sl 7100-00-03-1115 列出没有到这个级别的文件集
装半截的需要用installp -c清理一下
lslpp -w /usr/sbin/xinetd
[p275:jaminwm:/home/jaminwm] lsdev -H
name status location description
L2cache0 Available L2 Cache
cd0 Available 1G-19-00 IDE DVD-ROM Drive
cluster0 Available Cluster Node
en0 Available 1L-08 Standard Ethernet Network Interface
en1 Defined 1j-08 Standard Ethernet Network Interface
从AIX6.1.0.6开始有一个可以改设备名称的命令rendev
[p275:jaminwm:/home/jaminwm] lsdev -Cc cdrom
cd0 Available 1G-19-00 IDE DVD-ROM Drive
[p275:jaminwm:/home/jaminwm] lsattr -EHl cd0
attribute value description user_settable
audio_supported yes Play AUDIO supported True
cdda_supported yes CD-DA supported True
data_verify disable Software Data Verification False
prevent_eject yes PREVENT ejection of media when open True
显示为TRUE的是可以修改的,false不能改
[p275:jaminwm:/home/jaminwm] chdev -l cd0 -a cdda_supported=no
[p275:jaminwm:/home/jaminwm] lsattr -EHl en0
attribute value description user_settable
alias4 IPv4 Alias including Subnet Mask True
alias6 IPv6 Alias including Prefix Length True
arp on Address Resolution Protocol (ARP) True
authority Authorized Users True
broadcast Broadcast Address True
mtu 1500 Maximum IP Packet Size for This Device True
netaddr 192.168.1.88 Internet Address True
netaddr6 IPv6 Internet Address True
netmask 255.255.255.0 Subnet Mask True
prefixlen Prefix Length for IPv6 Internet Address True
remmtu 576 Maximum IP Packet Size for REMOTE Networks True
rfc1323 Enable/Disable TCP RFC 1323 Window Scaling True
security none Security Level True
state up Current Interface Status True
tcp_mssdflt Set TCP Maximum Segment Size True
tcp_nodelay Enable/Disable TCP_NODELAY Option True
tcp_recvspace Set Socket Buffer Space for Receiving True
tcp_sendspace Set Socket Buffer Space for Sending True
设备状态有2种,一类是已经定义的,并且已经支持了。一类是分2种,一种经过定义,但不可用。一种是可用,但是准备好使用。
使用rmdev -dl来变更状态。
not usable>supported device rmdev -dl
ready for use>not usable rmdev -l
[p275:jaminwm:/home/jaminwm] rmdev -l cd0
[p275:jaminwm:/home/jaminwm] mkdev -l cd0
[p275:jaminwm:/home/jaminwm]
cfgmgr -l cd0
cfgmgr -v cd0 遍历,耗费资源
scsi地址线,0-7,总共8个,7是优先级最高的
硬盘背板ID15,可以插15个
[p275:jaminwm:/home/jaminwm] prtconf -s
Processor Clock Speed: 1000 MHz
[p275:jaminwm:/home/jaminwm] prtconf -v
INSTALLED RESOURCE LIST WITH VPD
The following resources are installed on your machine.
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
sys0 System Object
sysplanar0 System Planar
pci1 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
pci6 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
pci7 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
paud0 U0.1-P1-I2/Q1 PCI Audio Adapter (13100560)
Hardware Location Code......U0.1-P1-I2/Q1
pci8 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
pci9 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
ent1 U0.1-P1/E2 10/100/1000 Base-TX PCI-X Adapter (14106902)
10/100/1000 Base-TX PCI-X Adapter:
Part Number.................00P3056
FRU Number..................00P3056
EC Level....................H11635A
Manufacture ID..............YL1021
Network Address.............00096BCE2B86
ROM Level.(alterable).......GOL002
Hardware Location Code......U0.1-P1/E2
pci10 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
pci0 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
isa0 U0.1-P1-X1 ISA Bus
Hardware Location Code......U0.1-P1-X1
fda0 U0.1-P1-X1/D1 Standard I/O Diskette Adapter
Hardware Location Code......U0.1-P1-X1/D1
siokma0 U0.1-P1-X1/K1 Keyboard/Mouse Adapter
Hardware Location Code......U0.1-P1-X1/K1
sioka0 U0.1-P1-X1/K1 Keyboard Adapter
sioma0 U0.1-P1-X1/K1-L1 Mouse Adapter
ppa0 U0.1-P1-X1/R1 CHRP IEEE1284 (ECP) Parallel Port Adapter
Hardware Location Code......U0.1-P1-X1/R1
lp0 U0.1-P1-X1/R1-L0 Other parallel printer
sa0 U0.1-P1-X1/S1 Standard I/O Serial Port
Hardware Location Code......U0.1-P1-X1/S1
tty0 U0.1-P1-X1/S1-L0 Asynchronous Terminal
sa1 U0.1-P1-X1/S2 Standard I/O Serial Port
Hardware Location Code......U0.1-P1-X1/S2
tty1 U0.1-P1-X1/S2-L0 Asynchronous Terminal
sa2 U0.1-P1-X1/S3 Standard I/O Serial Port
Hardware Location Code......U0.1-P1-X1/S3
tty2 U0.1-P1-X1/S3-L0 Asynchronous Terminal
ide0 U0.1-P1-X1/Q6 ATA/IDE Controller Device
Hardware Location Code......U0.1-P1-X1/Q6
cd0 U0.1-P1-X1/Q6-A0 IDE DVD-ROM Drive
Manufacturer................IBM
Machine Type and Model......DROM00205
ROS Level and ID............NR36
Device Specific.(Z0)........058002028F000010
cd1 U0.1-P1-X1/Q6-L1 IDE DVD-ROM Drive
pci2 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
pci3 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
ent0 U0.1-P1/E1 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
10/100 Mbps Ethernet PCI Adapter II:
Network Address.............00096B3E2AE0
ROM Level.(alterable).......SCU015
Product Specific.(Z0).......A5204205
Hardware Location Code......U0.1-P1/E1
pci4 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
sisscsia0 U0.1-P1 PCI-X Dual Channel Ultra320 SCSI Adapter
Hardware Location Code......U0.1-P1
scsi0 U0.1-P1/Z1 PCI-X Dual Channel Ultra320 SCSI Adapter bus
ROM Level.(alterable).......050A008a
Customer Card ID Number.....570B
hdisk0 U0.1-P1/Z1-A3 Other SCSI Disk Drive
Manufacturer................FUJITSU
Machine Type and Model......MAP3367NC
ROS Level and ID............35363035
Serial Number...............UPL3P320
Device Specific.(Z0)........000003125B00013A
Device Specific.(Z1)........5TL2
hdisk1 U0.1-P1/Z1-A4 16 Bit LVD SCSI Disk Drive (73400 MB)
Manufacturer................IBM
Machine Type and Model......ST373207LC
FRU Number..................00P3072
ROS Level and ID............43373048
Serial Number...............00024D5A
EC Level....................H13092
Part Number.................26K5291
Device Specific.(Z0)........000004129F00013E
Device Specific.(Z1)........0315C712
Device Specific.(Z2)........0002
Device Specific.(Z3)........02312
Device Specific.(Z4)........0001
Device Specific.(Z5)........22
Device Specific.(Z6)........H13092
hdisk2 U0.1-P1/Z1-A5 Other SCSI Disk Drive
Manufacturer................IBM-ESXS
Machine Type and Model......ST3146707LC FN
Part Number.................39R7310
ROS Level and ID............42323643
Serial Number...............3KS1J83H
EC Level....................H17923D
FRU Number..................26K5501
Device Specific.(Z0)........000004129F00013E
Device Specific.(Z1)........0929B26C
Device Specific.(Z2)........1000
Device Specific.(Z3)........08291
Device Specific.(Z4)........0001
Device Specific.(Z5)........22
Device Specific.(Z6)........H17923D
hdisk3 U0.1-P1/Z1-A8 16 Bit LVD SCSI Disk Drive (36400 MB)
Manufacturer................IBM
Machine Type and Model......IC35L036UCDY10-0
FRU Number..................00P3831
ROS Level and ID............53323846
Serial Number...............E3WUMARC
EC Level....................H32224
Part Number.................08K0293
Device Specific.(Z0)........000003029F00013A
Device Specific.(Z1)........07N4972
Device Specific.(Z2)........0068
Device Specific.(Z3)........04101
Device Specific.(Z4)........0001
Device Specific.(Z5)........22
Device Specific.(Z6)........
ses0 U0.1-P1/Z1-AF SCSI Enclosure Services Device
Manufacturer................IBM
Machine Type and Model......VSBPD4E U4SCSI
ROS Level and ID............5684
Serial Number...............23266047
Device Specific.(Z0)........0D0002022F004000
FRU Number..................00P5684
FRU Label...................DB1
Frame Serial Number.........
scsi1 U0.1-P1/Z2 PCI-X Dual Channel Ultra320 SCSI Adapter bus
ROM Level.(alterable).......050A008a
Customer Card ID Number.....570B
pci5 U0.1-P1 PCI Bus
Hardware Location Code......U0.1-P1
L2cache0 L2 Cache
mem0 Memory
proc0 U0.1-P1 Processor
Hardware Location Code......U0.1-P1
hdisk4 Other iSCSI Disk Drive
Manufacturer................ROCKET
Machine Type and Model......IMAGEFILE
ROS Level and ID............30303031
Serial Number...............
Device Specific.(Z0)........000004125B000002
Device Specific.(Z1)........
hdisk5 Other iSCSI Disk Drive
Manufacturer................ROCKET
Machine Type and Model......RAM DISK 16 MB
ROS Level and ID............30303031
Serial Number...............
Device Specific.(Z0)........000004125B000002
Device Specific.(Z1)........
cd2 Other iSCSI CD-ROM Drive
Manufacturer................ROCKET
Machine Type and Model......DVD-ROM F50
ROS Level and ID............1.00
Device Specific.(Z0)........058004121F000002
cd3 Other iSCSI CD-ROM Drive
Manufacturer................Optiarc
Machine Type and Model......DVD RW AD-7910A
ROS Level and ID............1.D1
Device Specific.(Z0)........058000325B000000
rmt0 Other iSCSI Tape Drive
Manufacturer................NexiTech
Machine Type and Model......VTAng (DLT emul)
Serial Number...............
Device Specific.(Z3)........0000
[p275:jaminwm:/home/jaminwm] lsdev -p cd0
LVM可以跨盘,可以动态增加,能够镜像,不需要关机停应用
PV:就像硬盘,但不一定是硬盘
LVM信息放在ODM和硬盘头部,也就是VGDA
NORMAL PV=32 PP=1016
bootinfo -s hdisk0
lsvg rootvg
chvg -t 4 rootvg
lspv
reducevg rootvg hdisk2
rootvg必须是normalvg
bootinfo -s hdisk3
smit mkvg add an original vg
lsvg vg_name
chvg -t 8 vg_name
chvg -B vg_name
normal>big
dump device就是裸设备
卷组尺寸=PP数*PV数 一个卷组的PV值是固定的,PV不可改,
一般情况下:
PP=LP
一个或多个LP构成LV
PV可划分为一个或多个LV
VG由一个或多个PV组成
1个VG内的1个PV的VGDA有2个,
1个VG内的2个PV的一个PV有2个VGDA,1个PV有1个VGDA
1个VG内的4个PV的每个PV有1个VGDA
aix本地硬盘只支持JFS和JFS2
优盘可以做成UDFS,DVD也是
[p275:jaminwm:/home/jaminwm] lsfs
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/hd4 -- / jfs2 524288 -- yes no
/dev/hd1 -- /home jfs2 131072 -- yes no
/dev/hd2 -- /usr jfs2 6029312 -- yes no
/dev/hd9var -- /var jfs2 786432 -- yes no
/dev/hd3 -- /tmp jfs2 262144 -- yes no
/dev/hd11admin -- /admin jfs2 262144 -- yes no
/proc -- /proc procfs -- -- yes no
/dev/hd10opt -- /opt jfs2 786432 -- yes no
/dev/livedump -- /var/adm/ras/livedump jfs2 524288 -- yes no
/dev/fslv00 -- /doc jfs2 524288 rw yes no
/dev/cd0 -- /cdrom cdrfs -- ro no
[p275:jaminwm:/home/jaminwm] lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 8 8 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 4 4 1 open/syncd /
hd2 jfs2 46 46 1 open/syncd /usr
hd9var jfs2 6 6 1 open/syncd /var
hd3 jfs2 2 2 1 open/syncd /tmp
hd1 jfs2 1 1 1 open/syncd /home
hd10opt jfs2 6 6 1 open/syncd /opt
hd11admin jfs2 2 2 1 open/syncd /admin
livedump jfs2 4 4 1 open/syncd /var/adm/ras/livedump
fslv00 jfs2 64 64 1 open/syncd /doc
读close的LV变为OPEN
LTG 最大传输尺寸
[p275:jaminwm:/home/jaminwm] lsvg -o
bvg
avg
rootvg
[p275:jaminwm:/home/jaminwm] lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00516f6a00004c0000000132da20bee3
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 542 (34688 megabytes)
MAX LVs: 256 FREE PPs: 393 (25152 megabytes)
LVs: 13 USED PPs: 149 (9536 megabytes)
OPEN LVs: 11 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 2032 MAX PVs: 16
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
STALE PPs: 0 如果不是0,那scalable一定有问题
[p275:jaminwm:/home/jaminwm] lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 542 393 108..28..40..108..109
硬盘的外延,相加=freePPs
[p275:jaminwm:/home/jaminwm] lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 8 8 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 4 4 1 open/syncd /
hd2 jfs2 46 46 1 open/syncd /usr
hd9var jfs2 6 6 1 open/syncd /var
hd3 jfs2 2 2 1 open/syncd /tmp
hd1 jfs2 1 1 1 open/syncd /home
hd10opt jfs2 6 6 1 open/syncd /opt
hd11admin jfs2 2 2 1 open/syncd /admin
livedump jfs2 4 4 1 open/syncd /var/adm/ras/livedump
fslv00 jfs2 64 64 1 open/syncd /doc
lv_data1 jfs2 4 4 1 closed/syncd /afs
激活一个卷组,smit varyonvg -f
smit varyoffvg -s -f
一台小机主板坏了,把硬盘拔出来插到另外一个主机上smit importvg
将A硬盘vg导出到B机器的ODM中,然后B机器导入B硬盘
reorgvg rootvg 连续性逻辑卷
通过单模光纤10KM,一头接一个,这2个磁盘阵列各做RAID5,在LVM上RAID0。
LTG 最大传输尺寸,默认128K,这个值越大,性能越高,这个值现在是动态的,不用调
[p275:jaminwm:/home/jaminwm] /usr/sbin/lquerypv -M hdisk0
256
拷贝和镜像不同,拷贝可以跨卷组,而且拷贝要求源是禁止的,目标是copy类型。