Increase filesystem and or logical volume

Hi all,

Do i need to increase the logical volume each time i increase the filesystem?
or is enough to increase the filesystem and the logical volume get increase automatically?

extendlv hd4 1
chfs -a size=2G /tmp

or just

chfs -a size=2G /tmp

Just the filesystem - the LV size is increased automatically. You might have a test box where you can try it out yourself. And use code tags.

Use a plus (or minus) to do incremental changes to a filesystem. For example,...

Absolute...

 chfs -a size <value> <file-system>

.

versus

Incremental...

 chfs -a size +<value> <file-system>

Basically you can increase the filesystem and the LV is resized automatically, like zaxxon said. You can (and should) do this if you do not care about the PP layout for the LV. If you are on a modern system and your disks are virtual (like: provided by a SAN) this is the way to go.

If you have physical disks and want to control which PPs are allocated to the LV and in which order you might want to resize the LV before (maybe using a mapfile for maximum control over the process) and only then resize the FS.

I hope this helps.

bakunin

thx all for u input :slight_smile: