hi
please explain your problem, not your solution, thank you
The problem is that I want to change the size of the swap partition, but the root partition and the swap partition are logical volumes on a raid array, and changing the size of the root and swap partitions is a multi-step procedure.
The solution would have been in your telling me the proper steps to resize the root file system, resize the md array, resize the root logical volume, resize the swap logical volume, and reformat the swap partition. I can see now that we're probably not going to get that level of support here, though.
As an alternative, the idea of a swap file is certainly much easier, but I don't like the thought of having a possibly non-contiguous file for swap (the system has been writing data on the disk for some time already). I am, however, going to consider the swap file further before discounting it entirely.