Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't reduce size of filesystem 1

Status
Not open for further replies.

foobar13

MIS
May 8, 2007
24
CA
This is such a newbie question. I can't reduce the size of a filesystem. I know that this was a feature added in AIX 5.3, but I thought I'd heard that this feature was added in 5.2 at TL 10. It's not working for me. I'm finding APARs for this not working for concurrent volume groups in 5.2, but nothing's pointing me to the answer. And 5.2 is now out of support so I can't ask IBM.

Can anyone verify if this feature should be available in my level of AIX?

root# chfs -a size=190G /mopdb/d01
chfs: 0506-908 Cannot reduce size of file system.
root# oslevel -s
5200-10-07-0902
root@# mount |grep mopdb
/dev/foolv /mopdb/d01 jfs2 Jun 11 16:18 rw,nodev,nosuid,log=/dev/foolog



Much appreciated,
Foobar
 
Is there enough free block to reduce to 190G? Perhaps try with a smaller reduction?

[tt]chfs -asize=[red]-[/red](size of 1PP here) /mopdb/d01[/tt]

Note the minus sign!


HTH,

p5wizard
 
Thanks, p5wizard. You're implying that I should be able to do this with my version of AIX. Here's what I got.

Code:
root# lsvg foovg
VOLUME GROUP:   foovg                    VG IDENTIFIER:  00016b4e00004c0000000121d01a9795
VG STATE:       active                   PP SIZE:        16 megabyte(s)
VG PERMISSION:  read/write               TOTAL PPs:      21838 (349408 megabytes)
MAX LVs:        512                      FREE PPs:       9034 (144544 megabytes)
LVs:            2                        USED PPs:       12804 (204864 megabytes)
OPEN LVs:       2                        QUORUM:         3
TOTAL PVs:      4                        VG DESCRIPTORS: 4
STALE PVs:      0                        STALE PPs:      0
ACTIVE PVs:     4                        AUTO ON:        yes
MAX PPs per PV: 9144                     MAX PVs:        14
LTG size:       256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:      no                       BB POLICY:      relocatable 
root# lsvg -l foovg
foovg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
foolog              jfs2log    4     4     4    open/syncd    N/A
foolv               jfs2       12800 12800 4    open/syncd    /mopdb/d01
root# chfs -a size=-1G /mopdb/d01
chfs: 0506-908 Cannot reduce size of file system.
root# chfs -a size=-16M /mopdb/d01
chfs: 0506-908 Cannot reduce size of file system.
 
Well, you said you heard it was backported to 52TL10. That sounded plausible to me, but now I'm not so sure...

Here's a workaround that I can think of with minimal downtime:

varyoffvg
exportvg
importvg in a 53 system
shrink fs
varyoffvg
exportvg
importvg back in your 52 system

But I'd try that out on a non-production system with a good backup (that is always a prereq!)


HTH,

p5wizard
 
just a few thoughts, how much space is shown as free in the filesystem right now? df -g /mopdb/d01

does the filesystem hold lots of small files? perhaps you need to defragfs it to give you larger chunks of free space.. but then i'd have been surprised that it couldnt even reduce it by one PP...

too bad, i just got rid of my last 52TL10 box a few months back or i woulda tested it real quick.
 
R you sure that 5.2 at TL 10 can reduce fs? It's my first time to hear about this?

Have you tried to create a new file system and reduce it?

Regards,
Khalid
 
IBM have confirmed that this feature was not backported. Don't know why I thought that.

Thanks for your help!

Foo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top