免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3849 | 回复: 11

n1405机器,cluster 3.0 ,vxvm 3.2 ,根盘c0t0d0故障,更换问题 [复制链接]

论坛徽章:
0
发表于 2009-01-12 15:52 |显示全部楼层
n1405机器,cluster 3.0 ,vxvm 3.2 ,根盘c0t0d0故障,更换步骤:

c0t0d0s2和c0t1d0s2做的根盘镜像,现在c0t0d0s2现在故障,已经失败,下面是还盘的步骤:

先移除失败的盘c0t0d0s2

root@smcp1#vxdiskadm
Select an operation to perform: 4
# vxdctl enable
#vxdisksetup -i c0t0d0
# vxdiskadm
Select an operation to perform: 5
Select a removed or failed disk [<disk>,list,q,?]
listDisk group: rootdg
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATEdm
rootdisk_1   -            -        -        -        REMOVED
Select a removed or failed disk [<disk>,list,q,?] rootdisk_1
Select disk device to initialize [<address>,list,q,?] c0t0d0  

The following disk device has a valid VTOC, but does not appear to have
  been initialized for the Volume Manager.  If there is data on the disk
  that should NOT be destroyed you should encapsulate the existing disk
  partitions as volumes instead of adding the disk as a new disk.
  Output format: [Device_Name]  c0t0d0

Encapsulate this device? [y,n,q,?] (default: y) n  

c0t0d0 Instead of encapsulating, initialize? [y,n,q,?] (default: n) y  
The requested operation is to initialize disk device c0t0d0 and
  to then use that device to replace the removed or failed disk
  rootdisk_1 in disk group rootdg.
Continue with operation? [y,n,q,?] (default: y)
Use a default private region length for the disk?[y,n,q,?] (default: y)  

Replacement of disk rootdisk_1 in group rootdg with device c0t0d0
  failed.
  vxvm:vxdg: ERROR: associating disk-media rootdisk_1 with c0t0d0s2:

        Disk public region is too smallReplace a different disk? [y,n,q,?] (default: n)




重新vxdiskadm    ----> 5


root@smcp1 # vxdiskadm
Select an operation to perform: 5

Replace a failed or removed disk
Menu: VolumeManager/Disk/ReplaceDisk

  Use this menu operation to specify a replacement disk for a disk
  that you removed with the "Remove a disk for replacement" menu
  operation, or that failed during use.  You will be prompted for
  a disk name to replace and a disk device to use as a replacement.
  You can choose an uninitialized disk, in which case the disk will
  be initialized, or you can choose a disk that you have already
  initialized using the Add or initialize a disk menu operation.

Select a removed or failed disk [<disk>,list,q,?] list

Disk group: rootdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE

dm rootdisk01   -            -        -        -        REMOVED


Select a removed or failed disk [<disk>,list,q,?] rootdisk01

  The following devices are available as replacements:

        c0t1d0s2

  You can choose one of these disks to replace rootdisk01.
  Choose "none" to initialize another disk to replace rootdisk01.

Choose a device, or select "none"
[<device>,none,q,?] (default: c0t0d0s2) none       这是改动,选none,不直接回车

Select disk device to initialize [<address>,list,q,?] list

DEVICE       DISK         GROUP        STATUS
c0t0d0       -                 -                  online
c0t1d0       rootmirr_1      rootdg       online

Select disk device to initialize [<address>,list,q,?] c0t0d0

  The following disk device appears to have been initialized already.
  The disk is currently available as a replacement disk.
  Output format: [Device_Name]

  c0t0d0

Use this device? [y,n,q,?] (default: y) y

  The following disk you selected for use appears to already have
  been initialized for the Volume Manager.  If you are certain the
  disk has already been initialized for the Volume Manager, then you
  do not need to reinitialize the disk device.
  Output format: [Device_Name]

  c0t0d0

Reinitialize this device? [y,n,q,?] (default: y)

  The requested operation is to initialize disk device c0t1d0 and
  to then use that device to replace the removed or failed disk
  rootdisk01 in disk group rootdg.

