Is it ok to use the same sizes (ie: 120G) in shrinking the file system and then the logical volume? Or would I, like some articles suggest, shrink the file system to something like 108G (90% of 120G) then shrink the LV to 120G. And after that I would grow the file system to 120G?
I guess I would just use the same numbers in the both commands, but this could be something that it would be better to get confirmed.
This is from the link that was posted above:
"When we reduce the size of the actual volume in the next step, it is critical that the new size is greater than or equal to the size of the file system. To be on the safe side, we’ll just shrink the file system a bit more than necessary and expand it to use the full space available later.
Finally, grow the file system so that it uses all available space on the logical volume."
This article used different numbers also, and people in the comments indicate that this is a mistake:
http://www.tecmint.com/extend-and-reduce-lvms-in-linux/
An option in the middle would be to check / verify the size and use the --extents option with the lvcreate:
If you want to be extra cautious about not shrinking the LV to a size smaller than the filesystem it contains, check the physical extent size of your volume group using vgdisplay volgrp01, and calculate how many physical extents are needed to hold the byte size of your filesystem (using 1MB = 1048576 bytes). Then specify that number using the --extents option instead of the --size 50G.
SO BASICALLY:
1) I can use the same numbers (the simplest option)
2) Check the numbers with vgdisplay volbrp-name (I am not exactly sure how to do this yet, I would need to look into this further if this is a good and needed step)
3) I can use smaller number for file system, number 10% higher for the LV and enlarge the file system to match the LV after that (the article that was suggesting this is like 6-7 years old, so I am not sure about it too).