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

hty

 
 
 

日志

 
 

Viewing Incident: 1234527  

2009-02-16 16:39:52|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

issuse:


  
  
    VxVM vxrootmir ERROR V-5-2-1970 Mirror disk and Root disk should have same geometry.
   
    vxprtpart show heads are different on sda and sdb.
   
     so suggest customer recreate lun.
    
     after recreate lun:
    
    
     [root@arcx346vml2r bin]# /etc/vx/bin/vxprtpart -z -f /tmp/d2  sdb
VxVM vxprtpart ERROR V-5-1-6536 error reading partitions


[root@arcx346vml2r bin]# fdisk -l /dev/sdb

Disk /dev/sdb: 20.9 GB, 20971520000 bytes
255 heads, 63 sectors/track, 2549 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table


[root@arcx346vml2r bin]# fdisk -l /dev/sda

Disk /dev/sda: 20.9 GB, 20971520000 bytes
255 heads, 63 sectors/track, 2549 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1      1020   8193118+  83  Linux
/dev/sda2          1021      1542   4192965   82  Linux swap
/dev/sda3          2549      2549      8032+ 
....

 VxVM vxrootmir ERROR V-5-2-2238
Disk sdb is already being used as auto disk - in disk group -;
        Disk cannot be used for mirroring root.

    
    
     then suggest customer :
    
     1. try change disk name schema:
     After changing disk naming scheme to EBN,the error seems the same
 
VxVM vxrootmir ERROR V-5-2-2238
Disk SAN_VC0_0 is already being used as auto disk - in disk group -;
        Disk cannot be used for mirroring root.

   2.[root@arcx346vml2r tmp]# /usr/lib/vxvm/bin/vxdiskunsetup -C sdb
VxVM vxdisk ERROR V-5-1-558 Disk sdb: Disk not in the configuration
VxVM vxdiskunsetup ERROR V-5-2-1121 sdb: Error while running vxdisk -s list. Can not proceed.
[root@arcx346vml2r tmp]# /usr/lib/vxvm/bin/vxdiskunsetup -C SAN_VC0_0
VxVM vxdiskunsetup ERROR V-5-2-1119 SAN_VC0_0: Disk device is offline. Can't perform operation until disk is online.
[root@arcx346vml2r tmp]#

kui_ren@hotmail.com 说 (14:22):
[root@arcx346vml2r tmp]# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
SAN_VC0_0    auto            -            -            offline
sda          auto liced     rootdisk     rootdg       online


3.change disk name scheming back:

[root@arcx346vml2r tmp]# /etc/vx/diag.d/vxscsi -g /dev/sdb
geometry of /dev/sdb: nhead=32 nsect=64 ncyl=20000 sectsz=512 rpm=10000 cap=40960000

[root@arcx346vml2r tmp]# /etc/vx/diag.d/vxscsi -g /dev/sda
geometry of /dev/sda: nhead=32 nsect=64 ncyl=20000 sectsz=512 rpm=10000 cap=40960000

[root@arcx346vml2r tmp]# /usr/lib/vxvm/bin/vxdiskunsetup -C sdb
VxVM vxdiskunsetup ERROR V-5-2-1119 sdb: Disk device is offline. Can't perform operation until disk is online.


after vxdisk -a online
[root@arcx346vml2r tmp]# /usr/lib/vxvm/bin/vxdiskunsetup -C sdb
VxVM vxprtpart ERROR V-5-1-6536 error reading partitions
4.

vxdisksetup  -fi sdb
and
then
vxdiskunsetup -C sdb

 


after doing that,,,,

[root@arcx346vml2r tmp]# /etc/vx/diag.d/vxscsi -g /dev/sdb
geometry of /dev/sdb: nhead=32 nsect=64 ncyl=20000 sectsz=512 rpm=10000 cap=40960000

but fdisk gives differently:
[root@arcx346vml2r tmp]# fdisk -l /dev/sdb

Disk /dev/sdb (Sun disk label): 32 heads, 64 sectors, 19998 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sdb3  u          0     19998  20477952    5  Whole disk


[root@arcx346vml2r tmp]# /etc/vx/diag.d/vxscsi -g /dev/sda
geometry of /dev/sda: nhead=32 nsect=64 ncyl=20000 sectsz=512 rpm=10000 cap=40960000


