# df -g /data
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/datalv 19.81 1.65 92% 58627 11% /data
The LV (Logical Volume) of
/accounting is /dev/datalv. Now, where is the VG (Volume Group) that contains /dev/datalv?# lslv datalv
LOGICAL VOLUME: datalv VOLUME GROUP: datavg
LV IDENTIFIER: 0001650f0000d6000000011662730419.4 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 64 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 317 PPs: 317
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /data LABEL: /data
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
Now, we know that datalv is in the VG datavg... is there any space left on this VG?# lsvg datavg
VOLUME GROUP: datavg VG IDENTIFIER: 0001650f0000d6000000011662730419
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1598 (102272 megabytes)
MAX LVs: 256 FREE PPs: 361 (23104 megabytes)
LVs: 8 USED PPs: 1237 (79168 megabytes)
OPEN LVs: 8 QUORUM: 1
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
Check FREE PPs line above: we have 23 Gigabytes left on the deviceAdd the disk space to the filesystem
Keeping on with our example, here thechfs command to be issued as root:# chfs -a size=+10G /data
Filesystem size changed to 62521344
Check the new size of the filesystem
# df -g /data
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/datalv 29.81 12.74 58% 58607 2% /data
No comments:
Post a Comment