Friday, 17 June 2016


Disk Replacement On VIO :

-->If the LUN/hdisk/LV from VIO is mapped to Client LPAR then follow the below process

========================================================================
9117-570  # 00B0FAF  Ref # 30T9NLT   PMR# 80826  (VIO #1 hdisk7)
=========================================================================
hdisk7           U7879.001.DQDVCLP-P1-T12-L3-L0  16 Bit LVD SCSI Disk Drive (146800 MB)

 reducevg vioc_data_vg4 hdsik7  <=no need for this command if hdisk7 is the only disk in the vg, just run rmvdev -vdev lvname to remove the virtualized lv's
 deactivatevg vioc_data_vg4 
 rmdev -dl hdisk7

===========As Padmin User=========================
rmvdev -vdev lvname
rmlv lvname 
deactivatevg vioc_data_vg4
rmdev -dev hdisk7
===================================================

 diag (Task Selection - Hot plug Task - Scsi and Scsi raid hot plug manager - Identify Device (it will show hdisk4 as populated - means removed from AIX system  or no more detected in System), then F3, then Replace /Remove option

Note: Hard disk will be replaced at this stage by IBM Field Engineer...

 cfgmgr
 bootinfo -s hdisk7
 chdev -l hdisk7 -a pv=yes
 mkvg –f -y vioc_data_vg4 -s 128 hdisk7
 lsvg vioc_data_vg4
 lspv hdisk7

================As padmin user====================
cfgdev
chdev -dev hdisk7 -attr pv=yes
mkvg -f -vg vioc_data_vg4 hdisk7
lsvg vioc_data_vg4
lspv hdisk7
==================================================

=========================================================================
9117-570  # 00B0F6F  Ref # 33P3FZ8    PMR# 82063  (VIO#4 hdisk7)
=========================================================================
 hdisk7           U7879.001.DQDWTGL-P1-T12-L3-L0  16 Bit LVD SCSI Disk Drive (146800 MB)

 reducevg vioc_data_vg4 hdsik7
 deactivatevg vioc_data_vg4 
 rmdev -dl hdisk7

===========As Padmin User=========================
rmvdev -vdev lvname
rmlv lvname 
deactivatevg vioc_data_vg4
rmdev -dev hdisk7
===================================================

 diag (Task Selection - Hot plug Task - Scsi and Scsi raid hot plug manager - Identify Device (it will show hdisk7 as populated - means removed from AIX system  or no more detected in System), then F3, then Replace /Remove option

Note: Hard disk will be replaced at this stage by IBM Field Engineer...

 cfgmgr
 bootinfo -s hdisk7
 chdev -l hdisk7 -a pv=yes
 mkvg –f -y vioc_data_vg4 -s 128 hdisk7
 lsvg vioc_data_vg4
 lspv hdisk7

================As padmin user====================
cfgdev
chdev -dev hdisk7 -attr pv=yes
mkvg -f -vg vioc_data_vg4 hdisk7
lsvg vioc_data_vg4
lspv hdisk7

==========================================================================
9117-MMA  # 0088CC2  Ref # 73HMJJS  PMR# 77704 (VIO#13 hdisk2)
==========================================================================

--> On VIO Clients (ws186 & ws187)
unmirrorvg uservg hdisk2
reducevg -d uservg hdisk2
lspv
lsvg -p uservg
chdev -l hdisk2 -a pv=no
rmdev -dl hdisk2

--> On VIO server
$ rmvdev -vtd ws186_data_vio1 -rmlv
$ rmvdev -vtd ws187_data_vio1 -rmlv

OR

$ rmdev -dev ws186_data_vio1 
$ rmdev -dev ws187_data_vio1 

$ rmlv ws186_data_hd2 
$ rmlv ws187_data_hd2

# reducevg vioc_data_vg2 hdisk2
# exportvg vioc_data_vg2
# rmdev -dl hdisk2

diag (Task Selection --> Hot plug Task --> Scsi and Scsi raid hot plug manager --> Identify Device (it will show hdisk2 as populated - means removed from AIX system  or no more detected in System), then F3, then Replace /Remove option,select appropriate disk and hit enter, get a Replace or Remove window... Here wait for CE to replace hdisk, after getting the approval from CE hit enter.

Note: Hard disk will be replaced at this stage by IBM Field Engineer... then hit enter

$ cfgdev
$ bootinfo -s hdisk2

# lsdev -Cc disk

//assign pvid
#chdev -l <hdisk> -a pv=yes

// Create the VG with 256 PP size
# mkvg –f -y vioc_data_vg2 -s 256 hdisk2 
# lsvg vioc_data_vg2
# lsvg -p vioc_data_vg2


lsdev -virtual
lsdev -slots

// Create the LV's 

$ mklv -lv ws186_data_hd2 vioc_data_vg2 69824M

OR

# mklv -y ws186_data_hd2 -t jfs2 -c 1 -s n vioc_data_vg2 556 hdisk2 (556 means 556*256(ppsize)=142336M--this is the size of hdisk# at ws186)
# mklv -y ws187_data_hd2 -t jfs2 -c 1 -s n vioc_data_vg2 556 hdisk2


# lsvg -l vioc_data_vg2

// Mapping Can see vhost names in backup of "lsmap -all" output
$ mkvdev -vdev ws186_data_hd2 -vadapter vhost6 -dev ws186_data_vio1 --> (ws186_data_hd2--lvname;ws186_data_vio1--vtd_name) 
$ mkvdev -vdev ws187_data_hd2 -vadapter vhost7 -dev ws187_data_vio1 -- (vtd_name)

//verify mapping is done correct
# lsmap -all 

--> VIO Client (After Disk Replacement):

# cfgmgr
# bootinfo -s hdisk2
#chdev -l <hdisk> -a pv=yes
# lspv
# extendvg uservg hdisk2
# lspv
# mirrorvg uservg
# syncvg -v uservg
# lsvg -l uservg

No comments:

Post a Comment