Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-19-2011, 05:20 AM   #1
Registered: Feb 2008
Posts: 62

Rep: Reputation: 1
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.
Old 03-20-2011, 02:48 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

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,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trashed LVM partition information - Can I recover it? westiej Linux - Software 1 05-21-2009 02:09 AM
Abstract Console and LinuxConsole: Text Only Linux Without VGA btbx Linux - Kernel 1 10-05-2007 11:47 AM
A simple language abstract, please, re: making my Linux network public lhoff Linux - Networking 3 02-07-2002 09:52 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration