home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9126 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!levell.austin.ibm.com!julie
  2. From: julie@levell.austin.ibm.com (Julie L. Craft)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: LVM Question. How to get Vg_Id from VG Name ?
  5. Keywords: lvm_queryvg, lvm_varyoffvg, lvm_varyonvg
  6. Message-ID: <1992Aug26.195039.25209@awdprime.austin.ibm.com>
  7. Date: 26 Aug 92 19:50:39 GMT
  8. References: <Aug.25.17.11.23.1992.17815@gauss.rutgers.edu>
  9. Sender: news@awdprime.austin.ibm.com (USENET News)
  10. Organization: IBM, Austin
  11. Lines: 42
  12.  
  13. In article <Aug.25.17.11.23.1992.17815@gauss.rutgers.edu> manmetha@gauss.rutgers.edu (Rajesh Malhotra) writes:
  14. >
  15. >Fellow AIXers,
  16. >
  17. >    How do I get information on a volume group using the
  18. >volume group name? All the routines viz. lvm_queryvg, lvm_varyoffvg,
  19. >lvm_varyonvg need the Vg_id. What routine would give me a Vg_id,
  20. >given a Volume Group Name?
  21.  
  22.     Actually, liblvm doesn't care about the name of the volume
  23.     group.  The name isn't even in the vgda.  All the library
  24.     needs is a /dev entry with the major number of the vg and
  25.     minor number 0.
  26.  
  27.     The name to id relationship is kept in ODM.  Try this:
  28.  
  29.     odmget -q "name=rootvg and attribute=vgserial_id" CuAt
  30.  
  31.     or 
  32.     
  33.     getlvodm -v rootvg
  34.  
  35. >
  36. >    I am sure there has to be a way to query the Vg_id using the
  37. >volume group name (guess lvaryoffvg uses it).
  38.  
  39.     Sure, the high level commands....lsvg ...lspv...lslv....
  40.     :-)    
  41.  
  42. >
  43. >    I would appreciate any responses/ideas on this matter.
  44. >
  45. >
  46. >Raj.
  47.  
  48.     Later,
  49.     Julie
  50. -- 
  51. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
  52. Julie Levell Craft IBM AUSTIN,TX  Internet: julie@aixwiz.austin.ibm.com
  53. IBMNET: JULIEL at AUSVM6 2F-007/903  (512) 838-2677 (Tie 678-2677)
  54. "I'm not getting defensive!"
  55.