Chinaunix首页 | 论坛 | 博客
  • 博客访问: 885332
  • 博文数量: 339
  • 博客积分: 3151
  • 博客等级: 中校
  • 技术积分: 3425
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-10 14:47
文章分类

全部博文(339)

文章存档

2023年(43)

2022年(44)

2021年(3)

2020年(13)

2019年(39)

2018年(25)

2015年(2)

2014年(18)

2013年(12)

2012年(48)

2011年(79)

2010年(13)

分类: AIX

2019-10-24 14:49:09


--> 搜索  chsysstate
--> 8202-E4C/p7hcg/chsysstate.htm
详细内容参考上述链接
Purpose

Changes the state of a partition. This command is operable only in the Integrated Virtualization Manager environment.
chsysstate -r lpar -o on { -n Name | --id PartitionID } [ -k KeylockPosition ] [ -b BootMode ] [ -m ManagedSystem ]

-f partition-profile-name
partition-profile-name都可以在hmc里面查看。
ManagedSystem_Name是物理服务器。

下面是个范例:

chsysstate -r lpar -o on -m ManagedSystem_Name -n lpar_host_name -f lpar_host_name -b sms

启动lpar,状态是power on,管理系统是ManagedSystem_Name,partition name是lpar_host_name, -f是profile名字,hmc里面可以查看到,启动到sms状态。
然后重新安装系统,用备份的文件。

-r ResourceType The type of resources to change: lpar Logical partition resources

-m ManagedSystem The name of the managed system. This attribute is optional because there is only one system to manage. The name may either be the user-defined name for the managed system, or be in the form tttt-mmm*ssssssss, where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed system.

-o Operation The type of operation to perform:

    chkey: Changes the keylock position
    consoleservice: Disables a remote service session for the IBM? i partition (operator panel function 65) followed by the activation of the dedicated service tools for the IBM i partition (operator panel function 21).
    dston: Activates dedicated service tools for the IBM i partition (operator panel function 21).
    dumprestart: Restarts after initiating a dump
    iopdump: Allows use of the IOP control storage dump (operator panel function 70). This operation is valid for IBM i partitions only.
    iopreset: Resets or reloads the failed IOP (operator panel function 67). This operation is valid for IBM i partitions only.
    on: Power on
    osshutdown: Shuts down using the client partition's shutdown command. This is the safest shutdown option, so should be used if available (RMC state must be active).
    remotedston: Enables a remote service session for the IBM i partition (operator panel function 66).
    retrydump: Retries the dump on the IBM i partition and restarts the partition when the dump is complete (operator panel function 34).
    shutdown: Shuts down
    remotedstoff: Disables a remote service session for the IBM i partition (operator panel function 65).



-b BootMode Override the current power on mode setting. Valid values are:

    norm: normal
    dd: diagnostic with default boot list
    ds: diagnostic with stored boot list
    of: Open Firmware OK prompt
    sms: System Management Services

查看当前的状态
lssyscfg -m ManagedSystem_Name -r lpar -F name:state

hmc_name:~> lssyscfg -m ManagedSystem_Name -r lpar -F name:state
lpar_host_name:Running
Description

The lssyscfg command lists attributes of partitions, partition profiles, or the managed system.

先登录到HMC状态,启动lpar,配制好网络启动,然后恢复。恢复的过程中hdisk0的名字会改变,但是pvid不会变,另外在sms启动的状态可以查看hdisk0的大小,pvid等信息来确认要恢复的rootvg

阅读(1660) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~