Some VIO related Important Commands

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)

Leave a comment