AIX下镜像制作与取消,以及硬盘更换

本资料无预览

如感兴趣请 1 金币购买后下载

立即下载

资料简介:






lang=EN-US>AIXstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下镜像制作与取消,更换硬盘问题

prefix = o ns = "urn:schemas-microsoft-com:office:office" />face="Times New Roman" color=#000000>

lang=EN-US>ROOTVGstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">做镜像问题:

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下面命令全部在lang=EN-US>AIX5.4style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">上运行通过

Negative="False" NumberType="1" TCSC="0">000a1ddcw:st="on" UnitName="F" SourceValue="7" HasSpace="False" Negative="False"
NumberType="1" TCSC="0">7fSourceValue="36" HasSpace="False" Negative="False" NumberType="1"
TCSC="0">36aHasSpace="False" Negative="False" NumberType="1"
TCSC="0">2f0      
rootvg      
active
hdisk1      
none               
            
None        


face="Times New Roman" color=#000000>





face="Times New Roman" color=#000000>



w:st="on" UnitName="a" SourceValue="0" HasSpace="False" Negative="False"
NumberType="1" TCSC="0">000a1ddcUnitName="F" SourceValue="7" HasSpace="False" Negative="False" NumberType="1"
TCSC="0">7fHasSpace="False" Negative="False" NumberType="1"
TCSC="0">36aHasSpace="False" Negative="False" NumberType="1"
TCSC="0">2f0rootvgstyle="mso-spacerun: yes">      
active


w:st="on" UnitName="a" SourceValue="0" HasSpace="False" Negative="False"
NumberType="1" TCSC="0">000a1ddcd9e3cc9eNone


face="Times New Roman" color=#000000>

//lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">内有数据在做lang=EN-US>extendstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的时侯lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">里面的数据就没了

//lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">加入到lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中

face="Times New Roman" color=#000000>



Negative="False" NumberType="1" TCSC="0">000a1ddcw:st="on" UnitName="F" SourceValue="7" HasSpace="False" Negative="False"
NumberType="1" TCSC="0">7fSourceValue="36" HasSpace="False" Negative="False" NumberType="1"
TCSC="0">36aHasSpace="False" Negative="False" NumberType="1"
TCSC="0">2f0rootvgstyle="mso-spacerun: yes">                 
active


Negative="False" NumberType="1" TCSC="0">000a1ddcd9e3cc9erootvgstyle="mso-spacerun: yes">                 
active


face="Times New Roman" color=#000000>











Then, user must
modify


hdisk0
hdisk1.


face="Times New Roman" color=#000000>

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看lang=EN-US>mirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是否完成了

lang=EN-US>//style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如何查看硬盘是否做过lang=EN-US>mirror?





LV NAMETYPEstyle="mso-spacerun: yes">     LPsstyle="mso-spacerun: yes">     PPsstyle="mso-spacerun: yes">     PVsstyle="mso-spacerun: yes">    w:st="on">LV STATEstyle="mso-spacerun: yes">       MOUNT
POINT


boot
12style="mso-spacerun: yes">         
2style="mso-spacerun: yes">        
closed/syncd N/A


paging
2style="mso-spacerun: yes">        
4style="mso-spacerun: yes">         
2style="mso-spacerun: yes">        
open/syncd
N/A


jfslog
1style="mso-spacerun: yes">        
2style="mso-spacerun: yes">         
2style="mso-spacerun: yes">        
open/syncd
N/A


jfs

12style="mso-spacerun: yes">         
2style="mso-spacerun: yes">        
open/syncd
/


jfs
33
662style="mso-spacerun: yes">        
open/syncd
/usr


style="mso-spacerun: yes">  jfsstyle="mso-spacerun: yes">   style="mso-spacerun: yes"> style="mso-spacerun: yes">    1style="mso-spacerun: yes">         
2style="mso-spacerun: yes">         
2style="mso-spacerun: yes">        
open/syncd
/var


jfs1style="mso-spacerun: yes">         
2style="mso-spacerun: yes">         
2style="mso-spacerun: yes">        
open/syncd
/tmp


