炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-10 18:01  资料  个人空间  主页 短消息  加为好友 
噢,还是ok prompt。

有welcome to Virtual I/O Server的字眼了,还是停在io hosting.

I/O hosting requires a hosting partition - boot not permitted
EXIT called ok
0 >  ok
0 >

郁闷。





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 11:02  资料  个人空间  主页 短消息  加为好友 
找到官方资料:

Installing the Virtual I/O Server using NIM
You can use the following procedures to install the Virtual I/O Server into environments managed by the HMC or Integrated Virtualization Manager using Network Installation Management (NIM).

Prerequisites
You need the following files before beginning this procedure. These files are located on the Virtual I/O Server installation media:
nimol/ioserver_res/mksysb (the mksysb image)
In addition, the following system requirements must be met:
A system running AIX® 5.3 with 5300-03 or higher, which contains a file system with at least 700 MB available.
A logical partition of type Virtual I/O Server containing an Ethernet adapter connected to an active network for installing the Virtual I/O Server. For information about creating logical partitions, see Creating the Virtual I/O Server logical partition and partition profile.
A storage controller containing at least 16 GB of disk space.
After the prerequisites have been met, follow these steps to use NIM to install the Virtual I/O Server:
Insert the Virtual I/O Server DVD into the DVD drive.
Run the installios command without any arguments to start the installation wizard. The installios wizard then guides you through the process of filling-out the necessary information to start an installation on the Virtual I/O Server or on a Integrated Virtualization Manager.
If you run installios on a NIM client, then you are prompted for the location to the bos.sysmgt.nim.master fileset. The NIM client is then configured as a NIM master. For more information about command-line usage of installios, see the installios command.

The installios setup process creates the following NIM resources to start the installation:
bosinst_data
installp_bundle
lpp_source
mksysb
resolv_conf
SPOT
Client definition
If you are installing the Virtual I/O Server logical partition, and if Secure Shell (SSH) and credentials have been configured on the NIM master, then the partition is network-booted from the Hardware Management Console (HMC) to begin the installation.

If you are installing the Virtual I/O Server logical partition without SSH, or if you are installing the Integrated Virtualization Manager, then go to step 3.

On the system on which the Virtual I/O Server software will be installed, boot the Virtual I/O Server logical partition or the Integrated Virtualization Manager into System Management Services (SMS) mode by following these steps:
To boot the Virtual I/O Server logical partition into SMS:
On the HMC, right-click the partition to open the menu.
Click Activate. The Activate Partition menu opens with a selection of partition profiles. Be sure the correct profile is highlighted.
Select the Open a terminal window or console session check box to open a virtual terminal (vterm) window.
Click (Advanced...) to open the advanced options menu.
For the Boot mode, select SMS.
Click OK to close the advanced options menu.
Click OK. A vterm window opens for the partition.
In the vterm window, select Setup Remote IPL (Initial Program Load).
Select the network adapter that will be used for the installation.
Select IP Parameters.
Enter the client IP address, server IP address, and gateway IP address. Optionally, you can enter the subnet mask. After you have entered these values, press Esc to return to the Network Parameters menu.
Select Ping Test to ensure that the network parameters are properly configured. Press Esc twice to return to the Main Menu.
From the Main Menu, select Select Boot Options.
Select Select Install/Boot Device.
Select Network.
Select the network adapter whose remote IPL settings you previously configured.
When prompted for Normal or Service mode, select Normal.
When asked if you want to exit, select Yes.
To boot the Integrated Virtualization Manager into SMS:
Begin with the machine turned off.
Switch on the machine, and as icons begin to appear from left to right on the bottom of your display, press F1.
Note: If the last icon is displayed before pressing F1, then you get the normal mode boot list instead of SMS, so try again.
The System Management Services menu opens. Select Utilities.
From the System Management Services Utilities menu, select Remote Initial Program Load Setup.
From the Network Parameters panel, select IP Parameters.
Set or change the displayed values so they are correct for your client system. Specify the IP address of the following:
The client machine you are booting in the client address field.
Your NIM master server in the server address field.
Your client's gateway in the gateway address field.
Your client's subnet mask in the subnet mask field.
After you specify the addresses, press Enter to save the addresses and continue.
The Network Parameters window opens. Select the Ping option.
Select the network adapter to be used as the client's boot device.
Verify that the displayed addresses are the same as the addresses you specified for your boot device. If the addresses are incorrect, press Esc until you return to the main menu. Then, go back to step e. If they are correct, continue with k.
If the addresses are correct, press Enter to perform the ping test. The ping test might take several seconds to complete.
If the ping test fails, verify that the addresses are correct, and analyze the network problem. If the ping test is successfull, press Enter to acknowledge the success message.
Press Esc until you return to the System Management Services menu.
From the System Management Services menu, choose the Select Boot Devices option.
Select the network adapter to be used for the network boot from the list of displayed bootable devices
After the installation is complete, the Virtual I/O Server logical partition or the Integrated Virtualization Manager is ready to be configured and managed.

