欢迎您来到GIS动力

加入收藏 免费注册 用户登陆 帮助中心
首页 新闻动态 技术专栏 银杏树下 学习考研 软件下载 求职招聘 许愿瓶 节日祝福 用户中心 精彩推荐 资源搜索 地图
专栏导航: AO开发 | SO开发 | ArcGIS桌面 | 超图桌面 | 开发语言 | 数据库 | WebGIS | 银杏文学 | 研究生考题 | FreeMap FreeTalk
   您现在位于: 首页技术专栏开源GIS → 正文
AIX系统维护大全5
07-11-01 10:06:08 作者:半块点心 出处:本站
-------------------------------------------------------------------------------- 
                                TAPE DRIVES 
-------------------------------------------------------------------------------- 

rmt0.x where x = A + B + C 

A = density        0 = high      4 = low 
B = retension      0 = no        2 = yes 
C = rewind         0 = yes       1 = no 

tctl -f (tape device) fsf (No)        Skips forward (No) tape markers 
tctl -f (tape device) bsf (No)        Skips back (No) tape markers 
tctl -f (tape device) rewind          Rewind the tape 
tctl -f (tape device) offline         Eject the tape 
tctl -f (tape device) status          Show status of tape drive 

chdev -l rmt0 -a block_size=512        changes block size to 512 bytes 
                                       (4mm = 1024, 8mm = variable but  
                                        1024 recommended) 
dd if=/dev/rmt0 bs=128k count=1 | wc -c 
Displays the block size of an unknow tape. Set block size to 0 first. 

bootinfo -e             answer of 1 = machine can boot from a tape drive 
                        answer of 0 = machine CANNOT boot from tape drive 

diag -c -d (tape device)        Hardware reset a tape drive. 
diag -c -d rmt0 

tapechk (No of files)           Checks Number of files on tape. 

< /dev/rmt0                     Rewinds the tape !!! 


-------------------------------------------------------------------------------- 
                        PRINTERS / PRINT QUEUES 
-------------------------------------------------------------------------------- 

splp (device)                   Displays/changes printer driver settings  
splp /dev/lp0 

export $LPDEST="pqname"         Set default printer queue for login session  

lsvirprt                        Lists/changes virtual printer attributes. 

lsallq                          Displays all queues 

rmvirprt -q queuename -d queuedevice        Removes a virtual printer 

qpri -#(job No) -a(new priority)            Change a queue job priority. 

qhld -#(job No)                Put a hold on hold 
qhld -r #(job No)              Release a held job 

qchk -A                        Status of jobs in queues 
lpstat                                         
lpstat -p(queue)               Status of jobs in a named queue 

qcan -x (job No)               Cancel a job from a queue 
cancel (job No)                                 

enq -U -P(queue)               Enable a queue 
enable (queue)                                 

enq -D -P(queue)               Disable a queue 
disable (queue)                                 

qmov -m(new queue) -#(job No)  Move a job to another queue 

startsrc -s qdaemon            Start qdaemon sub-system 
lssrc -s qdaemon               List status of qdaemon sub-system 
stop -s qdaemon                Stop qdaemon sub-system
第 31 楼:FILE SYSTEMS