jfs1style="mso-spacerun: yes">         
2style="mso-spacerun: yes">         
2style="mso-spacerun: yes">        
open/syncd
/home


style="mso-spacerun: yes"> jfsstyle="mso-spacerun: yes">        
4style="mso-spacerun: yes">         
8style="mso-spacerun: yes">         
2
style="mso-spacerun: yes">   open/syncdstyle="mso-spacerun: yes">   
/opt


face="Times New Roman" color=#000000>

lang=EN-US>LP*2=PPstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示一份镜像,lang=EN-US>LP=PPstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示没做镜像,lang=EN-US>LP*3=PPstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示有二份镜像。

lang=EN-US>LP*2=PPstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,是指一份lang=EN-US>LPstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的数据,对应两份lang=EN-US>PPstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的数据,物理上是有lang=EN-US>2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">份拷贝。

face="Times New Roman" color=#000000>

HasSpace="False" Negative="False" NumberType="1"
TCSC="0">000a1ddcSourceValue="4" HasSpace="False" Negative="False" NumberType="1"
TCSC="0">00004cSourceValue="1197" HasSpace="False" Negative="False" NumberType="1"
TCSC="0">00000001197f36bcd3
VG
STATE:            
   
active              
PP
SIZE:              
32 megabyte(s)
VG PERMISSION:   
read/write        TOTAL
PPs:         1084 (34688 megabytes)
MAX
LVs:               
256                  FREE
PPs:            994
(31808
megabytes)
LVs:                        
9                  
   USED PPs:         
90 (2880 megabytes)
OPEN
LVs:           
   
8               
     
QUORUM:          1
TOTAL
PVs:              
2                 
    VG DESCRIPTORS:  3
STALE
PVs:              
0                 
    STALE PPs:        
0
ACTIVE
PVs:             2                 
    AUTO ON:         
yes
MAX PPs per VG: 32512 0
MAX PPs per PV:
1016                  
  MAX
PVs:           32
LTG
size (Dynamic): 256 kilobyte(s) AUTO SYNC:      
no
HOT SPARE:
no                        
  BB POLICY:           
  relocatable


face="Times New Roman" color=#000000>




style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:1style="mso-tab-count: 1">     style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示没有。

2style="mso-tab-count: 1">     style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示有。

face="Times New Roman" color=#000000>





face="Times New Roman" color=#000000>











face="Times New Roman" color=#000000>



face="Times New Roman" color=#000000>

lang=EN-US>AIXstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">镜像。使两个硬盘均可启动。好处:主启动硬盘坏时,可以用另一个磁盘启动机器

face="Times New Roman" color=#000000>




lang=EN-US>chdev –l hdisk1 –a
pv=yesstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是安全的。如果它运行不成功,那创建lang=EN-US>VGstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">肯定失败,

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">因为lang=EN-US>mkvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">就是调用的它。




style="mso-spacerun: yes">   //style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">把lang=EN-US>rootvg style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的lang=EN-US>mirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">去掉

  
style="mso-spacerun: yes">                 //lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的引导信息

  
style="mso-spacerun: yes">   //lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中删除lang=EN-US>hdisk1

  
style="mso-spacerun: yes">               //lang=EN-US>(style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">加lang=EN-US>-Rstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示强制删除lang=EN-US>)



face="Times New Roman" color=#000000>

lang=EN-US>unmirrorvg rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不指定盘是很危险的,一般不指定盘不要用此命令

face="Times New Roman" color=#000000>

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">具体操作步骤如下face="Times New Roman"> style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:






0002dHasSpace="False" Negative="False" NumberType="1"
TCSC="0">74f0e69dSourceValue="97" HasSpace="False" Negative="False" NumberType="1"
TCSC="0">97arootvg


0002d74fea8ad09dnone

000214dadcaHasSpace="False" Negative="False" NumberType="1"
TCSC="0">3a694dbbakvg


0002dHasSpace="False" Negative="False" NumberType="1"
TCSC="0">74f1eSourceValue="67" HasSpace="False" Negative="False" NumberType="1"
TCSC="0">67ac3bdbbakvg