To remove all the NIM resources that were created from the installios setup process, run the installios command with the -u flag. If the installios command fails to perform the cleanup, run installios -u and specify the -f flag to force NIM to reset and deallocate resources to the client. This still leaves the NIM environment, but removes all resources and directory structures created from the installios wizard. If, however, you want to unconfigure NIM, or to uninstall the bos.sysmgt.nim.master fileset and return the NIM master back to a NIM client if it was configured from a NIM client, specify installios -u with a -U flag.

You can also install a Virtual I/O Server or a Integrated Virtualization Manager through the SMIT interface. Run smitty installios to get access to the SMIT interface to the installios command. When invoked on a NIM master, the administrator will have access to two options to Setup for Virtual I/O and Integrated Virtualization Manager Installation and Cleanup after Virtual I/O and Integrated Virtualization Manager Installation, where Configure Client as Master for Virtual I/O and Integrated Virtualization Manager Installation is the only available option on a NIM client. Then fill out the specific fields as required from the installios wizard to invoke the installios command to setup the environment to initiate the installation, or to perform a cleanup.





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 11:05  资料  个人空间  主页 短消息  加为好友 
看了一下,跟我的步骤没啥区别,等会从头再来一次





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 12:52  资料  个人空间  主页 短消息  加为好友 
发现一个低级错误,昨天原来用错分区,混乱中竟然用了一个普通分区。

配置好vio分区,重新再来一次:
root@lkjnim:/>installios
Enter the source of the installation images [/dev/cd0]: /viocd
Enter the name of the HMC[none]: 136.8.1.1
Password:
The following objects of type "managed system" were found.  Please select one:
1.  Server-9119-595-SN024D86D
Enter a number: 1
Password:
The following objects of type "virtual I/O server partition" were found.  Please select one:
1. vio_server
Enter a number: 1
Password:
The following objects of type "profile" were found.  Please select one:
1. vio_server
Enter a number: 1
Enter the intended IP address of the client: 136.8.1.24
Enter the intended subnet mask of the client: 255.255.255.0
Enter the gateway of the client: 0.0.0.0
Enter the speed for the client[100]:
Enter the duplex for the client[full]:
Would you like to configure the network for the client after the installation [yes]/no? no
Enter a language in which to view the license agreement,
or leave blank and press enter to view the agreement later:
Here are the values you entered:
managed_system = Server-9119-595-SN024D86D
vio_partition = vio_server
profile = vio_server
source = /viocd
client_addr = 136.8.1.24
netmask = 255.255.255.0
gateway = 0.0.0.0
speed = 100
duplex = full
Press enter to proceed or type Ctrl-c to cancel...

