eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« 月到中秋 | Blog首页 | Oracle and Hurricane Katrina »

解决VxVM vxdisk ERROR V-5-1-5433 错误

今天在使用Veritas Volume Manager初始化磁盘的时候遇到了如下一个错误:
# vxdisk init c5t1d0s2
VxVM vxdisk ERROR V-5-1-5433 Device c5t1d0s2: init failed:
        Disk header indicates aliased partitions

查看磁盘状态:
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t10d0s2    auto:none       -            -            online invalid
c0t11d0s2    auto:none       -            -            online invalid
c5t1d0s2     simple          -            -            online aliased
c5t1d1s2     simple          -            -            online aliased
c5t1d2s2     simple          -            -            online aliased
c5t1d3s2     simple          -            -            online aliased
c5t1d4s2     simple          -            -            online aliased
c5t1d5s2     simple          -            -            online aliased

发现磁盘处在:online aliased状态,online aliased状态表明该磁盘上存在私有和公有的分区信息。
通过vxdiskunsetup和vxdisksetup命令可以改变这个状态。
我们看一下这个磁盘上现有的分区信息:
# vxdisk list c5t1d0s2                                
Device:    c5t1d0s2
devicetag: c5t1d0
type:      simple
hostid:    db4500.eygle.com
disk:      name= id=1126175195.28.db4500.eygle.com
group:     name=fgdatadg id=1126175586.45.eygle.com
info:      privoffset=1
flags:     online ready private autoimport aliased
pubpaths:  block=/dev/vx/dmp/c5t1d0s2 char=/dev/vx/rdmp/c5t1d0s2
version:   2.1
iosize:    min=512 (bytes) max=256 (blocks)
public:    slice=0 offset=2049 len=215668735 disk_offset=0
private:   slice=0 offset=1 len=2048 disk_offset=0
update:    time=1126175586 seqno=0.6
ssb:       actual_seqno=0.0
headers:   0 248
configs:   count=1 len=1481
logs:      count=1 len=224
Multipathing information:
numpaths:   2
c5t1d0s2        state=enabled
c5t3d0s2        state=enabled

vxdiskunsetup说明如下:
The vxdiskunsetup command operates by removing the public
and private regions that were created by the last invocation
of vxdisksetup on the specified disks. After this opera-
tion, those disks are converted from the online to the
online invalid (as displayed by vxdisk list).

使用vxdiskunsetup命令:
# vxdiskunsetup -C c5t1d0
VxVM vxdiskunsetup NOTICE V-5-2-3522 c5t1d0: Disk is not a volume manager disk
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t10d0s2    auto:none       -            -            online invalid
c0t11d0s2    auto:none       -            -            online invalid
c5t1d0s2     simple          -            -            online invalid
c5t1d1s2     simple          -            -            online aliased
c5t1d2s2     simple          -            -            online aliased
c5t1d3s2     simple          -            -            online aliased
c5t1d4s2     simple          -            -            online aliased
c5t1d5s2     simple          -            -            online aliased
# vxdisksetup -i c5t1d0
VxVM vxdisksetup ERROR V-5-2-133 Disk c5t1d0 contains simple DA record c5t1d0s2;
        Disk cannot be reinitialized by vxdisksetup.

此时可以使用vxdisk init,vxdg init 等命令对磁盘进行重新初始化。
在VCS新的版本中,vxdisksetup命令被替代,可以使用vxdiskadm完成相应的工作,但是vxdiskadm的选项相对复杂,需要注意使用。
在某些条件下,可以使用vxdisk -f init强制对磁盘进行初始化,以刷新其状态

供参考。

历史上的今天...
    >> 2011-09-09文章:
    >> 2009-09-09文章:
    >> 2008-09-09文章:

无觅

By eygle on 2005-09-09 17:43 | Comments (0) | System | 425 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com