前言: 前期项目需要部署多套AIX环境下RAC集群,之前很少接触AIX系统,上来被创建逻辑卷等基本命令打脸了,其实网上搜下资料很多,总结一下,也是方便自己日后查阅. 创建逻辑卷 1.查看所有磁盘设备 # lsdev -Cc disk hdisk0 Available 50-T1-01 Huawei XSG1 FC Disk Drive hdisk1 Available 50-T1-01 Huawei XSG1 FC Disk Drive hdisk2 Available 50-T1-01 Hua
1.linux下查看CPU及内存占用情况 查看内存占用百分比: [root@rusky ~]# free -m | sed -n '2p' | awk '{print "used mem is "$3"M,total mem is "$2"M,used percent is "$3/$2*100"%"}' used mem is 15765M,total mem is 15949M,used percent is 98.846