免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5781 | 回复: 15
打印 上一主题 下一主题

[备份软件] solaris 下veritas volume manager 更换硬盘问题!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-03 11:10 |只看该作者 |倒序浏览
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

论坛徽章:
0
2 [报告]
发表于 2008-09-03 11:42 |只看该作者
c1t13d0已经被剔除卷组了,你还需要选择5更换啊

论坛徽章:
0
3 [报告]
发表于 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.

论坛徽章:
0
4 [报告]
发表于 2008-09-03 17:00 |只看该作者
lz重启机器试试吧。如果允许重启的话。

论坛徽章:
0
5 [报告]
发表于 2008-09-03 17:44 |只看该作者
用luxadm 把c1t1d13的哪个盘删除,然后,在用luxadm添加,然后,再用vxdiskadm更换.

论坛徽章:
0
6 [报告]
发表于 2008-09-03 20:47 |只看该作者
vxdisk rm c1t13d0s2/luxadm remove_device/devfsadm -Cv/luxadm insert_device/devfsadm -c disk/vxdctl enable/vxdiskadm-5

论坛徽章:
1
技术图书徽章
日期:2014-04-24 15:56:22
7 [报告]
发表于 2008-09-04 00:09 |只看该作者
都出来俩c1t13d0s2了,以前遇到过,重启把哥们

论坛徽章:
0
8 [报告]
发表于 2008-09-04 10:16 |只看该作者
备份数据,reboot

论坛徽章:
0
9 [报告]
发表于 2008-09-05 10:10 |只看该作者
谢谢几位哥们, 重启后, 正常了!

论坛徽章:
0
10 [报告]
发表于 2008-09-05 12:17 |只看该作者
我的机器上为什么没有
vxdisk命令呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP