Expand file systems by
adding new logical disks from Storage System
The following 16
MFS file systems needs to be expanded.
/dev/lbiwab010000 3276800
1807396 45% 214
1% /biwab/dp01/h00/mfsdata00
/dev/lbiwab010101 3276800
1882088 43%
214 1%
/biwab/dp01/h01/mfsdata01
/dev/lbiwab020202 3276800
1825628 45% 214
1% /biwab/dp02/h02/mfsdata02
/dev/lbiwab020303 3276800
1832680 45% 214
1% /biwab/dp02/h03/mfsdata03
/dev/lbiwab030004 3276800
1864808 44% 214
1% /biwab/dp03/h00/mfsdata04
/dev/lbiwab030105 3276800
1867492 44% 214
1% /biwab/dp03/h01/mfsdata05
/dev/lbiwab040206 3276800
1888760 43% 214
1% /biwab/dp04/h02/mfsdata06
/dev/lbiwab040307 3276800
1878048 43% 214
1% /biwab/dp04/h03/mfsdata07
/dev/lbiwab050008 3276800
1887196 43% 215
1% /biwab/dp05/h00/mfsdata08
/dev/lbiwab050109 3276800
1864700 44% 215
1% /biwab/dp05/h01/mfsdata09
/dev/lbiwab060210 3276800
1890544 43% 216
1% /biwab/dp06/h02/mfsdata10
/dev/lbiwab060311 3276800
1160000 65% 215
1% /biwab/dp06/h03/mfsdata11
/dev/lbiwab070012 3276800
1897936 43% 216
1% /biwab/dp07/h00/mfsdata12
/dev/lbiwab070113 3276800
1859580 44% 216
1% /biwab/dp07/h01/mfsdata13
/dev/lbiwab080214 3276800
1811312 45% 216
1% /biwab/dp08/h02/mfsdata14
/dev/lbiwab080315 3276800
1876616 43% 216
1% /biwab/dp08/h03/mfsdata15
- Find out the volume group for each
file system above
# lslv <Logical Volume Name>
e.g. lslv
lbiwab010000 (repeat for all above 16 MFS)
- Find out the new LUN*
# lspv
hdisk50 none None
hdisk51 none None
hdisk52 none None
hdisk53 none None
hdisk54 none None
hdisk55 none None
hdisk56 none None
hdisk57 none None
hdisk58 none None
hdisk59 none None
hdisk60 none None
hdisk61 none None
hdisk62 none None
hdisk63 none None
hdisk64 none None
hdisk65 none None
- Check the LUN Size
# pcmpath query device
You should see similar output.
Disk Path
P Location adapter
LUN SN Type Size
LSS Vol Rank
C/A S Connection
port R
aidMode
------- ----- -
---------- -------- --------
------------ ---- ---
--- ---- ---
- ----------- ---- -
-------
hdisk65 path0
05-08-02[FC] fscsi0
71F29544 IBM 2105-800 3.5
23 31 1702
1c Y R1-B1-H2-ZA 4
RAID5
hdisk65 path1
05-08-02[FC] fscsi0 71F29544
IBM 2105-800 3.5 23
31 1702 1c
Y R1-B2-H2-ZA 24
RAID5
hdisk65 path2
05-08-02[FC] fscsi0
71F29544 IBM 2105-800 3.5
23 31 1702
1c Y R1-B3-H2-ZA
84 RAID5
hdisk65 path3
05-08-02[FC] fscsi0
71F29544 IBM 2105-800 3.5
23 31 1702
1c Y R1-B4-H2-ZA
a4 RAID5
hdisk65 path4
06-08-02[FC] fscsi1
71F29544 IBM 2105-800 3.5
23 31 1702
1c Y R1-B1-H1-ZA 0
RAID5
hdisk65 path5
06-08-02[FC] fscsi1
71F29544 IBM 2105-800 3.5
23 31 1702
1c Y R1-B2-H1-ZA
20 RAID5
hdisk65 path6
06-08-02[FC] fscsi1
71F29544 IBM 2105-800 3.5
23 31 1702
1c Y R1-B3-H1-ZA
80 RAID5
hdisk65 path7
06-08-02[FC] fscsi1
71F29544 IBM 2105-800 3.5
23 31 1702
1c Y R1-B4-H1-ZA
a0 RAID5
LUN size is
3.5GB (under Size Column)
- Add new LUN* to volume group
# smit vg
Set Characteristics of a Volume Group
Add a Physical Volume to a Volume Group
Press F4 to select volume group name
(e.g BWARUabVG10)
Press F4 to select physical volume name (e.g hdisk50)
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 [hdisk50]
+
Press Enter to do.
- Check Physical Volume under volume
group
# lsvg –p <VG name>
root@opfqa02[/]lsvg
-p BWARUabVG1
BWARUabVG1:
PV_NAME PV STATE TOTAL PPs FREE PPs
FREE DISTRIBUTION
hdisk30 active 26 0
00..00..00..00..00
hdisk35 active 2 0 00..00..00..00..00
hdisk50 active 26 26 00..00..00..00..00
You should see
the new PV (e.g hdisk50) appears
- Check FREE PPs in volume group
characteristics
# lsvg <VG name>
e.g # lsvg BWARUabVG1
root@opfqa02[/]lsvg BWARUabVG1
VOLUME
GROUP: BWARUabVG1 VG IDENTIFIER: 00c6144f00004c000000010998a97b17
VG
STATE: active PP SIZE: 128 megabyte(s)
VG
PERMISSION: read/write TOTAL PPs: 28 (3584 megabytes)
MAX
LVs: 256 FREE PPs: 26 (3328 megabytes)
LVs: 3 USED PPs: 28 (3584 megabytes)
OPEN
LVs: 3 QUORUM: 2
TOTAL
PVs: 2 VG DESCRIPTORS: 3
STALE
PVs: 0 STALE PPs: 0
ACTIVE
PVs: 2 AUTO ON: yes
MAX
PPs per PV: 1016 MAX
PVs: 32
LTG
size: 128 kilobyte(s) AUTO SYNC: no
HOT
SPARE: no BB POLICY: relocatable
Number
of FRES PPS is (26)
- Expand file system
Number of bytes
added = (# of FREE PPs) * (PP SIZE) * 2 * 1024
Number of bytes
added = 26*128*2*1024=6815744
Check file
system under VG
root@opfqa02[/]lsvg
-l BWARUabVG1
BWARUabVG1:
lbiwabmfs jfs 2
2 1 open/syncd /biwab/dp01/h00/mfs
lbiwab010000 jfs 25
25 2 open/syncd /biwab/dp01/h00/mfsdata00
loglv17 jfslog 1
1 1 open/syncd N/A
Expand the
appropriate file system “/biwab/dp01/h00/mfsdata00”.. Please refer to the IV
ticket.
# chfs –a size=+6815744
/biwab/dp01/h00/mfsdata00 (Remember the +
before the number of bytes added)
- Check file system size after
expansion
# df –k <file system>
e.g df –k
/biwab/dp01/h00/mfsdata00
Repeat the above
steps to expand other file systems.
9
TIPS:
Error – max # of PP is 512 during
extendLV, unable to extend JFS.
Solution – increase max # of PP for
each LV using chlv –x 1024 lv_name