Skip to main content

Some VIO related Important Commands

VIO is the very important concept in AIX.

VIO are the hyper-visor for the Lpars.


Below are some us full commands for your reference:
================================== 



fget_config -Av |grep -wE “hdisk4|hdisk8|hdisk32” (To get Lun information)
ioslevel (to check the vio version)
#lsvg -p rootvg
#ipl_varyon -i (Will list disk name, boot device, pvid and volume grp. Where we found “yes” that will boot disk i,e boot image is install that disk. Other will be no.)
#boosboot -ad /dev/hdisk4
lsvg -pv rootvg (to check the disk in rootvg)
lsdev -dev hdisk4 (To check whether it is from san or local)
lsdev -dev hdisk4 -vpd (Lun information with details)
ie1393d@lipghmc08:~> lssyscfg -r lpar -m RSPZES10 -F name:state (It will show the vio client under vio from hmc console. output will similar to below)
RSPKAMASQ11:Running
RSPKAFTP11:Running
RSPKAPP11:Running
RSPKDSFD21:Not activate
VIOCRSC10:Not activate
test:~> chsysstate -r lpar -m RSPZESC10 -n VIOCESC10 -f Normal -b sms
test:~> chsysstate -r lpar -m RSPZESC10 -n VIOCESC10 -o shutdown –immed (to shudown the vio under mangebox immed)
test:~> lshwres -r io –rsubtype slot -m (managebox)
ex: lshwres -r io –rsubtype slot -m RSPZESC10 (To find out where the resourse are allocating under that managebox)
test:~> lssyscfg -r lpar -m RSPZESC10 -F |grep -i VIOCESC10
test:~> chsysstate -r lpar -m RSPZESC10 -N viocesc10 -o on -b sms -f Normal (Reboot the vio and sms mode from HMC)
then go to vtmenu select manage box and inside that select the vio. you will get the sms mode.
Note: if you check from HMC cdrom with show’s as “other mass storage controller”
rmdev -dl cd0 It will delete the cdrom but still some child process can be which is cause problem when you try to move cdrom from one to another. so run below command.
lsdev -Cc pci5
lsdev -p pci5 it will list similar belwo…
ide0 available 060-8 ATA/IDE controller device
so run
rmdev -dl pci5 -R It will delete permanaetaly.
mount -v cdrfs -o ro /dev/cd0 /mount (to mount a cd on /mount dir)
test:~> lssyscfg -r sys -F name:state (To list the managebox from HMC)
test:~> lssyscfg -r lpar -m RSPZESC10 -F name:state (to list the lpar inside the managebox rspzesc10)
test:~> mkvtern -m RSPZESC10 -p VIOCESC10 (TO Get into the vio from hmc and manage box)
$lssw -hist (to list all the package which are in apply and commit mode)
$lssw -hist |grep -i apply (to check only apply mode)
$updateios –commit (to apply all the package in commit mode)
$tail -f /home/padmin/install.log (We can check how many package are done while run updateios command)




For any clarification you can contact me on bibhuti2sol@gmailcom

Comments

Popular posts from this blog

HP SMART ARRAY CLI COMMANDS

Show configuration : /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information for all controllers /opt/hp/hpssacli/bin/hpssacli ctrl all show detail Show detailed controller information for controller in slot 0 /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail Rescan for New Devices /opt/hp/hpssacli/bin/hpssacli rescan Physical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status Show detailed physical disk information /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail Logical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status View Detailed Logical Drive Status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show Create New RAID 0 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0 Create New RAID 1 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld dri...

Monthly Mksys OS backup AIX

Step-1 Estimate Backup: ================================================================= df -tk `lsvgfs rootvg` | awk ‘{total+=$3}\ END {printf “Estimated mksysb size: %d bytes, %.2f GB\n”, total*1024, total/1024/1024}’ It will give you the estimated time of backup, Step-2 Backup Command: backupios -file /home/padmin/28August2013_TESTVIOI_mksysb ===============> VIO Backup Command mksysb -e -i -X /mksysb/10Nov2013_server-1_mksysb============================>AIX server Backup command Step-3 ================= Pre -checks: => check NFS FS size(Backup file) and root vg FS sizes . Note : if any FS Full Zip old logs => To check performance of the server => To check root VG FS => To check /etc/exclude ========================== Step-4 ================================ server-1 mksysb -e -i -X /mksysb/02March2014_server-1_mksysb server-2 mksysb -e -i -X /mksysb/02March2014_sever-2_mksysb Post checkups: ==> check the process running o...

HP proliant SERVER hardware commands

to check the failed disk, adapter, any physical component on hp prolient server use the below important command. # hpacucli controller all show config———-to See the failed disk in HP proliant server  Smart Array P410i in Slot 0 (Embedded) (sn: 500143802590F6C0) logicaldrive 1 (558.9 GB, RAID 1, Interim Recovery Mode) array A (SAS, Unused Space: 0 MB) physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 600 GB, OK) physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 600 GB, Failed)====>indicating the faild drive SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 500143802590F6CF) [root@TEST:/root]# hpacucli ctrl slot=0 show Smart Array P410i in Slot 0 (Embedded) Bus Interface: PCI Slot: 0 Serial Number: 500143802590F6C0 Cache Serial Number: PBCDH0CRH1Z6R3 RAID 6 (ADG) Status: Disabled Controller Status: OK Hardware Revision: C Firmware Version: 6.60 Rebuild Priority: Medium Expand Priority: Medium Surface Scan Delay: 3 secs Surface Scan Mode: Idle Queue Depth: Autom...