Beruflich Dokumente
Kultur Dokumente
1.1
Contents
[hide]
2.1
None
None
None
None
None
None
None
None
None
None
None
Example: (loops through disks and, if they do not have a PVID, assigns them
one)
$ for i in `diff lspv.b4 lspv.after | grep hdisk |awk '{print $2}'`; do
> echo $i
> chdev -dev $i -attr pv=yes
> done
hdisk141
hdisk141 changed
hdisk142
hdisk142 changed
hdisk143
hdisk143 changed
hdisk144
hdisk144 changed
hdisk145
hdisk145 changed
hdisk146
hdisk146 changed
hdisk147
hdisk147 changed
hdisk148
hdisk148 changed
hdisk149
hdisk149 changed
hdisk150
hdisk150 changed
hdisk151
hdisk151 changed
Verify the new hdisks all have their own PVID now
Example:
# diff lspv.after lspv.after1 | grep hdisk
hdisk141
00c6cdf45bd40363
hdisk142
00c6cdf45bd4071b
hdisk143
00c6cdf45bd40a76
hdisk144
00c6cdf45bd40dd4
hdisk145
00c6cdf45bd41130
hdisk146
00c6cdf45bd41481
hdisk147
00c6cdf45bd417c4
hdisk148
00c6cdf45bd41b10
hdisk149
00c6cdf45bd41e64
hdisk150
00c6cdf45bd421bd
hdisk151
00c6cdf45bd4250a
None
None
None
None
None
None
None
None
None
None
None
Syntax:
chdev -dev <hdisk#> -attr reserve_policy=no_reserve
Example:
# chdev -dev hdisk141
hdisk141 changed
# chdev -dev hdisk142
hdisk142 changed
# chdev -dev hdisk143
hdisk143 changed
# chdev -dev hdisk144
hdisk144 changed
# chdev -dev hdisk145
hdisk145 changed
# chdev -dev hdisk146
hdisk146 changed
# chdev -dev hdisk147
hdisk147 changed
# chdev -dev hdisk148
hdisk148 changed
# chdev -dev hdisk149
hdisk149 changed
# chdev -dev hdisk150
hdisk150 changed
# chdev -dev hdisk151
hdisk151 changed
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
-attr reserve_policy=no_reserve
Example: (loops through hdisk141 - hdisk151 giving hdisk name and associated LDEV#)
# ls /dev/ | egrep 'disk14[1-9]|disk1[0-1]' | /usr/local/scripts/inqraid |
grep LDEV | awk '{print $1, $9}'
hdisk141 =1026
hdisk142 =1058
hdisk143 =1059
hdisk144 =1060
hdisk145 =1061
hdisk146 =1062
hdisk147 =1063
hdisk148 =1064
hdisk149 =1065
hdisk150 =1066
hdisk151 =1067
3.1
Repeat this for the other VIO server keeping in mind that the hdisk name may be different on
the other VIO server, use the PVID to be certain you have the right hdisk names!
4.1
Migrating Disks on LPARs (which receive their disk
from VIO)
Detect the new LUNs
# cfgmgr
Change hcheck_interval
Before assigning the new disks to the VG's we need to change the hcheck_interval attribute
of disks in VIO Client. we use 60 as the default value hcheck_interval.
Syntax:
$chdev -l hdisk## -a hcheck_interval=60
Application Volumes
List the physical volumes
# lsvg -p db2dmpvg
db2dmpvg:
PV_NAME
PV STATE
DISTRIBUTION
hdisk20
active
00..00..24..00..07
TOTAL PPs
FREE PPs
207
31
FREE
db2dmpvg
active
Look at your spreadsheet and determine what the replacement disk PVID is.
find the replacement disk hdisk# using the pvid
# lspv | grep 4071b
hdisk46
00c6cdf45bd4071b
None
verify the PP's have transfered from the old PVs to the new PVs
# lsvg -p db2dmpvg
db2dmpvg:
PV_NAME
PV STATE
DISTRIBUTION
hdisk20
active
26..00..00..00..05
hdisk46
active
26..00..00..00..05
TOTAL PPs
FREE PPs
207
31
207
31
TOTAL PPs
FREE PPs
207
31
FREE
FREE
Do not run cfgmgr on this client until its VTDs are removed from both VIO's.
5.1
Using the spreadsheet identify old VTD and remove its using rmvdev -vtd <VTD Name>
M.S.Gurunathan (talk) 02:57, 31 July 2014 (UTC)
Retrieved from "http://tsunixwiki.uk.standardchartered.com/unixwiki/index.php?
title=AIX_VIO_-_Cluster_-_Dual_VIO_-_HOST_Based&oldid=3473"
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Go
Search
Special:Search
Navigation
Main page
Recent changes
Help
Toolbox
Related changes
Special pages
Printable version
Permanent link
Privacy policy
About Unixwiki
Disclaimers