kelgoo 发表于 2011-12-05 23:01

转战到这个板块寻求高手

小弟新手,VxVM刚接触不久,这本来是HP-UX上出现的问题,但是vxvm在那边似乎应用不多,看这边红火,特来这边求助

先给大家看看出错信息


# vxprint -g logdg -v -s
TY NAME         ASSOC      KSTATE   LENGTH   PLOFFS   STATE    TUTIL0PUTIL0
sd c4t5d0-01    lvol_filequeue-01 ENABLED 2097152 0   -      -       -
sd c4t5d0-02    lvol_spool_rt-01 ENABLED 2097152 0      -      -       -
sd c4t5d0-03    lvol_work-01 ENABLED10485760      -      -       -
sd c4t6d0-01    lvol_backups-01 ENABLED 20971520 0      -      -       -
sd c4t6d0-02    lvol_varopt_iona-01 ENABLED 614400 0    -      -       -
sd c4t6d0-03    lvol_bpmdata-01 ENABLED 524288 0      -      -       -
sd c4t6d0-04    lvol_cmdrsplog-01 ENABLED 49152 0       -      -       -
sd c4t6d0-05    lvol_dataext-01 ENABLED 614400 0      -      -       -
sd c4t6d0-06    lvol_onevision-01 ENABLED 430080 0      -      -       -
sd c4t6d0-07    lvol_ntfcnlog-01 ENABLED 49152 0      -      -       -
sd c4t6d0-08    lvol_tooldata-01 ENABLED 131072 0       -      -       -
sd c4t6d0-09    lvol_usractlog-01 ENABLED 16384 0       -      -       -
sd c4t12d0-01   lvol_filequeue-02 DISABLED 2097152 0    NODEVICE -       -
sd c4t12d0-02   lvol_spool_rt-02 DISABLED 2097152 0   NODEVICE -       -
sd c4t12d0-03   lvol_work-02 DISABLED 10485760      NODEVICE -       -


# vxdisk list
DEVICE       TYPE            DISK         GROUP      STATUS
c2t0d0       auto:hpdisk   rootdisk01rootdg       online
c2t1d0       auto:hpdisk   rootdisk02rootdg       online
c4t0d0       auto:hpdisk   c4t0d0      dbdg         online
c4t1d0       auto:hpdisk   c4t1d0      dbdg         online
c4t2d0       auto:hpdisk   c4t2d0      dbdg         online
c4t3d0       auto:hpdisk   c4t3d0      dbdg         online
c4t4d0       auto:hpdisk   c4t4d0      dbdg         online
c4t5d0       auto:hpdisk   c4t5d0      logdg      online
c4t6d0       auto:hpdisk   c4t6d0      logdg      online
c4t7d0       auto:hpdisk   c4t7d0      dbdg         online
c4t8d0       auto:hpdisk   c4t8d0      dbdg         online
c4t9d0       auto:hpdisk   c4t9d0      dbdg         online
c4t10d0      auto:hpdisk   c4t10d0   dbdg         online
c4t11d0      auto:hpdisk   c4t11d0   dbdg         online
c4t12d0      auto            -         -            error
c4t13d0      auto:hpdisk   c4t13d0   logdg      online
c4t14d0      auto:LVM      -         -            LVM
-            -         c4t12d0      logdg      failed was:c4t12d0
# dd if=/dev/dsk/c4t12d0 of=/dev/null bs=1024
/dev/dsk/c4t12d0: I/O error
dd: cannot open /dev/dsk/c4t12d0

至此断定c4t12d0硬件故障

接着#/opt/VRTS/bin/vxdiskunsetup -FC c4t12d0
接着同槽位更换硬盘,后面问题就来了
#vxdiskadm

1      Add or initialize one or more disks
2      Remove a disk
3      Remove a disk for replacement
4      Replace a failed or removed disk
5      Mirror volumes on a disk
6      Move volumes from a disk
7      Enable access to (import) a disk group
8      Remove access to (deport) a disk group
9      Enable (online) a disk device