5.remove sun disk lable,

can you try to remove lable  vxdisksetup done? and  label it again,
WeiQun 说 (16:07):
then try to see fdisk -l
WeiQun 说 (16:07):
if head/sector changed?
kui_ren@hotmail.com 说 (16:08):
I'm wondering how to "remove"...
WeiQun 说 (16:08):
fdisk /dev/sdb
WeiQun 说 (16:09):
# fdisk /dev/sdX
Command (m for help): o
Command (m for help): w
kui_ren@hotmail.com 说 (16:12):
after erasing the sun disk lable by fdisk,
guess what.....?
kui_ren@hotmail.com 说 (16:13):
[root@arcx346vml2r tmp]# fdisk  -l /dev/sdb

Disk /dev/sdb: 20.9 GB, 20971520000 bytes
255 heads, 63 sectors/track, 2549 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
[root@arcx346vml2r tmp]# fdisk  -l /dev/sda

Disk /dev/sda: 20.9 GB, 20971520000 bytes
255 heads, 63 sectors/track, 2549 cylinders
Units = cylinders of 16065 * 51
WeiQun 说 (16:14):
vxprtpart -z  -f /tmp/log /dev/sdb

kui_ren@hotmail.com 说 (16:21):
the geometry of sda and sdb are the same now...
so I guess the mirroring must be sucessfull,do not U think so?
kui_ren@hotmail.com 说 (16:21):
[root@arcx346vml2r root]# cat /tmp/ricky/mirror/geometry.sda
/dev/vx/dmp/sda 40949685 255 63 2549 0 4 16 0
1 63 16386237 0x83
2 16386300 8385930 0x82
3 40933620 16065 0x7f
4 63 40933557 0x7e

kui_ren@hotmail.com 说 (16:21):
[root@arcx346vml2r root]# cat /tmp/ricky/mirror/geometry.sdb
/dev/vx/dmp/sdb 40949685 255 63 2549 0 4 16 0
1 63 16386237 0x83
2 16386300 8385930 0x82
3 40933620 16065 0x7f
4 63 40933557 0x7e
WeiQun 说 (16:21):
yes, if that
kui_ren@hotmail.com 说 (16:24):
[root@arcx346vml2r tmp]# /etc/vx/bin/vxrootmir sdb rootmir
VxVM vxrootmir INFO V-5-2-1883 Copying partitions...
WeiQun 说 (16:24):
hehe
kui_ren@hotmail.com 说 (16:24):
it does really begin with no more geometry err....

    

kui_ren@hotmail.com 说 (16:25):
WOW....
and let's just wait and see the result....
kui_ren@hotmail.com 说 (16:28):
it works out...
kui_ren@hotmail.com 说 (16:28):
mirroring done smoothly...
WeiQun 说 (16:29):
ok.
kui_ren@hotmail.com 说 (16:29):
so the point is erasing the Sun disk label with DOS disk label,
WeiQun 说 (16:29):
I remembed  you have done that at first time,
kui_ren@hotmail.com 说 (16:30):
no,never...
kui_ren@hotmail.com 说 (16:30):
only this time....
kui_ren@hotmail.com 说 (16:31):
so let's make the whole mirroring process more clear,reasonable,and of course applicable...
WeiQun 说 (16:31):
1. create lun .
kui_ren@hotmail.com 说 (16:32):
right...
WeiQun 说 (16:32):
2. label the disk with fdisk--->o -->m
WeiQun 说 (16:32):
3. vxprtpart -z -f should see same head/sector.
WeiQun 说 (16:32):
4.vxrootmir
kui_ren@hotmail.com 说 (16:33):
no need for vxdisksetup?
WeiQun 说 (16:33):
yes
WeiQun 说 (16:33):
you can try it again,
WeiQun 说 (16:33):
hehe
WeiQun 说 (16:33):
if like
kui_ren@hotmail.com 说 (16:34):
just the 4 steps?
OK,I may replay the whole procedure to make the process clear and accurate...
WeiQun 说 (16:34):
sure

 

 

======

 

from admin guide:

 

A disk cannot be initialized if it does not have a valid useable partition table. You
can use the fdisk command to create an empty partition table on a disk as
shown here:
# fdisk /dev/sdX
Command (m for help): o
Command (m for help): w

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

历史上的今天

评论

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

页脚

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