Originally Posted by rameshbolaram
we are working on a script which should run/execute only if the PV (LVM) free space is greater than 100GB.
how can i make my script to understand the number of free space in run it.
PV VG Fmt Attr PSize PFree
/dev/sda3 VG-934c50cb-2251-cc09-28de-d9ddb6e5b252 lvm2 a- 457.75G 329.48G
There are several ways...so why don't you post your script, and show us what YOU have written/tried so far, and tell us where you're stuck. You can easily pipe that command through sed (to strip away the first header line), and awk (to print JUST the last value).