Continue with operation? [y,n,q,?] (default: y)

Use a default private region length for the disk?
[y,n,q,?] (default: y)

  Replacement of disk rootdisk01 in group rootdg with disk device
  c0t1d0 completed successfully.

Replace another disk? [y,n,q,?] (default: n)


# vxtask list
TASKID  PTID TYPE/STATE    PCT   PROGRESS
   161           PARENT/R  0.00% 5/0(1) VXRECOVER rootdisk_1
   162   162     ATCOPY/R 01.08% 0/28731105/311240 PLXATT home home-01

同步完成!

# vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    rootdisk_1   rootdg       online
c0t1d0s2     sliced    rootmirr_1   rootdg       online

# vxtask list
TASKID  PTID TYPE/STATE    PCT   PROGRESS

# format

Specify disk (enter its number): 0   换完的硬盘,分区表还是封装格式的,和镜像盘分区表不一样。
selecting c0t0d0
[disk formatted]
format> ve
Primary label contents:Volume name = <        >
ascii name  = <SUN36G cyl 24620 alt 2 hd 27 sec 107>
pcyl        = 24622
ncyl        = 24620
acyl        =    2
nhead       =   27
nsect       =  107
Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0                0         (0/0/0)            0
  1 unassigned    wm       0                0         (0/0/0)            0
  2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
  3          -    wu   24619 - 24619        1.41MB    (1/0/0)         2889
  4          -    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
  5 unassigned    wm       0                0         (0/0/0)            0
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm       0                0         (0/0/0)            0

format> q

# format
Searching for disks...doneSpecify disk (enter its number): 1    原来的镜像盘,分区表和刚替换完的c0t0d0s2不一样
selecting c0t1d0
[disk formatted]
FORMAT MENU:
AVAILABLE DISK SELECTIONS:format> vePrimary label contents:Volume name = <        >
ascii name  = <SUN36G cyl 24620 alt 2 hd 27 sec 107>
pcyl        = 24622
ncyl        = 24620
acyl        =    2
nhead       =   27
nsect       =  107
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 -  5808        8.00GB    (5808/0/0)  16779312
  1       swap    wu    5809 -  8712        4.00GB    (2904/0/0)   8389656
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3          -    wu       0 -     0        1.41MB    (1/0/0)         2889
  4          -    wu       1 - 24619       33.91GB    (24619/0/0) 71124291
  5 unassigned    wm   18800 - 24607        8.00GB    (5808/0/0)  16779312
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm       0                0         (0/0/0)            0f

ormat> q

