LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Abstract lvm information Linux (https://www.linuxquestions.org/questions/programming-9/abstract-lvm-information-linux-869580/)

sandeep_hello 03-19-2011 05:20 AM

Abstract lvm information Linux
 
Can anyone help me to write a script. I want to abstract some LVM information through script:

1) SAN disks allocated to the Linux Box which have a Volume Group with free space more than 10GB
2) SAN disks allocated to the Linux Box which don't have a LUN allocated to a Volume Group
3) SAN disks allocated to the Linux Box which don't have a pv or raw device allocated to the LUN.

So please suggest me.

EricTRA 03-20-2011 02:48 AM

Hello,

What have you come up with so far? Post what you've got and where you're missing things or encountering errors. Nobody here will give you a ready made solution. Use the available commands for lvm in combination with grep, awk, sed. Put everything in a script and test.

Kind regards,

Eric


All times are GMT -5. The time now is 10:52 AM.