neuralnode
Technical User
Hi there,
I have recently started using AIX 5L in my company, as an addition to the already existing Linux infrastructure. There are things I don't quite understand yet.
Here was the situation:
The mountpoint /usr (mounted on /dev/hd2) was 99% full, as shown by df. The system, as might be expected, started to behave strangely, refused to start CDE, caused problems with FTP and so on. I had one unused disk, hdisk1, so I decided to extend the hd2 logical volume onto that disk by issuing smitty extendlv. lspv -p hdisk1 showed that hd2 along with mountpoint /usr was sucessfully extended to the new disk. However, df still showed no change in percent usage of the disk space for /usr (still 99% used). Then I extended the filesystem for /usr by issuing smitty chjfs and adding some volume to /usr. After that df showed that /usr had indeed more space than before (63% used), as I had intended.
My question is this: What is the relation between those two operations: extending a LV to another physical volume (hard disk) and increasing filesystem size for a given mountpoint? I mean, how can I track such requirements/changes? What takes precedence here?
For example, let's say I set some number of physical partitions while extending an LV to a new disk, and then increase space for the filesystem that this very LV uses. What if the filesystem size extension exceeds the previously configured size of physical partitions? Will the mountpoint assigned to that LV remain at the size defined during extendlv operation, or will it use any available space from other LVs if the configured filesystem size is larger than one specified during extendlv operation?
Hell, I know this sounds confusing, to say the least, but I can hardly figure out how to put it any simpler way.
Generally, I'd like someone more experienced to enlighten me on the issue: extending logical volume size vs extending a mountpoint filesystem size. (The goal being simply adding some disk space to a given mountpoint and using another physical disk for that purpose).
Thanks in advance for any help.
I have recently started using AIX 5L in my company, as an addition to the already existing Linux infrastructure. There are things I don't quite understand yet.
Here was the situation:
The mountpoint /usr (mounted on /dev/hd2) was 99% full, as shown by df. The system, as might be expected, started to behave strangely, refused to start CDE, caused problems with FTP and so on. I had one unused disk, hdisk1, so I decided to extend the hd2 logical volume onto that disk by issuing smitty extendlv. lspv -p hdisk1 showed that hd2 along with mountpoint /usr was sucessfully extended to the new disk. However, df still showed no change in percent usage of the disk space for /usr (still 99% used). Then I extended the filesystem for /usr by issuing smitty chjfs and adding some volume to /usr. After that df showed that /usr had indeed more space than before (63% used), as I had intended.
My question is this: What is the relation between those two operations: extending a LV to another physical volume (hard disk) and increasing filesystem size for a given mountpoint? I mean, how can I track such requirements/changes? What takes precedence here?
For example, let's say I set some number of physical partitions while extending an LV to a new disk, and then increase space for the filesystem that this very LV uses. What if the filesystem size extension exceeds the previously configured size of physical partitions? Will the mountpoint assigned to that LV remain at the size defined during extendlv operation, or will it use any available space from other LVs if the configured filesystem size is larger than one specified during extendlv operation?
Hell, I know this sounds confusing, to say the least, but I can hardly figure out how to put it any simpler way.
Generally, I'd like someone more experienced to enlighten me on the issue: extending logical volume size vs extending a mountpoint filesystem size. (The goal being simply adding some disk space to a given mountpoint and using another physical disk for that purpose).
Thanks in advance for any help.