Chinaunix

标题: solaris 下veritas volume manager 更换硬盘问题!!! [打印本页]

作者: 水木清华    时间: 2008-09-03 11:10
标题: solaris 下veritas volume manager 更换硬盘问题!!!
os: solaris 9  
卷管理软件: veritas volume manager 3.5
故障现象: V890 共12盘磁盘,卷做的是rail 0+1 , 其中一块盘坏了,通vxdiskadm 选择4   Remove a disk for replacement
更换新的磁盘后,在用vxdctl enable 后,发现故障磁盘在vxdisk list  后, 出现两个同样磁盘,这时无法初始化和修复磁盘,当前磁盘是更换过的,硬盘不可能问题。系统没有重启。

vroot@v890-1 # vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c1t0d0s2     sliced    rootdisk     rootdg       online
c1t1d0s2     sliced    rootmirror   rootdg       online
c1t2d0s2     sliced    disk02       backupdg     online
c1t3d0s2     sliced    disk03       backupdg     online
c1t4d0s2     sliced    disk04       backupdg     online
c1t5d0s2     sliced    disk05       backupdg     online
c1t8d0s2     sliced    disk08       backupdg     online
c1t9d0s2     sliced    disk09       backupdg     online
c1t10d0s2    sliced    disk10       backupdg     online
c1t11d0s2    sliced    disk11       backupdg     online
c1t12d0s2    sliced    disk12       backupdg     online
c1t13d0s2    sliced    -            -            offline
c1t13d0s2    sliced    -            -            error
-            -         disk13       backupdg     removed was:c1t13d0s2

作者: mac2008    时间: 2008-09-03 11:42
c1t13d0已经被剔除卷组了,你还需要选择5更换啊
作者: 水木清华    时间: 2008-09-03 12:02
root@v890-1 # vxdiskadm

Volume Manager Support Operations
Menu: VolumeManager/Disk

1      Add or initialize one or more disks
2      Encapsulate one or more disks
3      Remove a disk
4      Remove a disk for replacement
5      Replace a failed or removed disk
6      Mirror volumes on a disk
7      Move volumes from a disk
8      Enable access to (import) a disk group
9      Remove access to (deport) a disk group
10     Enable (online) a disk device
11     Disable (offline) a disk device
12     Mark a disk as a spare for a disk group
13     Turn off the spare flag on a disk
14     Unrelocate subdisks back to a disk
15     Exclude a disk from hot-relocation use
16     Make a disk available for hot-relocation use
17     Prevent multipathing/Suppress devices from VxVM's view


Hit RETURN to continue.



18     Allow multipathing/Unsuppress devices from VxVM's view
19     List currently suppressed/non-multipathed devices
20     Change the disk naming scheme
21     Get the newly connected/zoned disks in VxVM view
list   List disk information


?      Display help about menu
??     Display help about the menuing system
q      Exit from menus

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

  There is no disk named disk in any disk group configuration.
  To get a list of disks enter "list".

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

Disk group: rootdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE


Disk group: backupdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE

dm disk13       -            -        -        -        REMOVED

Disk group: vip890

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE



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

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

  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]

  c1t13d0

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

  c1t13d0

Instead of encapsulating, initialize? [y,n,q,?] (default: n) y

  The requested operation is to initialize disk device c1t13d0 and
  to then use that device to replace the removed or failed disk
  disk13 in disk group backupdg.

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

  Initialization of disk device c1t13d0 failed.
  Error: vxvm:vxdisk: ERROR: Device c1t13d0s2: online failed:
        Device path not valid

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

Volume Manager Support Operations
Menu: VolumeManager/Disk


root@v890-1 # vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c1t0d0s2     sliced    rootdisk     rootdg       online
c1t1d0s2     sliced    rootmirror   rootdg       online
c1t2d0s2     sliced    disk02       backupdg     online
c1t3d0s2     sliced    disk03       backupdg     online
c1t4d0s2     sliced    disk04       backupdg     online
c1t5d0s2     sliced    disk05       backupdg     online
c1t8d0s2     sliced    disk08       backupdg     online
c1t9d0s2     sliced    disk09       backupdg     online
c1t10d0s2    sliced    disk10       backupdg     online
c1t11d0s2    sliced    disk11       backupdg     online
c1t12d0s2    sliced    disk12       backupdg     online
c1t13d0s2    sliced    -            -            error
c1t13d0s2    sliced    -            -            error
-            -         disk13       backupdg     removed was:c1t13d0s2


结果是一样的,初始化磁盘时,报Device path not valid.
作者: wstar    时间: 2008-09-03 17:00
lz重启机器试试吧。如果允许重启的话。
作者: 风之幻想    时间: 2008-09-03 17:44
用luxadm 把c1t1d13的哪个盘删除,然后,在用luxadm添加,然后,再用vxdiskadm更换.
作者: javalee21    时间: 2008-09-03 20:47
vxdisk rm c1t13d0s2/luxadm remove_device/devfsadm -Cv/luxadm insert_device/devfsadm -c disk/vxdctl enable/vxdiskadm-5
作者: 沙中有金    时间: 2008-09-04 00:09
都出来俩c1t13d0s2了,以前遇到过,重启把哥们
作者: webber121    时间: 2008-09-04 10:16
备份数据,reboot
作者: 水木清华    时间: 2008-09-05 10:10
谢谢几位哥们, 重启后, 正常了!
作者: lv_bin98    时间: 2008-09-05 12:17
我的机器上为什么没有
vxdisk命令呢
作者: cloud_du    时间: 2008-09-05 18:36
原帖由 lv_bin98 于 2008-9-5 12:17 发表
我的机器上为什么没有
vxdisk命令呢

这个命令是要用钱买的 。哥们。
作者: studyinwork    时间: 2008-09-07 15:36
haha 楼上幽默
作者: liyoujunlizi    时间: 2008-09-08 22:27
hehe.... symantec 的veritas volume manager装上就有这命令了
作者: lanyun001    时间: 2009-09-02 09:04
只要你有money,什么都可以有
作者: easybegin    时间: 2009-09-02 13:18
操作方法的问题
作者: webber121    时间: 2009-09-02 14:26
一个BUG




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2