Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Monday 21 October 2013

HMC


To turn off Attention LEDs in p servers:
01. List the managed servers from HMC
  lssyscfg -r sys -F name 
02.Check the LED status
   lsled -r sa -t phys -m 
03. Change the LED status to off
  chled -r sa -t phys -m  -o off
04. Check the status again
  lsled -r sa -t phys -m 
Should 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.
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 lpars
 lssyscfg -r lpar -m  
To list only the lpar_name, state, lpar_id, update
 lssyscfg -r lpar -m   -F name,lpar_id,state
To query the state of a particular LPAR
 lssyscfg -r lpar -m  --filter lpar_names= -F state
Note:- valid filter names are: lpar_ids, lpar_names, profile_names, work_groups
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 $LPARNAME
To shutdown an LPAR
 lssyscfg -r sys -F name
 chsysstate -r lpar -m $MANAGED_SYSTEM -n $LPARNAME -o shutdown --immed
To 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