无论选择9,3,4都无法把c4t12d0移除掉,请看

Remove a disk for replacement
Menu: VolumeManager/Disk/RemoveForReplace

Use this menu operation to remove a physical disk from a disk
group, while retaining the disk name.This changes the state
for the disk name to a "removed" disk.If there are any
initialized disks that are not part of a disk group, you will be
given the option of using one of these disks as a replacement.

Enter disk name [<disk>,list,q,?]c4t12d0
VxVMERROR V-5-2-144 Disk c4t12d0 is already removed for replacement.

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,?]c4t12d0

VxVMERROR V-5-2-1985 No devices are available as replacements for c4t12d0.

kelgoo 发表于 2011-12-05 23:03

再次更换硬盘后,还做过如下处理

# idisk -v /dev/rdsk/c4t12d0
idisk: Primary partition information not valid.
Run idisk with -r option to restore.
# idisk -r /dev/rdsk/c4t12d0
idisk version: 1.32
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? y
User Aborting!

# idisk -Rw /dev/rdsk/c4t12d0
idisk: Write mode requires description file
idisk version: 1.32
********************** WARNING ***********************
If you continue you will destroy all partition data on this disk.
Do you wish to continue(yes/no)? y
User Aborting!

# idisk -Rw /dev/rdsk/c4c12d0
idisk: Write mode requires description file
idisk: Stat of disk failed(2)

# idisk -Rw /dev/rdsk/c4t12d0
idisk: Write mode requires description file
idisk version: 1.32
********************** WARNING ***********************
If you continue you will destroy all partition data on this disk.
Do you wish to continue(yes/no)? yes
idisk: Write of requested data failed(22)
idisk: Failed destroying MBR.


# /opt/VRTS/bin/vxdisksetup -ifB c4t14d0 format=hpdisk
VxVM vxdisk ERROR V-5-1-3421 Device c4t14d0 is already in use by LVM.

仍然无法删除c4t12d0,c4t14d0本来是备用硬盘,希望更改为hpdisk拿来用试试也失败了
可以肯定的是,目前这块c4t12d0硬盘是好的,dd过没问题
求解答

财版 发表于 2011-12-06 10:31

直接换:em27:

kelgoo 发表于 2011-12-06 13:48

已经换过两次了,问题就在于换了之后error的标识还在,无法去除,所以新的添加不到DG里

再次重申,换上的硬盘应该没问题,DD过

cqubityj 发表于 2011-12-07 12:30

执行vxdiskunsetup时c4t12d0已经被从vxvm中移除了。你需要用vxdiskadm或vxdisksetup重新初始化一下磁盘。

kelgoo 发表于 2011-12-07 23:27

回复 5# cqubityj


   使用vxdiskadm,选项1   Add or initialize one or more disks
报错:
Select disk devices to add: [<pattern-list>,all,list,q,?]c4t12d0

No matching disks found.

Hit RETURN to continue.


使用vxdisksetup,报错:
# /opt/VRTS/bin/vxdisksetup -ifB c4t12d0 format=hpdisk
VxVM vxdisksetup ERROR V-5-2-43 c4t12d0: Invalid disk device for vxdisksetup


我感觉是不是之前删除的时候vxdiskunsetup -FC c4t12d0用错了

kelgoo 发表于 2011-12-08 22:31

高手们,出现吧!!!!!!!!!!!!

byuq 发表于 2011-12-09 16:50

在solaris系统中,更换物理磁盘后需要做
vxdctl enable   (扫描设备)
vxreattach      (重新挂接磁盘)
然后做后面的换盘步骤,HP-UX不知道是不是一样的?

anakin81 发表于 2011-12-12 03:05

本帖最后由 anakin81 于 2011-12-12 03:07 编辑

回复cqubityj


   使用vxdiskadm,选项1   Add or initialize one or more disks
报错:
Select d ...
kelgoo 发表于 2011-12-07 23:27 http://bbs.chinaunix.net/images/common/back.gif

dgdisable还有存在吗 ???
页: [1]
查看完整版本: 转战到这个板块寻求高手