Operating System - HP-UX
1753793 Members
7239 Online
108799 Solutions
New Discussion юеВ

Re: how to get a correct vxvm disk size

 
ZQiang
Occasional Advisor

how to get a correct vxvm disk size

I have a disk that is about 70g in size. I tried to configure a vg using vxvm but it shows the disk as being 48g in size. I am using HP-UX 11.23 vxvm 5.0. How do I get the correct disk size?
10 REPLIES 10
Ron Irving
Trusted Contributor

Re: how to get a correct vxvm disk size

The 'diskinfo' command should give you what you need:

# diskinfo /dev/rdsk/c#t#d#

(where #=the value from ioscan.)

Hope this helps!

Ron
Should have been an astronaut.
Shrikant Lavhate
Esteemed Contributor

Re: how to get a correct vxvm disk size

Hi,

Is it a fresh disk? or already been used in another VG? if so then use vgexport and vgimport.
Yes, diskinfo must get you correct size of disk. If fresh disk, have pvcreate done sucessfully? or you can re run using -f option.

-=ShRi=-
Will it remain a personal, if I broadcast it here!
ZQiang
Occasional Advisor

Re: how to get a correct vxvm disk size

following are my operating and return messages
#diskinfo -b /dev/rdsk/c3t0d0
71687369
#vxdisksetup -if c3t0d0
#vxdisk list c3t0d0
......
public: slice=0 offset=32896 len=48985984 disk_offset=0
......

Siju Vadakkan
Trusted Contributor

Re: how to get a correct vxvm disk size

It seems ur getting wrong device information in VxVM

Refresh the disk info:

#mv /etc/vx/disk.info /etc/vx/disk.info.old
#/usr/sbin/vxconfigd -k -m enable
#ioscan -fnC disk

Ralph Grothe
Honored Contributor

Re: how to get a correct vxvm disk size

We only use VxVM on a couple of our FSC Solaris boxes.
So I don't know if there are layout differences to HP-UX.
Interestingly, on Solaris the blocks are in fact only 512B which would even shrink your disk to 23GB ;-)
Just out of curiosity,
what is reported as free within the DG?
e.g.
# vxdg -g used_dg free
Madness, thy name is system administration
Robert-Jan Goossens_1
Honored Contributor

Re: how to get a correct vxvm disk size

Hi Billy,

Have a look at this doc.

VxVM not initializing the LUN into VM control with the correct size

http://seer.entsupport.symantec.com/docs/295499.htm

Regards,
Robert-Jan
ZQiang
Occasional Advisor

Re: how to get a correct vxvm disk size

Thanks, everyone. thanks Robert for your help.
ZQiang
Occasional Advisor

Re: how to get a correct vxvm disk size

Thanks everyone
Hein van den Heuvel
Honored Contributor

Re: how to get a correct vxvm disk size

Billy,

Be sure to say thanks with 'points'.
See: http://forums12.itrc.hp.com/service/forums/helptips.do?#28

[0 points for this reply please !]

And, consider 'closing' this thread in a short while to stop nuisance comment like this one trigger Emails and the likes :-)

Regards,
Hein