Outils pour utilisateurs

Outils du site


informatique:nix:ibm:ibm_aix_vios

Monter une image ISO pour un VIO client

mkvdev -fbo -vadapter vhost6
loadopt [-release] -vtd vtopt0 -disk PA-PAT-PTNOYAU-G06R05C00.iso

Ajout de devices disk

Si dual VIOS :

chdev -l hdiskpowerW -a reserve_lock=no
mkvdev -vdev hdiskpowerX -vadapter vhostX -dev vioC-XXX

carto_vio.ksh

  • Pour avoir une meilleur carto du vio
oem_setup_env
/usr/ios/cli/ioscli lsmap -all|awk '/vhost/ {vhost=$1}
	/VTD/ {vtd=$2}
	/Backing device/ {print vhost,vtd,$3}' >/tmp/lsmap.$$
/usr/ios/cli/ioscli lsmap -all|awk '/vhost/ {vhost=$1}
        /VTD/ {vtd=$2}
        /Backing device/ {print vhost,vtd,$3}' >/tmp/lsmap.$$

lspv|grep power|while read pv pvid VG
do
vhostinfo=`grep "$pv$" /tmp/lsmap.$$|awk '{print $1,$2}'`
printf "%13s %17s %s\n"  $pv $pvid "$vhostinfo"
done|sort
rm /tmp/lsmap.$$
  • Ca donne :
  hdiskpower0  00c9026da49ed44a
  hdiskpower1  00c9026dedf6e9f9 vhost5 lu_016_7206940
  hdiskpower6  00c9026dc1fcdaea vhost1 lu_007_7206937
  hdiskpower7  00c9026dc1fcf9c4 vhost1 lu_008_7206937
  hdiskpower8  00c9026d381c43c2 vhost1 lu_009_7206937
  hdiskpower9  00c9026d37ed1d2a vhost0 bs_002_7206937
 hdiskpower10  00c9026d38170020 vhost1 lu_006_7206937
 hdiskpower11  00cc2a3eeea831f3 vhost9 lu_001_7206939
 hdiskpower12  00cc2a3eeeaa0b4f vhost9 lu_002_7206939
 hdiskpower13  00cc2a3eeeab6f32 vhost11 lu_001_7206944
 hdiskpower14  00cc2a3eeeacb83e vhost11 lu_002_7206944
 hdiskpower15  00cc2a3eeeae4105 vhost7 lu_001_7206941
 hdiskpower16  00c9026dcbefd84d vhost5 lu_001_7206940
 hdiskpower17  00c9026deab6e30c vhost5 lu_002_7206940
 hdiskpower18  00c9026d3fb8a9bc vhost5 lu_003_7206940
 hdiskpower19  00c9026deccebc84 vhost5 lu_004_7206940
 hdiskpower20  00c9026dece296d9 vhost5 lu_005_7206940
 hdiskpower21  00c9026dc086dbe7 vhost7 lu_002_7206941
 hdiskpower22  00c9026dc08c8ae8 vhost3 lu_001_7206938
 hdiskpower23  00c9026dc08aeff9 vhost3 lu_002_7206938
 hdiskpower24  00c9026dc0a86699 vhost13 lu_001_7209857
 hdiskpower25  00c9026dc09fb567 vhost13 lu_002_7209857
 hdiskpower26  00c9026d480b255a vhost5 lu_006_7206940
 hdiskpower27  00c9026d32955147 vhost5 lu_007_7206940
 hdiskpower28  00c9026d692aebd4 vhost5 lu_008_7206940
 hdiskpower29              none vhost5 lu_009_7206940
 hdiskpower30  00c9026d3294f9e0 vhost5 lu_010_7206940
 hdiskpower31  00c9026db105c8d7 vhost5 lu_011_7206940
 hdiskpower32  00c9026db10d4288 vhost5 lu_012_7206940
 hdiskpower33  00c9026d168403a6 vhost5 lu_013_7206940
 hdiskpower34  00c9026d5a731d5b vhost2 bs_001_7206938
 hdiskpower35  00c9026d1741b8a5 vhost4 bs_001_7206940
 hdiskpower36  00c9026dfa9a039c vhost6 bs_001_7206941
 hdiskpower37  00c9026d000a4acd vhost8 bs_001_7206939
 hdiskpower38  00c9026d107efd89 vhost10 bs_001_7206944
 hdiskpower39  00c9026d10865248 vhost12 bs_001_7209857
 hdiskpower40  00c9026d734bec06
 hdiskpower41  00c9026d08aa7497 vhost14 bs_001_7213634
 hdiskpower42  00c9026d08a6c57f vhost16 bs_001_7213635
 hdiskpower43  00c9026dedf02dea vhost18 bs_001_7213636
 hdiskpower44  00c9026df37f2f5a

vios <=> vhosts

  • Sur le client
  echo "cvai" | kdb | grep vscsi
  • Sur le VIOS
$ lsmap -vadapter vhost4
SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost4          U9117.MMB.06A14EP-V480-C36                   0x00000002

VTD                   v_02_root_01
Status                Available
LUN                   0x8100000000000000
Backing device        hdisk19
Physloc               U78C0.001.DBJ7973-P2-C5-T1-W50060E80164DD424-L11000000000000
Mirrored              false

VTD                   v_02_root_02
Status                Available
LUN                   0x8200000000000000
Backing device        hdisk18
Physloc               U78C0.001.DBJ7973-P2-C5-T1-W50060E8
Mirrored              false

NPIV

lsnports => fabric = 1
lsmap -all -npiv |grep vfc
vfcmap -vadapter vfchost4 -fcp fcs0
vfcmap -vadapter vfchost5 -fcp fcs4
informatique/nix/ibm/ibm_aix_vios.txt · Dernière modification: 2015/11/25 14:46 (modification externe)