To turn off Attention LEDs in p servers:
01. List the managed servers from HMC
lssyscfg -r sys -F name02.Check the LED status
lsled -r sa -t phys -m03. Change the LED status to off
chled -r sa -t phys -m04. Check the status again-o off
lsled -r sa -t phys -mShould see output, "state=off."
Console Using HMC Command Line
vtmenu
vtmenu is a Perl script which displays a list of partitions, opening a virtual terminal on the one selected. If more than one managed systems exists, a list of them is displayed first. After a managed system is selected, a list of all logical partitions on that managed system is displayed. The vtmenu command does not accept any flags or parameters and ignores all that are specified.
vtmenu is a Perl script which displays a list of partitions, opening a virtual terminal on the one selected. If more than one managed systems exists, a list of them is displayed first. After a managed system is selected, a list of all logical partitions on that managed system is displayed. The vtmenu command does not accept any flags or parameters and ignores all that are specified.
Escape sequence to leave vtmenu terminal session is:
~.
mkvterm: mkvterm opens a virtual terminal session for an AIX, Linux, or virtual I/O server partition
To open a console terminal:
$ mkvterm -m-p
This can be exited with ~~.
To remove a terminal someone else is using:
$ rmvterm -m-p
On integrated Virtual machine manager (blades)
$ mkvt -id$ rmvt -id
Manage LPARs
To list all the lparslssyscfg -r lpar -mTo list only the lpar_name, state, lpar_id, update
lssyscfg -r lpar -mTo query the state of a particular LPAR-F name,lpar_id,state
lssyscfg -r lpar -mNote:- valid filter names are: lpar_ids, lpar_names, profile_names, work_groups--filter lpar_names= -F state
To query the profile of an LPAR
lsyscfg -r prof -m--filter lpar_names= name=testvio100,lpar_name=testvio100,lpar_id=2,os_type=aixlinux,all_resources=0,mem_mode=ded,min_mem=256,desired_mem=32768,max_mem=32768, proc_mode=shared,min_proc_units=0.10,desired_proc_units=0.40,max_proc_units=4.00,min_procs=1,desired_procs=4,max_procs=4,sharing_mode=uncap, uncap_weight=128,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=10,"virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1", virtual_scsi_adapters=2/client/1/10-6656A/13/1,virtual_eth_adapters=4/0/64//0/0,boot_mode=norm,conn_monitoring=0,auto_start=1,power_ctrl_lpar_ids=none, lhea_logical_ports=none,lhea_capabilities=none,lpar_proc_compat_mode=default,virtual_fc_adapters=none
To create LPAR
"mksyscfg -r lpar -m $MANAGED_SYSTEM -i name=$LPARNAME,profile_name=default,lpar_env=aixlinux,shared_proc_pool_util_auth=1,min_mem=2048,desired_mem=4096,max_mem=8192,proc_mode=shared, min_proc_units=0.1,desired_proc_units=0.1,max_proc_units=4.0,min_procs=1,desired_procs=1,max_procs=4,sharing_mode=uncap,uncap_weight=128,boot_mode=norm,shared_proc_pool_util_auth=1"To remove an LPAR
rmsyscfg -r lpar -m $MANAGED_SYSTEM -n $LPARNAMETo shutdown an LPAR
lssyscfg -r sys -F name chsysstate -r lpar -m $MANAGED_SYSTEM -n $LPARNAME -o shutdown --immedTo power on
chsysstate -r lpar -m $managed_system -n lparname -o on
Upgrade HMC using Network Images
Pre steps: Login to HMC and take backup of Critical Console Data and upgrade data first. Taking backup critical console data may take few hours. Hence, prepare to wait.
Follow these basic steps.
01. Download the appropriate HMC V7 network images and put them on an FTP server.
02. Verify that the following files have been downloaded:
initrd.gz, bzImage, disk1.img, disk2.img, and disk3.img
03. On the HMC, you must first save upgrade data by running the following commands:
3a. To save data to both DVD and disk: mount /media/cdrom saveupgdata -r diskdvd 3b. To save to disk alone: saveupgdata -r disk
04. Next, copy the files over to the bootable disk partition on the HMC from FTP server
4a. getupgfiles -h remote_hostname -u--passwd -d Note: use -s to use sftp instead of ftp. 4b. If you want to see the progress of copy process, run the following command while true; do ls -la /hmcdump; sleep 30; done
05. After the files are copied over, run the following command:
chhmc -c altdiskboot -s enable --mode upgrade Now the HMC is ready to be rebooted and automatically upgraded with the code copied to the bootable disk partition.
06. Finally, reboot the HMC and start the upgrade.
hmcshutdown -r -t now
No comments:
Post a Comment