Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1192930
  • 博文数量: 245
  • 博客积分: 10185
  • 博客等级: 上将
  • 技术积分: 2744
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-30 17:07
文章分类

全部博文(245)

文章存档

2015年(1)

2014年(1)

2013年(1)

2012年(1)

2011年(37)

2010年(20)

2009年(14)

2008年(38)

2007年(88)

2006年(44)

分类: 服务器与存储

2011-02-28 16:58:24

-o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
........................................................................
ams_wms0_238 auto:cdsdisk    -            -            online
ams_wms0_239 auto            -            -            error
ams_wms0_240 auto            -            -            error
........................................................................
disk_0       auto:none       -            -            online invalid
 
-i ams_wms0_239
VxVM vxdisksetup ERROR V-5-2-3535 ams_wms0_239: Invalid dmpnodename for disk device ams_wms0_239.

###format输出只能看到c#t#d#s#,可以用vxdisk list ams_wms0_239 来找到对应
关系,也可以用vxdiskadm 命令(选20 将disk名字显示方式改为 c#t#d#s# ).
 
list ams_wms0_239
Device:    ams_wms0_239
devicetag: ams_wms0_239
type:      auto
flags:     error private autoconfig
pubpaths:  block=/dev/vx/dmp/ams_wms0_239 char=/dev/vx/rdmp/ams_wms0_239
guid:      -
udid:      HITACHI%5FDF600F%5F77010923%5F00EF
site:      -
errno:     Configuration daemon error -1
Multipathing information:
numpaths:   1
c1t50060E801002AAB0d14s2        state=disabled  type=primary
 
需要用format命令label一下disk.(适用于Solaris平台)
 
(最初的 2行就是没有label的disk)
Searching for disks...done
c1t50060E801002AAB0d14: configured with capacity of 9.96GB
c1t50060E801002AAB0d15: configured with capacity of 9.96GB

AVAILABLE DISK SELECTIONS:
       0. c1t50060E801002AAB0d0
         
      14. c1t50060E801002AAB0d14
         
      15. c1t50060E801002AAB0d15
         
....................................
      28. c2t1d0
         
Specify disk (enter its number): 14
selecting c1t50060E801002AAB0d14
[disk formatted]

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !     - execute , then return
        quit
format> label
Ready to label disk, continue? y
format> verify
Primary label contents:
Volume name = <        >
ascii name  =
pcyl        =  546
ncyl        =  544
acyl        =    2
nhead       =   50
nsect       =  768
Part      Tag    Flag     Cylinders       Size            Blocks
  0       root    wm       0 -   6      131.25MB    (7/0/0)     268800
  1       swap    wu       7 -  13      131.25MB    (7/0/0)     268800
  2     backup    wu       0 - 543        9.96GB    (544/0/0) 20889600
  3 unassigned    wm       0              0         (0/0/0)          0
  4 unassigned    wm       0              0         (0/0/0)          0
  5 unassigned    wm       0              0         (0/0/0)          0
  6        usr    wm      14 - 543        9.70GB    (530/0/0) 20352000
  7 unassigned    wm       0              0         (0/0/0)          0
format> save
Saving new disk and partition definitions
Enter file name["./format.dat"]:
format> quit
-o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
........................................................................
ams_wms0_238 auto:cdsdisk    -            -            online
ams_wms0_239 auto:cdsdisk    -            -            error
ams_wms0_240 auto            -            -            error
........................................................................
disk_0       auto:none       -            -            online invalid
-i ams_wms0_239
-o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
........................................................................
ams_wms0_238 auto:cdsdisk    -            -            online
ams_wms0_239 auto:cdsdisk    -            -            online
ams_wms0_240 auto            -            -            error
........................................................................
disk_0       auto:none       -            -            online invalid
阅读(3020) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~