Creating the /export/installios/mksysb directory.
Creating the /export/installios/spot directory.
Creating the /export/installios/bundle directory.
Creating the /export/installios/lpp_source directory.
Defining installios_client object...done
Copying from /viocd/nimol/ioserver_res/mksysb to /export/installios/mksysb...done
Defining installios_mksysb object...done
Copying from /viocd/installp/ppc/en_US.bnd to /export/installios/bundle...done
Defining installios_bundle object...done
Creating installios_lpp_source lpp_source from /export/installios/bundle/en_US.bnd bundle file...done
Defining installios_lpp_source object...done
Defining installios_spot object...done
Copying from /viocd/nimol/ioserver_res/bosinst.data to /export/installios/installios_bosinst.data...done
Defining installios_bosinst object...done
done
Initiating install...failed
Initiating network boot...Password:
# Connecting to vio_server
# Connected
# Checking for power off.
# Power off the node
# Wait for power off.
# Power off complete.
# Power on vio_server to Open Firmware.
# Power on complete.
lpar_netboot: cannot connect to vio_server
failed

[ 本帖最后由 炸鸡 于 2007-7-11 14:49 编辑 ]





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 13:09  资料  个人空间  主页 短消息  加为好友 
看样子,我期待的从NIM server安装是有可能的,哈哈~~~~只不过HMC那边还是出 0>





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 14:47  资料  个人空间  主页 短消息  加为好友 
正在查installios这个命令的语句,我的lpar有一块4口卡,要启动的卡是第4个口。估计是这里出问题了,因为我没看见命令里有选卡的动作,应该是用了第一块卡。





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 15:08  资料  个人空间  主页 短消息  加为好友 
下面是installios调用的lpar_netboot语句:
/usr/bin/ssh hscroot@$hmc lpar_netboot $debug_arg -A -D -t ent -d $duplex -s $speed -S $server -G $gateway -C $client \"$partition\" \"$profile\" \"$managed\"

$debug_arg = -x -v 控制显示信息
-A Returns all adapters of the given type. 这里返回所有ent
-D Performs a ping test so the adapter can successfully ping the server specified with the -S flag. 这里是做ping test,我的环境应该只有第4张卡可以通

这里并没有指定从哪块卡来启动,少了-l参数。





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
banker
LU天使
Rank: 4



UID 653
精华 0
积分 784
帖子 1526
活跃指数 3
LU金币 2430 个
LU金条 0 个
阅读权限 50
注册 2003-10-16
 
发表于 2007-7-11 15:51  资料  个人空间  主页 短消息  加为好友  添加 banker 为MSN好友 通过MSN和 banker 交谈
精彩!!!!!!!!!!!
Good luck,鸡哥





当我们讲话时,有人聆听。
当我们做事时,有人跟随。
当我们前进时,没有任何困难可以阻挡
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 16:56  资料  个人空间  主页 短消息  加为好友 
我直接在HMC上用lpar_netboot命令来取mac address,目的是检验一下这个命令的可行性,结果:

missing close-brace
    while executing
"if { $noboot } { # Display information for all supported adapters
    system "$DSPMSG -s 1 $CATALOG 52 '# Getting adapter location codes.\n' 2>/dev/nu..."
    (file "/usr/hmcrbin/lpar_netboot" line 2445)

难道我真的这么背,这个命令本来就是有错的?



在同事抗议之下,我终于放弃了,暂时放弃了从NIM server直接装VIO的测试,虽然官方文档就是这样装的。
我在NIM里重新reset了installios_client这台机器,重新定义了它,采用mksysb。
然后,在HMC的界面里用第4块卡来启动,现在正在安装中,貌似正常。

我觉得IBM原来的设计是可以直接安装的,可惜我水平有限,暂时没能掌握。
不过这里面也有一点问题,就是installios这个命令,它定义好resource之后就直接安装了,中间没有停顿,那NIM里的machine是什么时候去定义呢。当然,肯定是installios帮你自动定义了,但定义错了。所以出现那句cannot connect to vio_server这句。因为machine的prev_state 并非ready for a NIM operation,而Cstate并非BOS installation has been enabled

