1、# lspvhdisk0 00cb45e5678b2a2b rootvg activehdisk1 00cb45e500864dcc None hdisk2 None None 创建PV使设备能被系统使用给hdisk2分配一个PVID使 hdisk2可用# chdev l hdisk2 a pv=yeshdisk2 00cb45e5115f3a33 None其他相关命令# lspv hdisk2 物理卷详细信息# lspv -l hdisk2 物理卷上分配的逻辑卷信息# lspv -p hdisk2 物理卷上物理分区分布的情况# rmdev -l hdisk2 -d 从ODM库中彻底删除hdi
2、sk0# extendvg rootvg hdisk1 向卷组中加一个物理卷# migratepv -l lv01 hdisk0 hdisk1 把属于lv01的pp从hdisk0移动到hdisk1创建VG并使用上PV创建VG 使用hdisk2 # mkvg y mqvg d 6 s 8 hdisk2 mqvg为VG名,-d 6 表示最多包含6个物理卷, -s 8 pp为8m , 包含物理卷为hdisk2。hdisk2 00cb45e5115f3a33 mqvg active# lsvg -l vgname 查看vg中包含的lv# lsvg -p vgname 查看vg中包含的pv# chvg
3、-ay vgname 系统启动时自动激活vg# chvg -an vgname 系统启动时不激活vg# extendvg vgname hdisk9 向卷组中加一个物理卷# reducevg datavg disk2 vg中删除一个物理卷,之前必须用rmlv删除该物理卷上的所有lv在VG上创建LV创建LV# mklv y lvname t jsf vgname 2020为该lv包含20个逻辑分区# lsvg l mqvgmqvg:LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINTma jfs 20 20 1 open/syncd loglv00 jfsl
4、og 1 1 1 open/syncd N/A# lspv l lvname 查看lv的基本情况# lspv p hdisk2 查看pv上空间使用情况创建文件系统方法一 :在LV上创建文件系统# crfs v jfs d lvname m /test# mount /test# lsvg -l mqvgma jfs 20 20 1 closed/syncd /testloglv00 jfslog 1 1 1 closed/syncd N/A方法二: 直接创建文件系统# crfs v jfs g vgname m /qing a size=100M# mount /qing直接创建文件系统,系统
5、会在底层创建该文件系统关联的LV# lsvg -l mqvg ma jfs 20 20 1 open/syncd /testlv00 jfs 13 13 1 open/syncd /qing# df -gFilesystem GB blocks Free %Used Iused %Iused Mounted on/dev/hd4 36% 13859 16% /dev/hd2 78% 39931 23% /usr/dev/hd9var 49% 7150 11% /var/dev/hd3 12% 143 1% /tmp/dev/fwdump 1% 6 1% /var/adm/ras/platfor
6、m/dev/hd1 1% 5 1% /home/dev/hd11admin 1% 5 1% /admin/proc - - - - - /proc/dev/hd10opt 39% 8679 11% /opt/dev/livedump 1% 4 1% /var/adm/ras/livedump/dev/ma 4% 17 1% /test/dev/lv00 4% 17 1% /qing# df -kFilesystem 1024-blocks Free %Used Iused %Iused Mounted on/dev/hd4 524288 336092 36% 13859 16% /dev/hd
7、2 2621440 601776 78% 39931 23% /usr/dev/hd9var 524288 268724 49% 7150 11% /var/dev/hd3 262144 230860 12% 143 1% /tmp/dev/fwdump 786432 783820 1% 6 1% /var/adm/ras/platform/dev/hd1 262144 261744 1% 5 1% /home/dev/hd11admin 262144 261744 1% 5 1% /admin/dev/hd10opt 524288 320236 39% 8679 11% /opt/dev/l
8、ivedump 262144 261776 1% 4 1% /var/adm/ras/livedump/dev/ma 163840 158660 4% 17 1% /test/dev/lv00 106496 103116 4% 17 1% /qing增加文件系统的空间可用# chfs a size=3G /usr 给/usr增加3G的空间常见故障处理下安装UltraPath 报错 如:# installp -u all+-+ Pre-deinstall Verification.Verifying selections.doneVerifying requisites.doneResults.
9、SUCCESSES- Filesets listed in this section passed pre-deinstall verification and will be removed. Selected Filesets - # ODM definitions for Array disk devices FILESET STATISTICS - 1 Selected to be deinstalled, of which: 1 Passed pre-deinstall verification - 1 Total to be deinstalledinstallp: bosboot
10、 verification starting. An error occurred during bosboot verification processing.解决方法:# cd /usr/sbin# cp bosboot # chmod w bosboot 为自己增加写的权限# vi bosboot = 添加 exit 0 到第二行保存(此处添加这行的目的是安装完跳过bosboot检查)然后再安装,装好之后最好将bosboot 再改回来注:安装的时候要改,卸载的时候也同样。安装好多路径软件后,可能暂时无法实现多路径功能显示不了updiskX,如: # lsdev -Cc diskhdisk
11、3 Available 05-00-02 Other FC SCSI Disk Drivehdisk4 Available 04-00-02 Other FC SCSI Disk Drivhdisk此时可以先重启系统 # shutdown -Fr再用:# rmdev dl hdisk3 # rmdev dl hdisk4 将设备删除然后再# cfgmgr v 重新扫描设备,再扫描磁盘就可以成功了# lsdev -Cc diskupdisk0 Available 05-00-02 Huawei S5300 FC Disk Drive# lspathEnabled hdisk0 sas0Enabl
12、ed hdisk1 sas0Available ses0 sas0Available ses1 sas0Enabled updisk0 fscsi0Enabled updisk0 fscsi1创建PV时报错 如果在创建PV时 # chdev -l hdisk1 -a pv=yesMethod error (/usr/lib/methods/chgdisk): 0514-047 Cannot access a device.首先,检查AIX于 存储设备是否兼容,目前AIX支持的最低存储是S2600,再低端的存储在和AIX链接的时候都会出现这种错误。然后 ,检查磁盘信息如果为: # lsattr
13、-El hdisk2PR_key_value none Persistant Reserve Key Value Truecache_method fast_write Write Caching method Falseieee_volname 600A0B800011A170465BC3C4 IEEE Unique volume name Falselun_id 0x0000000000000000 Logical Unit Number Falsemax_transfer 0x100000 Maximum TRANSFER Size Trueprefetch_mult 1 Multipl
14、e of blocks to prefetch on read Falsepvid 00c4a6ffdaaaae3f0000000000000000 Physical volume identifier Falseq_type simple Queuing Type Falsequeue_depth 10 Queue Depth Trueraid_level 5 RAID Level Falsereassign_to 120 Reassign Timeout value Truereserve_policy single_path Reserve Policy Truerw_timeout 3
15、0 Read/Write Timeout value Truescsi_id 0x10f00 SCSI ID Falsesize 819200 Size in Mbytes Falsewrite_cache yes Write Caching enabled False可以修改reserve_policy single_path为reserve_policy no_reserve# chdev -l hdiskx -a reserve_policy=no_reserve安装SSH注意事项 1,先安装SSL , 2, 在SMIT界面里将选项ACCEPT new license agreement
16、s? 选择 “yes” * INPUT device / directory for software /* SOFTWARE to install _all_latest + PREVIEW only? (install operation will NOT occur) no + COMMIT software updates? yes + SAVE replaced files? no + AUTOMATICALLY install requisite software? EXTEND file systems if space needed? OVERWRITE same or new
17、er versions? VERIFY install and check file sizes? Include corresponding LANGUAGE filesets? DETAILED output? Process multiple volumes? ACCEPT new license agreements? no + PREVIEW new LICENSE agreements? WPAR Management Perform Operation in Global Environment yes + Perform Operation on Detached WPARs no + Detached WPAR Names _all_wpars + Remount Installation Device in WPARs yes + Alternate WPAR Installation Device 再装 SSH安装包中的, 最后SSH安装其它的包.
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1