Physical Volumes (PV's) 
----------------------- 

lspv                        Lists all physical volumes (hard disks) 
lspv (pv)                   Lists the physical volume details 
lspv -l (pv)                Lists the logical volumes on the physical volume 
lspv -p (pv)                Lists the physical partition usage for that PV 
lspv -M (pv)                Lists the PP allocation table for that PV. 

If the PV state is "missing" but the disk is okay, use "varyonvg vg" to change 
the state of the PV to "active". 

chdev -l (pv) -a pv=yes     Makes a new hdisk a pysical volume. 

chpv -v r (pv)              Removes a disk from the system. 
chpv -v a (pv)              Adds the removed disk back into the system. 
chpv -a y (pv)              Changes pv allocatable state to YES 
chpv -a n (pv)              Changes pv allocatable state to NO 

migratepv (old pv) (new pv)     Moves all LV's from one PV to another PV, both 
                                PV's must be in the same volume group. 

Migratepv cannot migrate striped logical volumes, use cplv and rmlv. 

replacepv (old pv) (new pv)     (4.3.3 onwards) 


Volume Groups (VG's) 
-------------------- 

lsvg              Lists all volume groups 
lsvg (vg)         Lists the volume group details 
lsvg -l (vg)      Lists all logical volumes in the volume group 
lsvg -p (vg)      Lists all physical volumes in the volume group 
lsvg -o           Lists all varied on volume groups 

varyonvg (vg)           Vary On a volume group 
varyonvg -f (vg)        Forces the varyon process 
varyonvg -s (vg)        Vary on a VG in maintenance mode. LV commands can be  
                        used on VG, but LV,s cannot be opened for I/O. 
varyoffvg (vg)          Vary Off a volume group 

synclvodm (vg)          Tries to resync VGDA, LV control blocks and ODM. 
synclvodm -v (vg)       Rebuilds the LVCB. 
(the vg needs to be varied on before running synclvodm) 


mkvg -y(vg) -s(PP size) (pv)    Create a volume group 
mkvg -y datavg -s 4 hdisk1 

reducevg (vg) (pv)       Removes a volume group 
reducevg -d (vg) (pv)    Removes a volume group and delete all LV's on the PV 
reducevg (vg) (PVID)     Removes the PVID disk reference from the VGDA when a 
                         disk has vanished without the reducevg (vg) (pv) 
                         command being run first. 
reducevg -df (vg) (pv)   Deletes all LV's from the VG and removes the VG 
                         from the disk. If the last disk in the VG then 
                         the VG is deleted. 
                                 
extendvg (vg) (new pv)   Adds another PV into a VG. 

exportvg (vg)            Exports the volume group, removes the VG entries and 
                         removes all FS entries from /etc/filesystems but 
                         leaves the mount points. 

Note : Cannot export a VG if it has active paging space, turn off paging, 
       reboot before exporting VG. Exporting removes entries from filesystems 
       file but does not remove the mount points. 

chvg -a y (vg)                  Auto Vary On a volume group at system start. 
chvg -u (vg)                    Unlocks a locked volume group. 

lqueryvg -Atp (pv)              Details volume group info for the hard disk. 

importvg -y (vg name) (pv)      Import a volume group from a disk. 
importvg (pv)                   Same as above but VG will be called vg00 etc. 

4.3 onwards, importvg will automatically varyon the VG. 

chvg -Q (y/n) (vg name)         Turns on/off Quorum checking on a VG. 

reorgvg (vg) (lv)        Reorganised a fragmented LV, must state an LV at the  
                         command line else the first LV in the VG is picked. 
                         Does not reorg the PP's of striped LV's. 
L
9 7 3 1 2 3 4 8 :

(本文已被浏览 次)
发布人:admin
推荐给好友:发送给好友
上篇新闻:
下篇新闻:
相关评论
发表我的评论
  • 尊重网上道德,遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他各项有关法律法;
  • 本站有权保留或删除您发表的任何评论内容;
  •   相关文章  
    AIX下安装GCC
    AIX + ORACLE RAC + HDS + SDE安装日志
    AIX简单故障维护手册
    AIX下oracle10g rac 报ora-12545错误的解决方案
    AIX的网络通信 
    AIX设备的管理和使用 
    AIX系统文件系统和逻辑卷

    关于我们友情链接 ┋ 与我在线 ┋ 管理 ┋ TOP
     
    网站当前版本:GisPower CMS V3.0
    『GIS 动力』- http://www.gispower.org/
    联系我们:webmaster#gispower.org
    Copyright (c) 2003-2007 GisPOwer.Org. All Rights Reserved.
     

                   滇ICP备05006901号