Different sizes with getconf DISK_SIZE and lspv


 
Thread Tools Search this Thread
Operating Systems AIX Different sizes with getconf DISK_SIZE and lspv
# 1  
Old 02-03-2016
Different sizes with getconf DISK_SIZE and lspv

Hi all,

when I issue a lspv <hdisk>, I get
Code:
TOTAL PPs:          7199 (1842944 megabytes)

When I issue a getconf DISK_SIZE /dev/<hdisk>, I get
Code:
1048576

Where do those additional ~800 GB come from the output of lspv.. anyone an idea?

The volume is an EMC LUN provided by a VIOS and I have no access there.
Also I am not root so I cant check with bootinfo -s <hdisk>.

Thanks in advance!

cheers
zaxxon


EDIT:
I also did a check with lqueryvg -Atvp <hdisk> and got
Code:
Total PPs:      14398

Comparing the number of PP on the volume from lspv and the fact that the VG on this PV is placed on 2 hdisks of the same size, I assume that the output of lqueryvg is simly x2, ie. number of hdisks.
The VG on those 2 volumes is enhance-concurrent; maybe this counts in somehow too on some of the tools/outputs?

Also I got this Output, checking amount of PPs on the PV by VGID and PVID:
Code:
$ lquerypv -g 00caf4de00004c0000000137fe5de949 -p 00caf4deed67916b -n
1600


Last edited by zaxxon; 02-03-2016 at 06:30 AM..
# 2  
Old 02-03-2016
Hi,

i guess the size of the disk has changed in the past and the LVM is currently not aware of this.

man chvg
Code:
   -g
            Will examine all the disks in the volume group to see if they have grown in size. If any disks have grown in size attempt to add
            additional PPs to PV. If necessary will determine proper 1016 multiplier and conversion to big vg.

            Note: The user might be required to execute varyoffvg and then varyonvg on the volume group for LVM to see the size change on the
            disks.

Normaly this happens when we increase the size of LUN on the storage layer. Decreasing a LUN where the LVM is not aware of it should result in a IO failure...

Regards

Last edited by -=XrAy=-; 02-03-2016 at 07:24 AM..
This User Gave Thanks to -=XrAy=- For This Post:
# 3  
Old 02-03-2016
It could be that this is the reason - sadly there is no way for me to verify it because I have no root access and no VIOS access.
I assume they did the chvg -v on the VIOS but not on the client LPARs, maybe due to the needed varyon/off.

I will have to take the output of lspv in this case Smilie

Thanks though.

cheers
zaxxon
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Partition Sizes

Good Morning, What's a good way to get partition/slice sizes down to the byte on Solaris 9? I've tried a few ways, but only see results like 8.21GB which rounds the number. Thanks! (5 Replies)
Discussion started by: Stellaman1977
5 Replies

2. AIX

Lspv -free command on VIOS

Hi all, We have observed that lspv -free command tooks 15 to 20 minutes to display the free disks and we have only 77 MPIO disks on VIO Server. Our VIOS version is 2.2.1.4. Please let us know what could be the reason that lspv -free command taking long time to display the output. Thank (4 Replies)
Discussion started by: m_raheelahmed
4 Replies

3. AIX

Lspv -free command on VIOS

Hi all, When we run lpsv -free command on VIOS, it will take lot of time to display free disks i.e around 8 to 10 minutes. VIOS ioslevel is 2.2.1.4Can you have any solution for this problem? Many Thanks (2 Replies)
Discussion started by: m_raheelahmed
2 Replies

4. Shell Programming and Scripting

Help with file sizes

I have 2 big files in the size of gb. They are same with respect to content, both are “,” delimited. Now both of them are created by two different processes but has the same logic. The problem is they are differing only in few bytes for e.g one file is 202195751 bytes other is 202195773. So... (2 Replies)
Discussion started by: dsravan
2 Replies

5. Shell Programming and Scripting

Awk command for search a string in lspv

I 've got this retourn when i tape the commande lspv: hdisk0 00c3fce454950416 rootvg active hdisk1 00c3fce454950416 rootvg active I want to verify if hdisk0 et hdisk1 have the same pvid (ex : 00c3fce454950416)? Can... (8 Replies)
Discussion started by: khalidou13
8 Replies

6. Shell Programming and Scripting

Awk command for search a string in lspv

I want to know wich hdisk have only one pvid and also display hdisk with two pvid. hdisk1 00c3fcd4e516183f testvg active hdisk2 00c3fcd4e516189b testvg active hdisk3 00c3fcd4e51618ec testvg ... (1 Reply)
Discussion started by: khalidou13
1 Replies

7. UNIX for Dummies Questions & Answers

getconf LONG_BIT and isainfo conflict

I wish to programmatically determine whether a solaris system is 32-bit or 64-bit. Investigation on the web suggested that the following commands were the right way to test this: # isainfo -kv # getconf LONG_BIT Strangely, on all three of the solaris systems I have access to, isainfo... (2 Replies)
Discussion started by: nosrednayduj
2 Replies

8. Solaris

invalid getconf output and Perl compile

I was compiling perl on a Solaris 10 server. The compile failed because the output of getconf is wrong (it indicates xarch is generic64 not v9. This is a known bug but I cannot find a fix. I wrote a script as suggested that changes it but when you run getconf again it goes back to generic64. ... (2 Replies)
Discussion started by: csross
2 Replies

9. UNIX for Advanced & Expert Users

AIX p570 lspv, lslv etc... not working

Hi we are running a VIO server on a AIX p570 we cannot run and of the command the query the ODM has anyone seen this problem or has a solution the command just hangs. (1 Reply)
Discussion started by: truma1
1 Replies

10. UNIX for Dummies Questions & Answers

Directory sizes

Can someone tell me how to read these damn sizes. i mean, i prefer to see sizes in MB but that is not the case when you do an ls -l on directories. i have a had time converting these to MB just for verification purposes, what would a directory size like this = 3499990308 represent in MB or... (3 Replies)
Discussion started by: TRUEST
3 Replies
Login or Register to Ask a Question