face="Times New Roman" color=#000000>

lang=EN-US>hdisk0style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是系统安装后默认使用的硬盘,而lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">最后的一项属性显示为“lang=EN-US>nonestyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”,说明此硬盘未被任何lang=EN-US>VGstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用,可以用它来做lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的

face="Times New Roman" color=#000000>




face="Times New Roman" color=#000000>

lang=EN-US> hdisk1 style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是否可作为由lang=EN-US> AIX style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">支持的引导设备:lang=EN-US>

# bootinfo -B
hdisk1


lang=EN-US> 1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,则选择的磁盘可以由lang=EN-US> AIX style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">引导。任何其它值表示lang=EN-US> hdisk1 style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不是lang=EN-US> rootvg style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">制作镜像的候选。

face="Times New Roman" color=#000000>

lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以包含lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:



lang=EN-US>hisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">之前被其他lang=EN-US>VGstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用过,可以用lang=EN-US> -f style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">参数lang=EN-US>#extendvg -f rootvg
hdisk1

face="Times New Roman" color=#000000>

lang=EN-US>VGstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的物理卷限额管理lang=EN-US>(style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在lang=EN-US>VGstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中只要有任一lang=EN-US>PVstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有效lang=EN-US>,style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">此lang=EN-US>VGstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">就可用lang=EN-US>)style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:



lang=EN-US>lsvg rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看,lang=EN-US>QUORUMstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">项的值将是lang=EN-US>1

face="Times New Roman" color=#000000>

lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">进行镜像操作:



lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">当前所用的空间大小有关,实际操作中,lang=EN-US>95 GBstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的大小,用了lang=EN-US>2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个小时。

face="Times New Roman" color=#000000>

lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的两块盘上创建引导信息:





face="Times New Roman" color=#000000>






face="Times New Roman" color=#000000>

lang=EN-US>rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的镜像工作就完成了。

face="Times New Roman" color=#000000>

face="Times New Roman" color=#000000>

face="Times New Roman" color=#000000>




face="Times New Roman" color=#000000>

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">步骤lang=EN-US>1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:先lang=EN-US>unmirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,然后把lang=EN-US>hdisk2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从lang=EN-US>datavgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中退出,再用lang=EN-US>rmdevstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">把lang=EN-US>hdisk2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">删掉;

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">步骤lang=EN-US>2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:关机,取出lang=EN-US>hdisk2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,把新的w:st="on" UnitName="g" SourceValue="73" HasSpace="False" Negative="False"
NumberType="1" TCSC="0">face="Times New Roman">73Gstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">硬盘放入,开机;

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">步骤lang=EN-US>3style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:把新的w:st="on" UnitName="g" SourceValue="73" HasSpace="False" Negative="False"
NumberType="1" TCSC="0">face="Times New Roman">73Gstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">硬盘加入lang=EN-US>datavgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,再lang=EN-US>migratepv -l hdisk1 hdisk2
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">把lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的内容复制到新硬盘上;

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">步骤lang=EN-US>4style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:然后用同样的办法把lang=EN-US>hdisk1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">替换掉。

face="Times New Roman" color=#000000>

lang=EN-US>AIXstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下镜像的制作与取消

face="Times New Roman" color=#000000>

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">前提:文中lang=EN-US>hdisknstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代表新加入的磁盘

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">大致步骤是:添加新硬盘、扫描设备、查看设备是否正常、添加lang=EN-US>pvidstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、加入卷组、做lang=EN-US>mirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、给新硬盘添加引导信息、重新设置引导顺序。

face="Times New Roman" color=#000000>

lang=EN-US>1.lspstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看物理卷。这是没有发现新硬件,我们就开始扫描设备

  
-v


face="Times New Roman" color=#000000>

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">发现新硬件后,这是我们要看下物理卷的属性。

  
-Cc
disk


lang=EN-US>pvid

face="Times New Roman" color=#000000>

lang=EN-US>3.style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">添加lang=EN-US>pvidstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。

   
hdiskn
-apv=yes


