Aix系统命令积累

本文详细介绍了AIX系统中包括破除镜像、添加新硬盘、系统参数修改、用户管理、文件系统检查、网络配置、安全设置、备份与恢复等关键操作。内容涵盖磁盘管理、系统服务、网络服务(如NFS)以及故障排查等多个方面,为AIX系统管理员提供了实用的命令行工具和步骤。
摘要由CSDN通过智能技术生成
1)、破除镜像


把HDISK0从ROOTVG中不做MIRROW:


#unmirrorvg rootvg hdisk0
#reducevg rootvg hdisk0
删除HDISK0


#rmdev –dl hdisk0
在hdisk1上创建boot image  


#bosboot –ad /dev/hdisk0 
export PS1= [\u@\h\W]#






改变启动设备的顺序  dsfsdffdsd


#bootlist –m normal hdisk0 cd0  


shutdown -Fr


加新硬盘重认设备


1.把hdisk1加进rootvg卷组:


#extendvg rootvg hdisk1 


2.关掉rootvg的 QUORUM功能: 


#chvg -Qn rootvg 


3.镜像rootvg


#mirrorvg -c 2 rootvg hdisk1 


4.重新生成 boot image


#bosboot -ad /dev/hdisk1 


5.更新bootlist


#bootlist -m normal hdisk0 hdisk1 cd0 


6.重起系统


#shutdown -Fr


                                                        [Entry Fields]
* INPUT device / directory for software               /
* SOFTWARE to install                                [bash-4.2-1.aix6.1.ppc.rpm]                                                                                                +
  PREVIEW only? (install operation will NOT occur)    no                                                                                                          +
  COMMIT software updates?                            no                                                                                                         +
                                                                                                       +
  ACCEPT new license agreements?                      yes                                                                                                          +
                                                                                                         +
 useradd -g dba -G dba  -d  '/dbora/u1'  -s '/usr/bin/bash'  u1
useradd -g dba -G dba    -d  /dbora/u1  -s '/bin/bash'  -m    u1
修改oracle 用户密码:


1.
首先应保证inetd守护进程是开启的,可输入#lssrc –s inetd查看
如果返回 inetd     tcpip   270468   active
active 表示inetd进程已开启
2.
启动ftp服务: #startsrc -t ftp
3.
停止ftp服务: #stopsrc -t ftp
4.
可输入lssrc -t ftp命令查看ftp进程是否已开启
5.
另请查看/etc/inetd.conf文件的以下字段是否被注释掉,如果被注释掉,说明开机时不自动打开FTP服务


ftp  stream  tcp6  nowait  root  /usr/sbin/ftpd  ftpd
mkgroup -A "id=555" AA


Aix6.1  查看某块磁盘大小(Aix5.2可以
#lspv  hdisk0
# getconf DISK_SIZE /dev/hdisk0 
20480
# getconf DISK_SIZE /dev/hdisk5 
20480
# getconf DISK_SIZE /dev/hdisk4 


Aix5.3  查看某块磁盘大小
$ lscfg -vl hdisk0
  hdisk0           U78A0.001.DNWH2A8-P2-D4  SAS Disk Drive (146800 MB)
$ lsattr -El hdisk0
PCM             PCM/friend/scsiscsd                            Path Control Module           False
algorithm       fail_over                                      Algorithm                     True
dist_err_pcnt   0                                              Distributed Error Percentage  True
dist_tw_width   50                                             Distributed Error Sample Time True
hcheck_interval 0                                              Health Check Interval         True
hcheck_mode     nonactive                                      Health Check Mode             True
max_transfer    0x100000                                       Maximum TRANSFER Size         True
pvid            00c1e7a49db09a970000000000000000               Physical volume identifier    False
queue_depth     16                                             Queue DEPTH                   False
reserve_policy  no_reserve                                     Reserve Policy                True
size_in_mb      146800                                         Size in Megabytes             False
unique_id       2E1135000CCA00D77E5680FHUS153014VLS30003IBMsas Unique device identifier      False
ww_id           5000cca00d77e568                               World Wide Identifier         False


修改系统参数:
# smit     或者   smit  system   或者 #chgsys  
System Environments
Change / Show Characteristics of Operating System 


[TOP]                                                   [Entry Fields]
  System ID                                           0X800006DC6E300000
  Partition ID                                        0X800006DC6E300002
  Maximum number of PROCESSES allowed per user       [16384]                                                                            +#
  Maximum number of pages in block I/O BUFFER CACHE  [20]                                                                               +#
  Maximum Kbytes of real memory allowed for MBUFS    [0]                                                                                +#
  Automatically REBOOT OS after a crash               true                                                                              +
  Continuously maintain DISK I/O history              false                                                                             +
  HIGH water mark for pending write I/Os per file    [8193]                                                                             +#
  LOW water mark for pending write I/Os per file     [4096]                                                                             +#
  Amount of usable physical memory in Kbytes          2097152
  State of system keylock at boot time                normal
  Enable full CORE dump                               false                                                                             +
  Use pre-430 style CORE dump                         false                                                                             +
  Pre-520 tuning compatibility mode                   disable                                                                           +
  Maximum login name length at boot time             [9]                                                                                +#
  Stack Execution Disable (SED) Mode                  select                                                                            +
  Enhanced RBAC Mode                                  true                                                                              +
  NFS4 ACL Compatibility Mode                         secure                                                                            +
  ARG/ENV list size in 4K byte blocks                [256]                                                                              +#
  CPU Guard                                           enable                                                                            +
  Processor capacity increment                        0.01
  
  处理方法1:找出(删除)垃圾文件
     # du -sg * |sort –r n |head
     
 检查文件系统的完整性
# umount filesystem_name
# fsck   filesystem_name
# fsck -y filesystem_name
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值