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.
评论