a1000

发表于:2007-06-09来源:作者:点击数: 标签:
各位高人还在线吗 我有2台450加1台a1000作ha,装好raidmanager,单独开每一台机器都可以,如果先开1,后开2,2启动是提示:gotscsibusreset,然后1的raidmanager中status就变为dead.为什么 rabbit7505 回复于:2002-06-28 18:30:47 这是常见HA问题,由于A1000

各位高人还在线吗
我有2台450加1台a1000作ha,装好raid manager,单独开每一台机器都可以,如果先开1,后开2,2启动是提示:got scsi bus reset,然后1的raid manager中status 就变为dead.为什么

 rabbit7505 回复于:2002-06-28 18:30:47
这是常见HA问题,由于A1000的两个SCSI接口同时连接2台服务器,所以2台服务器的HBA和A1000的SCSI控制器就在同一个SCSI通道上,缺省状态下,每个主机HBA的SCSI ID号都为7,1个链路上同时存在2个ID为7的SCSI控制器,就产生了冲突,所以当2台服务器同时开启的时候,就出现您所说的错误。
解决方法是将一台主机的SCSI ID改为6(其实只要不是7就可以),修改方法可以参照SUN公司网站docs.sun.com上有关Sun Cluster的文档修改。

 daisyqi 回复于:2002-06-28 20:53:45
a1000有4个硬盘,装好raid manager后,自动生成了一个10M raid0的LUN.创建新lun时,不能选其他raid level,是否要先更改这个group的raid level.另外,创建lun时不能定义大小,只能选建几个lun.

 rabbit7505 回复于:2002-06-28 21:06:03
对于A1000中初始的RAID设置,大可以删掉,即删除原始的Disk Group,因为1个硬盘只能属于1个DG,您的问题可能跟此有关。在创建新的DG,把您的4块硬盘全部加入进去,再创建LUN,设置RAID类型。
A1000的Raid Manager和Volume Manager的原理不同,不能在创建LUN时指定大小,而是依据磁盘的大小和RAID类型自动完成。

 daisyqi 回复于:2002-06-28 22:23:45
如果我创建了几个raid 5 lun,可以将一个改为raid1吗?

 rabbit7505 回复于:2002-06-29 10:43:53
没问题啊,只不过您在这个LUN上的数据就没有了。

 daisyqi 回复于:2002-06-29 14:51:31
将一台主机的SCSI ID改为6,是否Setting scsi-initiator-id,
ok setenv scsi-initiator-id 6  
但文档后面还有一段
ok nvedit  
  0: dev scsi  
  1: 7 encode-int " scsi-initiator-id" property  
  2: device-end [Control-c]  
  是什么意思,为什么要设


 南非蜘蛛 回复于:2002-06-29 15:16:47
scsi ID6 好象是专门给磁带机,或其他一些特殊设备用的,我忘了,不好意思,ID7是给scsi的控制器用.

 daisyqi 回复于:2002-06-29 15:24:22
这是我在网上找的文档,不知是否适用于我的情况

Since the factory default scsi-initiator-id for all adapter cards on the system is 7, it is suggested that the scsi-initiator-id for all the SunSwift cards on one host be 7 and those on the other host be set to 6. Therefore, the procedure outlined below must be done on only one of the cluster hosts.
The easiest way to aclearcase/" target="_blank" >ccomplish this configuration is to set the Initiator ID for one of the cluster hosts to 6 and then to change the scsi-initiator-id for the on-board SCSI controller to 7. This configuration is set from the OpenBoot(TM) PROM (OBP) Monitor.
Table 3-3 SCSI Initiator ID Settings Controller Instance Cluster Node A Initiator ID Cluster Node B Initiator ID 

0 (internal) 7 7 
1 7 6 
2 7 6 

Setting Up the nvramrc Script in the OBP Monitor The OpenBoot PROM Monitor builds its own device tree based on the devices attached to the system when the boot sequence is invoked. The OBP Monitor has a set of default aliases for the commonly occurring devices in the system.
A nvramrc script contains a series of OpenBoot PROM commands that are executed during the boot sequence. It is assumed that this file is nonexistent and will be created. The steps to create or edit a nvramrc script are similar. You need to be familiar with nvramrc Editor Keystroke Commands. Table 3-4 lists the most useful commands.
Enter the OBP Monitor by shutting down the system: 
  # shutdown -g0 -y -i0  

Set the NVRAM parameters to the default values. 

  ok set-defaults  
  Setting NVRAM parameters to default values.  
  ok  

Set the scsi-initiator-id to 6. 

  ok setenv scsi-initiator-id 6  
  scsi-initiator-id = 6  
  ok  

