Re: Determining disk contents

From: Adams Kevin J (kevin.adams@PHS.COM)
Date: Fri Apr 04 2003 - 11:03:06 EST


Another way is the lqueryvg command which will help narrow it down.

It will show you the attributes, the lvs and pvids to match up with the lspv
command:

# lqueryvg -p hdisk41 -At
Max LVs: 256
PP Size: 23
Free PPs: 41
LV count: 72
PV count: 6
Total VGDAs: 6
Conc Allowed 0
MAX PPs per 5080
MAX PVs: 6
Conc Autovar 0
Varied on Co 0
Logical: 00093961a4c01229.1 lvTNfactndat1 1
                00093961a4c01229.2 lvTNfactndat2 1
                .
                .
                00093961a4c01229.71 lvTNtrpodat2 1
                00093961a4c01229.72 lvTSsblog 1
Physical: 00093961520a26bc 1 0
                000939615208cb48 1 0
                00093961e284c672 1 0
                00093961cd0961f4 1 0
                00093961522cc3c1 1 0
                000939615221386b 1 0
Total PPs: 7029

Kevin Adams
-----Original Message-----
From: Bob Booth - UIUC [mailto:booth@UIUC.EDU]
Sent: Thursday, April 03, 2003 8:17 PM
To: aix-l@Princeton.EDU
Subject: Re: [aix-l] Determining disk contents

Yes,

you can examine the VGDA on each hdisk with od, and match up VGIDs. All the
disks in the same volume group will have the same VGID.

Use 'od' view the beginning of each disk. You will find the PVID at offset
200
and the beginning of the VGDA at offset 7000.

od -N 330 -X /dev/hdisk1 for example.

at offset 200:

.
.
.
0000200 0001034a b307e56b 00000000 00000000
.
.
.
. at offset 7000 you will find your VGID:
.
0007000 5f4c564d 000deadb eefdeadb 00000000
. ^^^^^^^^^^^^^^^^^
. This of course is a bogus VGID, but you get the idea
.

I check both PVID and VGID just for sanity.

cheers,

bob

On Fri, Apr 04, 2003 at 12:25:00PM +1000, Sunder Iyengar wrote:
> Friends,
>
> Consider this situation. A system can see a number of PVs (besides the
> rootvg disks). If am not sure how many non-rootvg VGs are on these PVs and
> also what PVs make up which VG, is there any way to determine this
> information?
>
> For example, my system sees the following PVs -
>
> hdisk0 0001034ab307e56b rootvg
>
> hdisk1 0001034a326d1e82 None
>
> hdisk2 0001034a5296d85d None
>
> hdisk3 0001034a5299048b None
>
> hdisk4 0001034a5298f313 None
>
> hdisk5 0001034a5298cfce None
>
> hdisk6 0001035a1f333f3d None
>
> Say, hdisk1, hdisk3 and hdisk5 make up a VG and,
>
> hdisk2, hdisk4 and hdisk6 make up another VG.
>
>
>
> The VGs are not imported. Prior to import, is there any way for me to
> determine what PVs make up which VG?
>
> Thanks in advance,
>
> Sunder.
>

This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.

If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:43 EDT