home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!levell.austin.ibm.com!julie
- From: julie@levell.austin.ibm.com (Julie L. Craft)
- Newsgroups: comp.unix.aix
- Subject: Re: LVM Question. How to get Vg_Id from VG Name ?
- Keywords: lvm_queryvg, lvm_varyoffvg, lvm_varyonvg
- Message-ID: <1992Aug26.195039.25209@awdprime.austin.ibm.com>
- Date: 26 Aug 92 19:50:39 GMT
- References: <Aug.25.17.11.23.1992.17815@gauss.rutgers.edu>
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Organization: IBM, Austin
- Lines: 42
-
- In article <Aug.25.17.11.23.1992.17815@gauss.rutgers.edu> manmetha@gauss.rutgers.edu (Rajesh Malhotra) writes:
- >
- >Fellow AIXers,
- >
- > How do I get information on a volume group using the
- >volume group name? All the routines viz. lvm_queryvg, lvm_varyoffvg,
- >lvm_varyonvg need the Vg_id. What routine would give me a Vg_id,
- >given a Volume Group Name?
-
- Actually, liblvm doesn't care about the name of the volume
- group. The name isn't even in the vgda. All the library
- needs is a /dev entry with the major number of the vg and
- minor number 0.
-
- The name to id relationship is kept in ODM. Try this:
-
- odmget -q "name=rootvg and attribute=vgserial_id" CuAt
-
- or
-
- getlvodm -v rootvg
-
- >
- > I am sure there has to be a way to query the Vg_id using the
- >volume group name (guess lvaryoffvg uses it).
-
- Sure, the high level commands....lsvg ...lspv...lslv....
- :-)
-
- >
- > I would appreciate any responses/ideas on this matter.
- >
- >
- >Raj.
-
- Later,
- Julie
- --
- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
- Julie Levell Craft IBM AUSTIN,TX Internet: julie@aixwiz.austin.ibm.com
- IBMNET: JULIEL at AUSVM6 2F-007/903 (512) 838-2677 (Tie 678-2677)
- "I'm not getting defensive!"
-