ROOTVG

AIX => Administration => Topic started by: Michael on November 17, 2006, 07:27:17 PM



Title: disk space error...something very peculiar!
Post by: Michael on November 17, 2006, 07:27:17 PM
Quote
Topic:   disk space error...something very peculiar!
Posted by: aqeel786 ® 11/15/2006, 05:16:42
Author Profile | Post Reply | Alert | Recommend | Current page | Edit | Main Forum
Hi,
We have a P650 system running aix 5.2. This system has no free space at /home filesystem at this time. We have only 900M data on /home. systems rootvg shows that the PP size is 64M and /home mounted on rootvg has 200 PPs. Therefore 200 * 64 = 12800 means we should have a filesystem which has 12.8GByte. But df -m shows we have a /home filesystem which has only 3GByte with no free space.

# lspv|grep rootvg
hdisk0 000cec8e2ce9663e rootvg active

yes we have total 3 HDs installed in this system.

# lspv
hdisk0 000cec8e2ce9663e rootvg active
hdisk1 000cec8ec654d5ba datavg active
hdisk2 005b68ec33ac7a01 datavg active

We are using this server as database (oracle) and application server.

# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000cec8e00004c00000001042ce983d7
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 542 (34688 megabytes)
MAX LVs: 256 FREE PPs: 5 (320 megabytes)
LVs: 17 USED PPs: 537 (34368 megabytes)
OPEN LVs: 13 QUORUM: 2
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 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


# lsvg rootvg -l
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 64 64 1 open/syncd N/A
hd8 jfslog 1 1 1 open/syncd N/A
hd4 jfs 2 2 1 open/syncd /
hd2 jfs 24 24 1 open/syncd /usr
hd9var jfs 2 2 1 open/syncd /var
hd3 jfs 9 9 1 open/syncd /tmp
hd1 jfs 200 200 1 open/syncd /home
hd10opt jfs 1 1 1 open/syncd /opt
lv00 jfs 47 47 1 closed/syncd /ptf
loglv00 jfs2log 1 1 1 open/syncd N/A
fslv00 jfs2 48 48 1 open/syncd /bea
lvora jfs2 81 81 1 open/syncd /oracle
ptcl2_redo01 raw 8 8 1 closed/syncd N/A
ptcl2_redo02 raw 8 8 1 open/syncd N/A
ptcl2_redo03 raw 8 8 1 closed/syncd N/A
lvbill jfs2 32 32 1 open/syncd /bill


# df -m
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 128.00 92.93 28% 2018 4% /
/dev/hd2 1536.00 24.34 99% 31878 9% /usr
/dev/hd9var 128.00 12.62 91% 610 2% /var
/dev/hd3 576.00 481.65 17% 279 1% /tmp
/dev/hd1 3072.00 20.90 100% 15126 2% /home
/proc - - - - - /proc
/dev/hd10opt 64.00 28.31 56% 626 4% /opt
/dev/fslv00 3072.00 1208.51 61% 19071 7% /bea
/dev/lvora 5184.00 412.23 93% 16058 15% /oracle
/dev/lvoradata 37120.00 1488.08 96% 26 1% /oradata
/dev/lvbill 2048.00 1099.20 47% 3637 2% /bill
/dev/lvjfdata 29312.00 8252.37 72% 27601 2% /jfdata


# du -sm /home
878.23 /home

please if anybody can indentify the problem/solution.

Thanks

Replies To This Message

Topic: Re: disk space error...something very peculiar!
Posted by: wwells ® 11/17/2006, 00:13:03
Author Profile | Post Reply | Alert | Recommend | Current page | Edit | Main Forum
Please post the output of the following:

lslv hd1
lslv -l hd1
lsfs /home

Topic: Re: disk space error...something very peculiar!
Posted by: aqeel786 ® 11/17/2006, 08:10:05
Author Profile | Post Reply | Alert | Recommend | Current page | Edit | Main Forum
# lslv hd1
LOGICAL VOLUME: hd1 VOLUME GROUP: rootvg
LV IDENTIFIER: 000cec8e00004c00000001042ce983d7.8 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 64 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 200 PPs: 200
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: center UPPER BOUND: 32
MOUNT POINT: /home LABEL: /home
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO

# lslv -l hd1
hd1:/home
PV COPIES IN BAND DISTRIBUTION
hdisk0 200:000:000 0% 000:000:001:095:104

# lsfs /home
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/hd1 -- /home jfs 6291456 -- yes no

Topic: Re: disk space error...something very peculiar!
Posted by: aqeel786 ® 11/17/2006, 09:01:33
Author Profile | Post Reply | Alert | Recommend | Current page | Edit | Main Forum
# lslv hd1
LOGICAL VOLUME: hd1 VOLUME GROUP: rootvg
LV IDENTIFIER: 000cec8e00004c00000001042ce983d7.8 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 64 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 200 PPs: 200
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: center UPPER BOUND: 32
MOUNT POINT: /home LABEL: /home
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO

# lslv -l hd1
hd1:/home
PV COPIES IN BAND DISTRIBUTION
hdisk0 200:000:000 0% 000:000:001:095:104

# lsfs /home
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/hd1 -- /home jfs 6291456 -- yes no



Title: Re: disk space error...something very peculiar!
Post by: Michael on November 17, 2006, 07:42:24 PM
OK. I will have to guess here, but I expect that rather than using chfs -a size+XXX /home to increase filesystem size, the command extendlv has been used instead.
i.e. extendlv XX hd1

The output of lsfs states that the filesystem size is blocks is: 6291456 blocks

A filesystem of 1PP of 64MB has 131072 512 byte blocks, so the following command shows that the filesyetem is only using 48 of the 200 PP.

Quote
michael@x054:[/home/michael]dc
6291456 131072 / p
48

What I would recommend is that you use the following commands to use all the space you have allocated:

chlv -x 200 hd1
chfs -a size=13.2G /home

I am not certain that the size is correct. Another way that should be exact is:

Quote
michael@x054:[/home/michael]dc
131072 200 * p
26214400

chfs -a size=2621440 /home

Hope this works as expected.