# vxprint -ht
Disk group: rootdgDG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
V  NAME         RVG          KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCOdg rootdg       all          default  50       1080450321.1025.smcp1
dm rootdisk_1   c0t0d0s2     sliced   2888     71124291 -
dm rootmirr_1   c0t1d0s2     sliced   2888     71124291 -v  home         -            ENABLED  ACTIVE   28731105 ROUND     -        gen
pl home-01      home         ENABLED  ACTIVE   28731105 CONCAT    -        RW
sd rootdisk_1-04 home-01     rootdisk_1 41948279 28731105 0       c0t0d0   ENA
pl home-02      home         ENABLED  ACTIVE   28731105 CONCAT    -        RW
sd rootmirr_1-04 home-02     rootmirr_1 25579206 28731105 0       c0t1d0   ENAv  opt          -            ENABLED  ACTIVE   16779312 ROUND     -        gen
pl opt-01       opt          ENABLED  ACTIVE   16779312 CONCAT    -        RW
sd rootdisk_1-05 opt-01      rootdisk_1 25168967 16779312 0       c0t0d0   ENA
pl opt-02       opt          ENABLED  ACTIVE   16779312 CONCAT    -        RW
sd rootmirr_1-05 opt-02      rootmirr_1 54310311 16779312 0       c0t1d0   ENAv  rootdisk_17vol -          ENABLED  ACTIVE   410238   ROUND     -        gen
pl rootdisk_17vol-01 rootdisk_17vol ENABLED ACTIVE 410238 CONCAT  -        RW
sd rootdisk_1-03 rootdisk_17vol-01 rootdisk_1 70679384 410238 0   c0t0d0   ENA
pl rootdisk_17vol-02 rootdisk_17vol ENABLED ACTIVE 410238 CONCAT  -        RW
sd rootmirr_1-03 rootdisk_17vol-02 rootmirr_1 25168968 410238 0   c0t1d0   ENAv  rootvol      -            ENABLED  ACTIVE   16779312 ROUND     -        root
pl rootvol-01   rootvol      ENABLED  ACTIVE   16779312 CONCAT    -        RW
sd rootdisk_1-B0 rootvol-01  rootdisk_1 71124290 1      0         c0t0d0   ENA
sd rootdisk_1-02 rootvol-01  rootdisk_1 0      16779311 1         c0t0d0   ENA
pl rootvol-02   rootvol      ENABLED  ACTIVE   16779312 CONCAT    -        RW
sd rootmirr_1-01 rootvol-02  rootmirr_1 0      16779312 0         c0t1d0   ENAv  swapvol      -            ENABLED  ACTIVE   8389656  ROUND     -        swap
pl swapvol-01   swapvol      ENABLED  ACTIVE   8389656  CONCAT    -        RW
sd rootdisk_1-01 swapvol-01  rootdisk_1 16779311 8389656 0        c0t0d0   ENA
pl swapvol-02   swapvol      ENABLED  ACTIVE   8389656  CONCAT    -        RW
sd rootmirr_1-02 swapvol-02  rootmirr_1 16779312 8389656 0        c0t1d0   ENA

卷状态正常





新盘分区表和镜像盘的分区表不一样,并且不能引导,不知到是什么原因?请各位指点!



分区表不一样,换完盘是否应该能引导那?

论坛徽章:
0
发表于 2009-01-12 17:00 |显示全部楼层
个人感觉有问题,可以看一下这里。
The following disk you selected for use appears to already have
  been initialized for the Volume Manager.  If you are certain the
  disk has already been initialized for the Volume Manager, then you
  do not need to reinitialize the disk device.
  Output format: [Device_Name]

  c0t0d0

Reinitialize this device? [y,n,q,?] (default: y)

  The requested operation is to initialize disk device c0t1d0 and
  to then use that device to replace the removed or failed disk
  rootdisk01 in disk group rootdg.

Continue with operation? [y,n,q,?] (default: y)

Use a default private region length for the disk?
[y,n,q,?] (default: y)

  Replacement of disk rootdisk01 in group rootdg with disk device
  c0t1d0 completed successfully.

论坛徽章:
0
发表于 2009-01-12 17:12 |显示全部楼层
华为的case 呵呵 建议LZ 把主机名 xxx掉

论坛徽章:
0
发表于 2009-01-12 17:14 |显示全部楼层
原帖由 westlife521 于 2009-1-12 17:12 发表
华为的case 呵呵 建议LZ 把主机名 xxx掉


厉害,看主机名就知道。

论坛徽章:
0
发表于 2009-01-12 17:30 |显示全部楼层
能具体说一下问题原因,及解决办法吗?

论坛徽章:
0
发表于 2009-01-12 20:30 |显示全部楼层
smcp1

看样子应该配置了sun cluster

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
发表于 2009-01-12 20:46 |显示全部楼层
打华为800报修!

论坛徽章:
0
发表于 2009-01-12 22:44 |显示全部楼层
华为的认证计费

论坛徽章:
0
发表于 2009-01-13 01:23 |显示全部楼层
帮顶了,遇到了和你一模一样的问题,也是华为的应用,不知道怎么解决,同问了

论坛徽章:
0
发表于 2009-01-13 11:17 |显示全部楼层

回复 #1 sun_sm 的帖子

华为的这套系统我也维修过,呵呵

你的问题比较像是磁盘类型没有被Solaris系统正确识别引起的,你是在线换的盘吧。

lz看看这个http://seer.entsupport.symantec.com/docs/242940.htm

希望对你有帮助。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP