注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

hty

 
 
 

日志

 
 

how to solve / need fsck problem by un-encapsulate, and how to re-ecapsulate  

2009-03-17 11:33:19|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

how to  solve / need fsck problem by un-encapsulate,

=====================================

我们通过解封装已经把系统正常起来了我们需要尽快定位出如下问题。

1、   我们在做杀应用进程导换的时候,服务器的DG全部disabled的。
The command I used was kill -9 PID of process BMSMplsAdapterDm_N2KHuawei_BUC and the time was around 12:40 Romania time (10:40 GMT or 18:40 China time).

2、   Rootdg和应用dg全部disabeld以后,rootdg修复需要重起,重起后系统就无法进入。 


 

我们使用如下方法解封装,然后系统正常了。

 

1、init 0

 

2、ok>boot -s cdrom

 

3. #mount /dev/dsk/c1t0d0s0 /mnt  

 

4.  

#TERM=vt100

#export TERM

#cd /mnt/etc

 

5、cp /mnt/etc/system /mnt/etc/system-chenfan

6. vi /mnt/etc/system

删除这两行:

rootdev:/pseudo/vxio@0:0

set vxio:vol_rootdev_is_volume=1

 

7、修改vfstab

#cp /mnt/etc/vfstab /mnt/etc/vfstab.bak

#cp /mnt/etc/vfstab-INSTALL /mnt/etc/vfstab

 

 

8. 重起

#init 6 

 


how to re-encapluste

==========================





in the vxexplorer log  I got, the output of vxdisk -o alldgs list  is:



DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     -            (rootdg)     online
c1t1d0s2     auto:cdsdisk    disk02       n2kdg_N2KHuawei_BUC online
c1t2d0s2     auto:sliced     -            (rootdg)     online
c1t3d0s2     auto:cdsdisk    disk04       n2kdg_N2KHuawei_BUC online
c1t4d0s2     auto:sliced     -            (rootdg)     online
c1t5d0s2     auto:cdsdisk    disk06       n2kdg_N2KHuawei_BUC online spare



if rootdg in deport state, you can follow  the steps to encapsulate the rootdisk again:

===================================

#prtvtoc /dev/dsk/c1t0d0s2
* /dev/rdsk/c1t0d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*     848 sectors/track
*      24 tracks/cylinder
*   20352 sectors/cylinder
*   14089 cylinders
*   14087 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
      0      2    00          0  83890944  83890943   /
      1      3    01   83890944  33560448 117451391
      2      5    00          0 286698624 286698623
      3     14    01          0 286698624 286698623
      4     15    01  286596864    101760 286698623
      5      0    00  117451392  62928384 180379775   /opt
      6      8    00  180379776  83890944 264270719   /export/home



need to remove partition 3 and 4 by:


#fmthard 3:0:0:0:0:0 /dev/rdsk/c1t0d0s2  
#fmthard 4:0:0:0:0:0 /dev/rdsk/c1t0d0s2  

then :



# vxdctl mode  
mode: enable  

Encapsulating the disk -  
# vxdiskadm  
option 2  
c1t0d0  


dm name rootdg01

# shutdown -y -i6 -g0  


after reboot:

# vxprint -qthg rootdg  


remove partition 3 and 4 by

# prtvtoc /dev/rdsk/c1t2d0s2  
# fmthard 3:0:0:0:0:0 /dev/rdsk/c1t2d0s2  
# fmthard 4:0:0:0:0:0 /dev/rdsk/c1t2d0s2  


# prtvtoc /dev/rdsk/c1t4d0s2  


# fmthard 3:0:0:0:0:0 /dev/rdsk/c1t4d0s2  
# fmthard 4:0:0:0:0:0 /dev/rdsk/c1t4d0s2  

# /etc/vx/bin/vxdisksetup -fi c1t2d0  
# /etc/vx/bin/vxdisksetup -fi c1t4d0  


# vxdg -g rootdg adddisk rootdg02=c1t2d0s2  
# vxdg -g rootdg adddisk rootdg03=c1t4d0s2  


# vxdiskadm  
option 6  
rootdg01  
rootdg02  
mirroring has been started  


after finish rootdg02, same step for rootdg03.  


after both finished, confirm all plex are  ok:

#vxprint -ht  -g rootdg

========================================
In the operation, I have 2 resumes

1. rootdg in deport state

2. you have 3 disks in rootdg, they are c1t0d0,c1t2d0,c1t4d0.their dm name are rootdg01,rootdg02,rootdg03.  You can change the names as your request.






  评论这张
 
阅读(167)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017