style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">里面的lang=EN-US>Nstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示一个变量,它代表新磁盘的标号

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我们也可以使用-l hdisk1 -a pv=clearstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来删除lang=EN-US>pvid

face="Times New Roman" color=#000000>

lang=EN-US>4.style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">加入卷组

rootvgstyle="mso-spacerun: yes">  hdiskn //style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如果lang=EN-US>hdisknstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">内有数据在做lang=EN-US>extendstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的时侯,lang=EN-US>hdisknstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">里面的东西就没了

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这部也是两个磁盘做lang=EN-US>mirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的前提,因为做镜像的所有磁盘必须在同一个卷组里面。

face="Times New Roman" color=#000000>

lang=EN-US>5.style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">创建lang=EN-US>mirror

  
-c
2rootvg


lang=EN-US>mirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">只有两种情况,就lang=EN-US>2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个或lang=EN-US>3style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个盘做镜像。如果是两个的话我们也可以直接这样做:

rootvg style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">因为默认是两个也没有必要指定源和目的磁盘。但如果是lang=EN-US>3style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">块磁盘做镜像就必须指定源和目的磁盘。

  
-c
3rootvgstyle="mso-spacerun: yes">  hdisk0style="mso-spacerun: yes">  
hdisk1


face="Times New Roman" color=#000000>

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">验证lang=EN-US>mirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是否创建成功

  -lrootvg

lang=EN-US>ppsstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和lang=EN-US>pvsstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的对应关系lang=EN-US>.1:1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示没有成功、lang=EN-US>1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:lang=EN-US>2style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示成功做双磁盘镜像、lang=EN-US>1style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:lang=EN-US>3style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示成功做lang=EN-US>3style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">磁盘镜像。

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">也可以用rootvgstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来查看,主要时看里面的lang=EN-US>QUORUM

1 style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示没有,

2 style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示有。

face="Times New Roman" color=#000000>

lang=EN-US>7.style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">给新磁盘做新的引导信息

face="Times New Roman"> style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看当前的引导顺序

bootliststyle="mso-spacerun: yes">  -m
normal
-o


lang=EN-US>hdisknstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">添加引导信息

  
-ad
/dev/hdiskn


lang=EN-US>hdisknstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为最优先。看能不启动系统

  
-m
normal hdiskn hdisk0
cdrom


face="Times New Roman" color=#000000>

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">重新启动下系统

  
-Fr


face="Times New Roman" color=#000000>

lang=EN-US>mirror

lang=EN-US>1.style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">把lang=EN-US>rootvg style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的lang=EN-US>mirrorstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">去掉

  
rootvg hdiskn


style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">去掉lang=EN-US>hdisknstyle="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的引导信息

  -chdisk1

style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">重新设置下启动顺序

  
-m
normal
hdisk0


face="Times New Roman" color=#000000>

face="Times New Roman" color=#000000>
2009-10-17
浏览10036
下载62

已下载用户的评价7.83分

您还未下载该资料,不能发表评价;
查看我的 待评价资源
lianrunlianrun系统工程师上海志鑫科技2017-04-12
有用
下来看看,谢谢
风影子风影子数据库管理员深圳2011-02-17
没用
下来了解下
power-aixpower-aix软件开发工程师四川XXXX2010-09-02
没用
这个值得顶几下哈
cdtangmailcdtangmail数据库管理员cdtan2010-09-02
没用
dgdgdgdgdgdgdgdgdgdg
jack2010jack2010其他a2010-09-01
没用
先回帖子才能看
kingqing022kingqing022系统管理员广州华南资讯科技有限公司2010-09-01
没用
谢谢分享
mgd_njmgd_nj系统工程师dh2010-09-01
没用
下了看看。。。
cwnlinuxcwnlinux系统工程师CCSU2010-08-31
没用
这个是可以下载看看的。
whoami_2008whoami_2008副总经理/副总裁乌鲁木齐银行2010-08-31
没用
谢谢分享学习学习
alevisalevis系统管理员IBM 2010-08-25
没用
这个 真没弄过 都换硬盘了

贡献者

lwb_aix系统工程师,重庆南华中天技术有限公司
X社区推广