整个machine的状态

[email=root@lkjnim:/etc]root@lkjnim:/etc>lsnim[/email] -l installios_client
installios_client:
   class          = machines
   type           = standalone
   comments       = Client for installios
   connect        = shell
   platform       = chrp
   netboot_kernel = mp
   if1            = network1 client24 0
   net_settings1  = auto auto
   cable_type1    = N/A
   Cstate         = BOS installation has been enabled
   prev_state     = ready for a NIM operation
   Mstate         = not running
   boot           = boot
   lpp_source     = installios_lpp_source
   mksysb         = installios_mksysb
   spot           = installios_spot
   control        = master


安装中的状态:

   Cstate         = Base Operating System installation is being performed
   prev_state     = BOS installation has been enabled
   Mstate         = in the process of booting
   info           = setting_console
   boot           = boot
   lpp_source     = installios_lpp_source
   mksysb         = installios_mksysb
   spot           = installios_spot
   cpuid          = 00C4D86D4C00
   control        = master
   Cstate_result  = success


安装完成的状态:

   Cstate         = ready for a NIM operation
   prev_state     = in the process of booting
   Mstate         = not running
   cpuid          = 00C4D86D4C00
   Cstate_result  = success

[ 本帖最后由 炸鸡 于 2007-7-11 17:18 编辑 ]





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 17:56  资料  个人空间  主页 短消息  加为好友 
终于装好了,出现了login。

明天再玩,现在想不到好方法。
我又尝试在NIMserver直接运行hmc里面的lpar_netboot命令,用IBM的-A参数和指定location code的情况,都是失败。失败的结果跟上面一样,到了最后还是有missing close-brace的报错。

现在是解决了cannot connect to vio_server的问题了,是通过重新定义resource来修复。(参考上面的步骤)





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-11 23:40  资料  个人空间  主页 短消息  加为好友 
看回上面的61楼,觉得自己真笨。

I/O hosting requires a hosting partition

这里明明写着需要一个做hosting I/O 的partition,也就是说要一个vio分区,这么明白,居然缠绕了一下午。

在HMC里面那个shell是rsh,很多命令都跑不了,笨猪以前的帖子也提过。这回想看看lpar_netboot命令里面的内容还真不容易。

下班等车的时候,又看了一遍那篇官方文档。里面清楚地说了,只要NIM server这边能用ssh进去HMC,这个installios就可以直接开始安装了。我现在只能是当作没有ssh或者是IVM的形式去安装。





在技术版灌水,在水版show技术。
顶部
[广告] IBM HACMP 资源中心正式发布
炸鸡
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
传说中的大色狼


LU爱心使者  
UID 134
精华 30
积分 10116
帖子 18829
活跃指数 680
LU金币 13161 个
LU金条 16 个
阅读权限 251
注册 2003-9-26
来自 鸡窝
 
发表于 2007-7-12 16:02  资料  个人空间  主页 短消息  加为好友 
找到原因了,答案还是在这份6页纸的文档里:

If you are installing the Virtual I/O Server logical partition, and if Secure Shell (SSH) and credentials have been configured on the NIM master, then the partition is network-booted from the Hardware Management Console (HMC) to begin the installation.


我的NIM master里面并没有配置ssh,所以我只能用没有ssh的方式,也就是一定要从HMC的vio lpar启动来安装。

现在不搞这个ssh了,怕影响到原来NIM server里面的设置,日后有机会我自己装个nim来玩,毕竟接触nim很少,是时候学习一下了。





在技术版灌水,在水版show技术。
顶部
[广告] 论坛新开 【DB2产品家族】 【投资理财】 【行业应用】 板块
 



当前时区 GMT+8, 现在时间是 2008-5-17 07:39
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.074407 second(s), 7 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver - WAP