Sponsored Content
Operating Systems AIX Adding Storage to a System File. Post 302494803 by Scott on Tuesday 8th of February 2011 12:06:48 PM
Old 02-08-2011
I presume you mean "file system" (your subject line says "system file")?

1. Yes. You need to know which volume groups these logical volumes belong to (looking at the names, I would guess qa2vg).
Code:
lslv sapdata5qa
lslv ... etc for each

Run lsvg <volume group name>. Perhaps the space you need is already available.
Code:
lsvg $(lsvg) | grep -E "VOLUME|FREE"

2. Use chfs to add space to a filesystem
Code:
chfs -a size=+X ...
chfs -a size=X

where +X is to increase by an amount (like +1G, +100M, etc. and =X is to increase it to X (like =1G, 100M, etc.). Read the man page for chfs.

3. Have the disks been added? Did you run cfgmgr, then have a look with lspv. You should change the healthcheck interval to 60 using chdev. Extend the volume group(s) with the new disk(s). Read man extendvg. You may need to run chlv -x to increase the maximum LV's for the logical volumes. If chfs fails because of that, it will tell you what the value should be. Are the logical volumes striped (lslv will show this.)?

4. df -g should be sufficient.
 
VGREDUCE(8)						      System Manager's Manual						       VGREDUCE(8)

NAME
vgreduce - reduce a volume group SYNOPSIS
vgreduce [-a|--all] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--removemissing] [-t|--test] [-v|--verbose] VolumeGroupName [Physi- calVolumePath...] DESCRIPTION
vgreduce allows you to remove one or more unused physical volumes from a volume group. OPTIONS
See lvm for common options. -a, --all Removes all empty physical volumes if none are given on command line. --removemissing Removes all missing physical volumes from the volume group, if there are no logical volumes allocated on those. This resumes normal operation of the volume group (new logical volumes may again be created, changed and so on). If this is not possible (there are logical volumes referencing the missing physical volumes) and you cannot or do not want to remove them manually, you can run this option with --force to have vgreduce remove any partial LVs. Any logical volumes and dependent snapshots that were partly on the missing disks get removed completely. This includes those parts that lie on disks that are still present. If your logical volumes spanned several disks including the ones that are lost, you might want to try to salvage data first by acti- vating your logical volumes with --partial as described in lvm (8). SEE ALSO
lvm(8), vgextend(8) Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) VGREDUCE(8)
All times are GMT -4. The time now is 06:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy