Originally posted by: bhead
Thanks Orphy,
I'm wondering if "du" will include meta data, output from du -g /oaphru shows 407.32. If I use that number the difference between what I'm trying to get it down to and used space is 17.68 GB, guessing that should be plenty of spare but I don't know for sure.
I tried dropping it in 5GB increments, failed at the 45GB mark, which leaves 144GB free (according to df output). I'm guessing meta data should be more like KB or MB of data, with 144GB free I think something else is going on. Here is the output:
>du -sg /oaphru
407.32 /oaphru
> chfs -a size=-5G /oaphru
Filesystem size changed to 1231552512
> chfs -a size=-5G /oaphru
Filesystem size changed to 1221066752
> chfs -a size=-5G /oaphru
Filesystem size changed to 1210580992
> chfs -a size=-5G /oaphru
Filesystem size changed to 1200095232
> chfs -a size=-5G /oaphru
Filesystem size changed to 1189609472
> chfs -a size=-5G /oaphru
Filesystem size changed to 1179123712
> chfs -a size=-5G /oaphru
Filesystem size changed to 1168637952
> chfs -a size=-5G /oaphru
Filesystem size changed to 1158152192
> chfs -a size=-5G /oaphru
chfs: There is not enough free space to shrink the file system.
> echo $?
28
> df -gP /oaphru
Filesystem GB blocks Used Available Capacity Mounted on
/dev/lvb01hru 552.25 407.43 144.82 74% /oaphru
> df -k /dev/lvb01hru
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/lvb01hru 579076096 151851684 74% 58379 1% /oaphru
> df -g /dev/lvb01hru
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/lvb01hru 552.25 144.82 74% 58379 1% /oaphru
> lsfs -q /dev/lvb01hru
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/lvb01hru -- /oaphru jfs2 1158152192 rw yes no
(lv size: 1158152192, fs size: 1158152192, block size: 4096, sparse files: yes, inline log: no, inline log size: 0, EAformat: v1, Quota: no, DMAPI: no, VIX: no)
> lslv lvb01hru
LOGICAL VOLUME: lvb01hru VOLUME GROUP: vgb01
LV IDENTIFIER: 00217b9d00004c00000000fe104df509.5 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 3500 PP SIZE: 256 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 2209 PPs: 2209
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: maximum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 128
MOUNT POINT: /oaphru LABEL: /oaphru
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
> umount /oaphru
> fsck -y /oaphru
The current volume is: /dev/lvb01hru
Primary superblock is valid.
-
Phase 1 - Initial inode scan
-
Phase 2 - Process remaining directories
-
Phase 3 - Process remaining files
-
Phase 4 - Check and repair inode allocation map
-
Phase 5 - Check and repair block allocation map
File system is clean.
> mount /oaphru
#AIX-Forum