今天第一次使用AIX,碰到了不少问题啊
1.第一个就是xmanager连不上,这个是自己的粗心,忘记吧本地的防火墙关闭了,造成就是不出界面
2.发现空间不足,通过命令首先查询硬盘的大小
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 131072 25660 81% 2425 29% /
/dev/hd2 10354688 1221964 89% 126328 32% /usr
/dev/hd9var 131072 92252 30% 569 3% /var
/dev/hd3 1179648 775444 35% 18591 10% /tmp
/dev/fwdump 131072 130724 1% 4 1% /var/adm/ras/platform
/dev/hd1 131072 236 100% 6116 83% /home
/proc - - - - - /proc
/dev/hd10opt 1048576 628056 41% 8303 6% /opt
/dev/lv00 131072 126912 4% 18 1% /var/adm/csd
发现/usr下空间只有10G空闲,需要安装的东西光安装介质就6G了,所以空间不够。
# lspv hdisk0
PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg
PV IDENTIFIER: 000022baa5816a52 VG IDENTIFIER 000022ba0000d3000000010dc28fa750
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 128 megabyte(s) LOGICAL VOLUMES: 12
TOTAL PPs: 546 (69888 megabytes) VG DESCRIPTORS: 2
FREE PPs: 204 (26112 megabytes) HOT SPARE: no
USED PPs: 342 (43776 megabytes) MAX REQUEST: 256 kilobytes
FREE DISTRIBUTION: 95..00..00..00..109
USED DISTRIBUTION: 15..109..109..109..00
发现硬盘是大约69G,但是查询df -k命令的时候控件总加起来也就不到20G,其他空间去那里了?
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000022ba0000d3000000010dc28fa750
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 546 (69888 megabytes)
MAX LVs: 256 FREE PPs: 434 (55552 megabytes)
LVs: 12 USED PPs: 112 (14336 megabytes)
OPEN LVs: 11 QUORUM: 2
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: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
发现有大约55G的空闲空间,将他非配给/usr就可以了
#chfs -a size=+60000000 /usr
(60000000*512/1024/1024/1024 .= 30G)
将大约30G的空间分配给/usr
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 131072 25660 81% 2425 29% /
/dev/hd2 40501248 31363920 23% 126328 2% /usr
/dev/hd9var 131072 92252 30% 569 3% /var
/dev/hd3 1179648 775444 35% 18591 10% /tmp
/dev/fwdump 131072 130724 1% 4 1% /var/adm/ras/platform
/dev/hd1 131072 228 100% 6118 83% /home
/proc - - - - - /proc
/dev/hd10opt 1048576 628056 41% 8303 6% /opt
/dev/lv00 131072 126912 4% 18 1% /var/adm/csd
空间够用了。。。。。。