Extending SSA Filesystems
Assuming LUNS have already been created (in
this example, 16 were created)
ssh to the system
lsdev
–Cc disk > hdisks_before
cfgmgr
lsdev
–Cc disk > hdisks_after
then do a diff between the 2 output files:
diff –w hdisks_before hdisks_after (‘w’ ignores whitespace between files)
example of output:
> hdisk93 Available 05-08-02 IBM MPIO FC 2105
> hdisk94 Available 05-08-02 IBM MPIO FC 2105
> hdisk95 Available 05-08-02 IBM MPIO FC 2105
> hdisk96 Available 05-08-02 IBM MPIO FC 2105
> hdisk97 Available 05-08-02 IBM MPIO FC 2105
> hdisk98 Available 05-08-02 IBM MPIO FC 2105
> hdisk99 Available 05-08-02 IBM MPIO FC 2105
> hdisk100 Available 05-08-02 IBM MPIO FC 2105
> hdisk101 Available 05-08-02 IBM MPIO FC 2105
> hdisk102 Available 05-08-02 IBM MPIO FC 2105
> hdisk103 Available 05-08-02 IBM MPIO FC 2105
> hdisk104 Available 05-08-02 IBM MPIO FC 2105
> hdisk105 Available 05-08-02 IBM MPIO FC 2105
> hdisk106 Available 05-08-02 IBM MPIO FC 2105
> hdisk107 Available 05-08-02 IBM MPIO FC 2105
> hdisk108 Available 05-08-02 IBM MPIO FC 2105
the filesystems we need to extend by 1 GB
each:
/dev/lbiwab010000 /biwab/dp01/h00/mfsdata00
/dev/lbiwab010101 /biwab/dp01/h01/mfsdata01
/dev/lbiwab020202 /biwab/dp02/h02/mfsdata02
/dev/lbiwab020303 /biwab/dp02/h03/mfsdata03
/dev/lbiwab030004 /biwab/dp03/h00/mfsdata04
/dev/lbiwab030105 /biwab/dp03/h01/mfsdata05
/dev/lbiwab040206 /biwab/dp04/h02/mfsdata06
/dev/lbiwab040307 /biwab/dp04/h03/mfsdata07
/dev/lbiwab050008 /biwab/dp05/h00/mfsdata08
/dev/lbiwab050109 /biwab/dp05/h01/mfsdata09
/dev/lbiwab060210 /biwab/dp06/h02/mfsdata10
/dev/lbiwab060311 /biwab/dp06/h03/mfsdata11
/dev/lbiwab070012 /biwab/dp07/h00/mfsdata12
/dev/lbiwab070113 /biwab/dp07/h01/mfsdata13
/dev/lbiwab080214 /biwab/dp08/h02/mfsdata14
/dev/lbiwab080315 /biwab/dp08/h03/mfsdata15
We need to determine which volume group
each filesystem is a part of therefore we use:
root@opfqa02[/biwab]lslv lbiwab010000
LOGICAL VOLUME: lbiwab010000 VOLUME GROUP: BWARUabVG1
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 128 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 59 PPs: 51
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /biwab/dp01/h00/mfsdata00 LABEL: /biwab/dp01/h00/mfsdata00
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
Once you have the vg and the hdisk (see
above) you can extend the filesystem by using smitty extendvg
Add a Physical Volume
to a Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired
changes.
[Entry Fields]
Force the creation of a volume group? no
+
* VOLUME GROUP name [BWARUabVG1]
+
* PHYSICAL VOLUME names [hdisk93]
Now that we have extended the Volume
groups, we need to extend the filesystems to use the extra 1 GB
Calculate using 1024x1024x2=2097152
chfs -a size=+2097152
/biwab/dp01/h00/mfsdata00 (for 1 GB
additional)
check
to ensure that the filesystem is now extended
Note
that the PP s has increased by 8. 8x128
– 1024 MB-1GB!!!
root@opfqa02[/tmp]lslv lbiwab010000
LOGICAL VOLUME: lbiwab010000 VOLUME GROUP: BWARUabVG1
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 128 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 59 PPs: 59
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /biwab/dp01/h00/mfsdata00 LABEL: /biwab/dp01/h00/mfsdata00
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
Repeat the above steps for each additional
filesystem that you need to extend.