[已解决]solaris系统下做veritas VM配置,一直报“Invalid disk device for vxdiskset
本帖最后由 raoyunjia 于 2014-03-27 15:14 编辑背景:磁阵sun 6180上有5个磁盘,我对最后一个磁盘做成 hot spare ,热备份。然后剩余的4个磁盘做成RAID5。在这个RAID5中,我划分了3个磁盘卷。
然后,通过光纤连接到主机 M4000上。然后使用这个命令“# /etc/vx/bin/vxdisksetup -if sun6180-0_0”。为什么老是反馈错误??请不吝赐教。
VxVM vxdisksetup ERROR V-5-2-43 sun6180-0_0: Invalid disk device for vxdisksetup
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:SVM - - SVM
disk_1 auto:SVM - - SVM
sun6180-0_0auto:none - - online invalid
sun6180-0_1auto:none - - online invalid
sun6180-0_2auto:none - - online invalid
# vxdisk path
SUBPATH DANAME DMNAME GROUP STATE
c0t1d0s2 disk_0 - - ENABLED
c0t0d0s2 disk_1 - - ENABLED
c1t4d0s2 sun6180-0_0 - - ENABLED ///说明,这3个应该是我创建的3个卷
c1t4d1s2 sun6180-0_1 - - ENABLED ///说明,这3个应该是我创建的3个卷
c1t4d2s2 sun6180-0_2 - - ENABLED ///说明,这3个应该是我创建的3个卷
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0
1. c0t1d0 <SEAGATE-ST914603SSUN146G-0B70 cyl 14087 alt 2 hd 24 sec 848>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@1,0
2. c1t4d0 <SUN-SUN_6180-0760 cyl 51198 alt 2 hd 128 sec 64> ///说明,这3个应该是我创建的3个卷
/pci@3,700000/SUNW,qlc@0/fp@0,0/ssd@w20150080e518cbe4,0
3. c1t4d1 <SUN-SUN_6180-0760 cyl 44798 alt 2 hd 256 sec 64> ///说明,这3个应该是我创建的3个卷
/pci@3,700000/SUNW,qlc@0/fp@0,0/ssd@w20150080e518cbe4,1
4. c1t4d2 <SUN-SUN_6180-0760 cyl 35838 alt 2 hd 256 sec 64> ///说明,这3个应该是我创建的3个卷
/pci@3,700000/SUNW,qlc@0/fp@0,0/ssd@w20150080e518cbe4,2
Specify disk (enter its number): ^C
#
# bash
bash-3.2# /etc/vx/bin/vxdisksetup -if
bash-3.2# /etc/vx/bin/vxdisksetup -if c1t4d0
VxVM vxdisksetup ERROR V-5-2-43 c1t4d0: Invalid disk device for vxdisksetup
bash-3.2# /etc/vx/bin/vxdisksetup -if c1t4d0
VxVM vxdisksetup ERROR V-5-2-43 c1t4d0: Invalid disk device for vxdisksetup
bash-3.2# /etc/vx/bin/vxdisksetup -if sun6180-0_0
VxVM vxdisksetup ERROR V-5-2-43 sun6180-0_0: Invalid disk device for vxdisksetup
bash-3.2#
bash-3.2# Unable to initialize a VxVM disk with vxdisksetup after upgrading to Solaris patch 147440-20 本帖最后由 东方蜘蛛 于 2014-03-26 10:38 编辑
The vxdisksetup command enables you to configure a disk for use with Veritas Volume Manager (VxVM). When using the vxdisksetup command, the following message may appear:
ERROR V-5-2-43 address: Invalid disk device for vxdisksetup
This message is displayed when:
•You provide an invalid device name.
•You use VxVM on Solaris, you have applied Solaris patch 147440-20 or later, and you use the vxdisksetup -i command. In this environment, disk initialization fails. (If the system uses Solaris patch 147440-19 or earlier, vxdisksetup -i works correctly.)
This solution applies to VxVM version 5.1SP1 and later:
•If you entered the device name incorrectly, make sure that you specify the correct, existing device name. If the issue persists, use the following command to rescan the devices in the operating system device tree:
# vxdisk scandisks
This solution applies to VxVM version 5.1SP1RP3 and later:
•If the system includes Solaris patch 1474440-20 or later, do one of the following: •Use the vxdisk init command instead of the vxdisksetup command. For detailed information on these commands, see the following 6.0.1 manual pages:
vxdisk (1M)
vxdisksetup (1M)
Manual pages for other releases can be found on the SORT website.
•Upgrade to the appropriate VxVM patch with the fix for this issue. For details, see:
http://www.symantec.com/docs/TECH194707
试试执行vxinstall
楼上好贴 蜘蛛兄,我看了你的回复。理解如下,不知是否正确
1.Solaris patch 147440-20 or later,用vxdisksetup -i ,就会不成功。需要其他一些操作。
2.Solaris patch 147440-19 or earlier, 用vxdisksetup -i,就肯定成功。
3.对于solaris系统已经是147440-20或更新一些的,而且VM版本是version 5.1SP1 and later,需要用# vxdisk scandisks,来 重新扫描。rescan。
4.对于solaris系统已经是147440-20或更新一些的,而且VM版本是version 5.1SP1RP3 and later。可以有2个办法解决,任选其一就可以
办法一 •Use the vxdisk init command instead of the vxdisksetup command使用vxdisk init 命令,而不是vxdisksetup命令。
办法二 •Upgrade to the appropriate VxVM patch ,升级 VxVM版本。
蜘蛛兄,我看了你的回复。理解如下,不知是否正确
1.Solaris patch 147440-20 or later,用vxdisksetup -i ,就会不成功。需要其他一些操作。
2.Solaris patch 147440-19 or earlier, 用vxdisksetup -i,就肯定成功。
3.对于solaris系统已经是147440-20或更新一些的,而且VM版本是version 5.1SP1 and later,需要用# vxdisk scandisks,来 重新扫描。rescan。
4.对于solaris系统已经是147440-20或更新一些的,而且VM版本是version 5.1SP1RP3 and later。可以有2个办法解决,任选其一就可以
办法一 •Use the vxdisk init command instead of the vxdisksetup command使用vxdisk init 命令,而不是vxdisksetup命令。
办法二 •Upgrade to the appropriate VxVM patch ,升级 VxVM版本。
回复 3# 东方蜘蛛
还有2个问题
1. 怎么在主机上查询我的solaris系统是 patch 147440-19 ,还是更新的 patch 147440-20,或者更新一些的?我安装的solaris光盘是前几天从oracle官网上刚刚下载的,估计是 比patch 147440-20这个还新。
2.怎么在主机上查询VxVM version 。目前知道的是,我的veritas安装光盘上面印刷的是5.1SP1。 我安装的顺序一般是:安装最新版本的OS,打最新版本的系统补丁,安装VxVM软件,打VxVM的补丁
如果,你没有补丁,bug会比较多,问题也会比较多!
查看单个补丁的情况:
#showrev -p |grep 147440(-19)
查看VxVM版本信息:
#pkginfo -l VRTSvxvm
#vxlicrep
对Veritas安装了补丁。sfha-sol_sparc-5.1SP1RP4-patches.tar 然后问题解决。谢谢蜘蛛 回复 9# raoyunjia
注意,601也有这个问题,603 fix了
页:
[1]
2