I need to increase a filesystem from around 1TB to 15TB on a running AIX7.1 TSM server.
This will be by far the largest single filesystem increase I've ever performed, or even heard of.
The volume group already has enough disk available (in fact the filesystem was always intended to be 15TB, it just wasn't initially setup at the right size).
Can I just increase the filesystem to the full required size (chfs -a size=+14000G)?
Would I be advised to do the increase in a number of smaller jumps, say 4 lots of 3TB etc.?
Are there any limits or gotchas I need to be aware of? (The filesystem is jfs2, so in theory it should be able to go to 15TB no problem).
You are right, it would not matter at all, but sometimes I'm very conservative.
If you make it in one step, it takes a long time and if something goes wrong, you have to repeat the whole operation from the very beginning.
If you make it in smaller steps, in case of errors, you repeat just the last small step. If e.g. you don't have enough free space in /tmp, you fail during the first operation. If you wrong calculated the free space in the volume group (you know 14 TB are not always 14 TB you repeat only the last step, decreasing the size of the additional space.
And you can always write in a single line, something like:
# for i in 1 2 3 4 5 6 7 ; do if ! chfs -a size=+2000G /myfs ; then print -u2 f.ck && break ; fi ; done
Yes, sorry, extents is more of an Oracle space allocation. :o
The difference in "increase to" and "increase by" determines if you do this:-
chfs -a size=15000G /your_fs
... or this:-
chfs -a size=+15000G /your_fs
The former sets the new size and the latter sets the increase in size, so depending what you start with, there could be quite a difference.
I think you have a good plan and I think that the suggestion from agent.kgb is very sensible. Maybe stop short and do the last 2 extensions yourself. Ensure you don't over-allocate the filesystem. When I last had AIX, reducing a filesystem was not possible - you had to drop & re-create it.
SAN disk is (almost always) provided by protected disk, so probably RAID5 or RAID10 etc., but if you have SAN disk, it is not the concern of the person managing the AIX server, so that makes things easier.
The filesystem increase went very smoothly. I did it in a number of steps, increasing in size as each step completed with no problems or delays.
Smallest increase was 1TB, largest increase was 5TB.
All of them completed very quickly, longest was probably around 20 seconds.