Enter the nvedit command to create and store an nvramrc script. 
The line numbers (0:, 1:, and so on) are printed by the OpenBoot PROM Monitor. See Table 3-4 for the nvramrc editor keystroke commands. 

  ok nvedit  
  0: dev scsi  
  1: 7 encode-int " scsi-initiator-id" property  
  2: device-end [Control-c]  
  ok  
--------------------------------------------------------------------------------
 Caution - Insert exactly one space after the double quote and before scsi-initiator-id.

--------------------------------------------------------------------------------
Store or discard the changes. 
The changes you make using the nvedit command are done on a temporary copy of the nvramrc script. You can continue to edit this copy without risk. Once you are through editing, save the modifications. If you are not sure about the changes, discard them. If, for any reason, you do not want to save the contents of the nvedit buffer, type: 

  ok nvquit  
  ok  

To store the changes, type:

  ok nvstore  
  ok  
--------------------------------------------------------------------------------
Note - Before proceeding any further, you must have successfully created the nvramrc script and saved it by using nvstore.

--------------------------------------------------------------------------------
Verify the contents of the nvramrc script you created in Step 4. 

  ok printenv nvramrc  
  nvramrc =  dev scsi  
  7 encode-int " scsi-initiator-id" property  
  device-end  
  ok  

If the output differs from what you have entered, go back to Step 4 and edit nvramrc again.
Do a test of the nvramrc script by entering the nvramrc evaluate command. Verify the scsi-initiator-id of the host. 

  ok nvramrc evaluate  
  ok printenv scsi-initiator-id  
  scsi-initiator-id =   6  
  ok  

If the overall scsi-initiator-id for this host is not 6, then repeat Step 3 before continuing with the verification. 

Verify that the nvramrc script works properly. If the scsi-initiator-id for the on-board SCSI controller is not set to 7, then re-edit the nvramrc script by repeating Step 4 and Step 5. 

  ok cd scsi  
  ok .properties  
  hm-rev                   00 00 00 22  
  scsi-initiator-id        00000007  
  device_type              scsi  
  clock-frequency          02625a00  
  intr                     00000020 00000000  
  interrupts               00000020  
  reg                      0000000e 08800000 00000010  
                               0000000e 08810000 00000040  
  name                     SUNW,fas  
  ok  

In the preceding output, the scsi-initiator-id has a value of 00000007 so the script worked properly.
Instruct the OpenBoot PROM Monitor to use the nvramrc script. 

  ok setenv use-nvramrc? true  
  ok printenv use-nvramrc?  
  use-nvramrc? =        true  
  ok  

On the cluster host node2, verify that the scsi-initiator-id has a value of 7. 

  ok printenv scsi-initiator-id  
  scsi-initiator-id =   7  
  ok printenv use-nvramrc?  
  use-nvramrc? =        false  
  ok  

If the output is not 7 and false, repeat this procedure on node2 to set the scsi-initiator-id to 7 on this node.

  ok setenv scsi-initiator-id 7  
  and/or  
  ok setenv use-nvramrc ? false  

Load the patches for the fas driver (104246-02) and the sd driver (103622-02) on both nodes in the cluster. 

Connect the MultiPacks to both hosts and reboot both systems using the 
-r option. 

  ok boot -r  

You have completed the last step of the OBP Monitor setup.


 rabbit7505 回复于:2002-06-29 17:48:15
强烈建议不要更改scsi-initiator-id参数,而是更改相关HBA的SCSI ID,其实您找到的文章已经差不多了,现在刚好手比较闲,就给您一个比较完整的步骤。
1、将A1000连接到其中一台主机,也就是SCSI ID要改为6的那台。
2、在OK下运行probe-scsi-all,找到连接A1000的差分SCSI卡的物理地址,一般为/pci@x,x000000/pci什么的,计下来。
3、运行下列命令
ok nvedit
0: probe-all
1: cd /pciXxxxxxxxx/xxx  //进入SCSI卡的物理地址
2: 6 encode-int " scsi-initiator-id" property //注意第一个“后有一个空格
3: device-end 
4: install-console 
5: banner [Control C] //按Control+C结束编辑
ok nvstore
ok setenv use-nvramrc? true
ok reset-all



 韦小宝 回复于:2002-06-29 19:43:12
ok setenv scsi-initiator-id  6
因为这样把系统里所有的SCSI card ID都改了。楼上的不知我说的对不对!


 rabbit7505 回复于:2002-06-29 20:56:38
没有错,这样就把所有的SCSI HBA的ID改为6,但一般CDROM的ID为6,这样就会冲突。

原文转自:http://www.ltesting.net