You are on page 1of 2

Increasing filesystem size on the server:

1. First to see all PVs(physical volumes) on the server, use lspv command. This will tell us what PV
belongs to which (VG)volume group.

servername # lspv
hdisk0 00cc985e49ac0526 rootvg active
hdisk1 00cc985ef386b046 rootvg active
hdisk2 00cc985e7575b6d1 None
hdisk15 none None
hdisk16 none None
hdisk18 none None
hdisk20 none None
hdisk22 none None
hdisk24 none None

2. Then to find PV on which the filesystem resides, use lsfs command to list all filesystems

$ lsfs
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/hd4 -- / jfs2 2752512 -- yes no
/dev/hd1 -- /home jfs2 131072 -- yes no
/dev/hd2 -- /usr jfs2 5308416 -- yes no
/dev/hd9var -- /var jfs2 589824 -- yes no
/dev/hd3 -- /tmp jfs2 1703936 -- yes no
/proc -- /proc procfs -- -- yes no
/dev/hd10opt -- /opt jfs2 5439488 -- yes no

3. Now note down the device name(here hd2 for /usr) and use lslv command to see in which PV
the filesystem resides

$ lslv -l hd2
hd2:/usr
PV COPIES IN BAND DISTRIBUTION
hdisk0 081:000:000 80% 000:002:065:014:000

Also we have other command as shown below to list all filesystem under a PV.

$ lspv -l hdisk0
hdisk0:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd11admin 4 4 00..00..00..04..00 /admin
hd10opt 83 83 00..07..51..25..00 /opt
hd1 2 2 00..00..01..01..00 /home
hd3 26 26 16..00..02..00..08 /tmp
hd9var 9 9 00..00..04..05..00 /var
hd2 81 81 00..02..65..14..00 /usr
hd4 42 42 00..01..03..22..16 /
4. Using lspv command will tell us what volume group the PV belongs to(Step 1). Also the things to
note down here are number of free PPs(Physical Partitions are present in the PV) and PP size.
servername # lspv hdisk0
PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg
PV IDENTIFIER: 00cc985e49ac0526 VG IDENTIFIER 00cc985e00004c00000001182abd63dd
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 128 megabyte(s) LOGICAL VOLUMES: 12
TOTAL PPs: 546 (69888 megabytes) VG DESCRIPTORS: 1
FREE PPs: 307 (39296 megabytes) HOT SPARE: no
USED PPs: 239 (30592 megabytes) MAX REQUEST: 256 kilobytes
FREE DISTRIBUTION: 45..21..55..77..109
USED DISTRIBUTION: 65..88..54..32..00

5. Now to increase the /usr filesystem by 512MB, we will use below command–

chfs -a size=+512M /usr


WARNING: Make sure to put ‘+’ sign before size number, this will increase the filesystem by
give size. If ‘M’ is not specified, by default size will be considered into Kilo Bytes

If any error is shown, make sure we have enough disk size available which is calculated as :
Free PPs x PP Size = Free space

You might also like