title: Linux shared libraries to find disk information like LUN Id, Storage array information, also to do HBA and mount/un-mount operations
body: <p>Can anyone tell me <strong>shared libraries</strong> on <strong>SuSE and RedHat Linux</strong> which contain:</p>
  
  <ol>
  <li><p>APIs to find out <strong>Disk Information</strong> like <strong><em>Disk attributes</em></strong>, <strong><em>LUN Id</em></strong>, <strong><em>VG (Volume group) Id</em></strong> and <strong><em>Storage array information.</em></strong></p></li>
  <li><p>APIs to do <a href="http://encyclopedia2.thefreedictionary.com/Host+Bus+Adapter" rel="nofollow"><strong><em>HBA</em></strong></a> related operations (like <em>discovering <a href="http://encyclopedia2.thefreedictionary.com/World+Wide+Name" rel="nofollow">WWN</a></em> numbers on the machine).</p></li>
  </ol>
  
  <p>I am making a library in C++ which is used to do LUN discovery, LUN attach and detach operation on SuSE and RedHat systems.</p>
  
  <p>I already made this library for IBM AIX platform. But I don't know which shared libraries are used on SuSE and RedHat for doing above operations.</p>
  
  <p>Please also tell me where I can get these Shared Libraries.</p>