请问 NBU下配置robot,怎么确认SCSCI_id LUN
http://seer.entsupport.symantec.com/docs/269490.htm
这里只说是CuAt:
name = "smc0"
attribute = "lun_id"
value = "0x1000000000000"
type = "R"
generic = "DU"
rep = "s"
nls_index = 26
From the sample output, the SCSI ID is 0x111ca and the LUN is 1. The LUN is derived from the LUN ID, by right-shifting it 48 bit.
右移48bit,但是怎么从"0x1000000000000"到1
我还是没搞明白!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
0x是16进制,shifting的48位是说的2进制,所以这里实际是12,这里lunid实际是0x1
check out
odmget 出来的LUN id是个value = "0x1000000000000"这样的值
我现在要手动添加robot
mkdev -c media_changer -s fcp -t ovpass -p fscsi0 -w 0x111ca,1
这个地方1是怎么出来的,很是头痛呀
我理解也是这个意思。
不是右移
by right shifting it 48 bits.
应该是从右遍起,数48bits
看一下windows计算器的help
In the hexadecimal, binary, and octal number systems, Calculator displays only the lower digits of an answer when the result has more digits than your display size allows. This behavior mimics the way calculations work in computers.
For the hexadecimal number system, QWORD results can contain up to 16 digits (64 bits), DWORD results can contain up to eight digits (32 bits), Word results can contain up to four digits (16 bits), and Byte results can contain up to two digits (8 bits).
For example, using the hexadecimal number system displayed as Word, the largest result you can generate is FFFF (equal to 65535 in decimal). If you double that number (FFFFx2), the answer is 1FFFE. This contains five digits, so Calculator will display only the lower four digits of the answer: FFFE.
For the decimal number system, the three display sizes available are Degrees, Radians, and Grads.
我猜:
大概意思是从右边去掉12个字符(48bits)
我纯粹瞎猜,没见过LUN超过1的例子,如果有大数的话,可能需要去掉48bits,12位后再转换进制,汇编没学好,希望猜的对
看我的blog,哈哈
惭愧,我复习了一下,也没说详细,hoho
用odmget 看一下smc0的值,再建就行了。创建前要把smc0先删除了。
Index DriveName DrivePath Type Shared Status
***** ********* ********** **** ****** ******
0 IBMDDSGen51 /dev/rmt0.1 pcd No DOWN
1 IBMULT3580-TD30 /dev/rmt1.1 hcart3 No UP
TLD(0) Definition DRIVE=1
Currently defined robotics are:
TLD(0) robot control host = backup
volume database host = backup
Standalone drive volume database host = backup
Press any key to continue
root@a:/veritas/openv/volmgr/bin#./robtest
No locally-controlled robots with test utilities are configured
root@a:/veritas/openv/volmgr/bin#lsdev -Cs fcp
dac0 Available 04-08-02 1722-600 (600) Disk Array Controller
dac1 Available 05-08-02 1722-600 (600) Disk Array Controller
rmt1 Defined 05-08-02 IBM 3580 Ultrium Tape Drive (FCP)
smc0 Defined 05-08-02 IBM 3582 Library Medium Changer (FCP)
root@a:/veritas/openv/volmgr/bin#lsdev -Cs scsi
hdisk0 Available 09-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 09-08-00-8,0 16 Bit LVD SCSI Disk Drive
rmt0 Available 09-08-00-6,0 LVD SCSI 4mm Tape Drive
ses0 Available 09-08-00-15,0 SCSI Enclosure Services Device
root@a:/veritas/openv/volmgr/bin#lsdev -C |grep SCSI
fscsi0 Available 04-08-02 FC SCSI I/O Controller Protocol Device
fscsi1 Available 05-08-02 FC SCSI I/O Controller Protocol Device
hdisk0 Available 09-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 09-08-00-8,0 16 Bit LVD SCSI Disk Drive
iscsi0 Available iSCSI Protocol Device
rmt0 Available 09-08-00-6,0 LVD SCSI 4mm Tape Drive
scsi0 Available 09-08-00 PCI-X Dual Channel Ultra320 SCSI Adapter bus
scsi1 Available 09-08-01 PCI-X Dual Channel Ultra320 SCSI Adapter bus
ses0 Available 09-08-00-15,0 SCSI Enclosure Services Device
sisscsia0 Available 09-08 PCI-X Dual Channel Ultra320 SCSI Adapter
操作系统和带库型号报上来,大家看看。