Operating System - HP-UX
1833873 Members
4182 Online
110063 Solutions
New Discussion

Re: how find Free PV which not been used or Configured Server HPUX 11.11

 
SOLVED
Go to solution
Johnson Punniyalingam
Honored Contributor

how find Free PV which not been used or Configured Server HPUX 11.11

Hi All,

Greetings and Goodday!

Could any help me how to find what are the Free PV which are not been PV-created.? were to check

# uname -a;model
HP-UX B.11.11 U 9000/800 1440564391 unlimited-user license
9000/800/K580

Question:-
1. strings /etc/lvmtab than campare the disks with the ioscan -fnC disk output

2. vgdisplay

Please see the attachment for the ioscan & lvmtab output

Thanks,
Best Regards,
Johnson
Problems are common to all, but attitude makes the difference
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: how find Free PV which not been used or Configured Server HPUX 11.11

Hi,

both methods are good to use.

You can also use SAM and let him list the PVs or try
# xvdisk list

Is this a FC60?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sandeep_Chaudhary
Trusted Contributor
Solution

Re: how find Free PV which not been used or Configured Server HPUX 11.11

run following commands.


ioscan -funCdisk|grep dsk|awk '{print $1}'|xargs -i pvdisplay {}


if there is any PV which is not associated with any VG it give error for that PV ptherwise shows information like :

--- Physical volumes ---
PV Name /dev/dsk/c3t15d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 2
PE Size (Mbytes) 4
Total PE 8681
Free PE 0
Allocated PE 8681
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Torsten.
Acclaimed Contributor

Re: how find Free PV which not been used or Configured Server HPUX 11.11

more examples:

# pvdisplay -v /dev/dsk/c0t6d0 | head -n 20
--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 9
PE Size (Mbytes) 4
Total PE 2168
Free PE 0
Allocated PE 2168
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On

# pvck -n /dev/dsk/c0t6d0
pvck: using default blocksize
pvck: /dev/dsk/c0t6d0: LVM checksums usable

# pvck /dev/dsk/c1t2d0
pvck: using default blocksize
pvck: /dev/dsk/c1t2d0 unreadable or not LVM disk


# lvmchk /dev/dsk/c0t6d0
# echo $?
0

# lvmchk /dev/dsk/c1t2d0
# echo $?
1

(see man lvmchk)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: how find Free PV which not been used or Configured Server HPUX 11.11

Please have a look at this:

http://forums12.itrc.hp.com/service/forums/helptips.do?#33

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Johnson Punniyalingam
Honored Contributor

Re: how find Free PV which not been used or Configured Server HPUX 11.11

Hi Sandeep,

Bunch of thanks your reply have solved by Question.

Thanks,
Best Regards,
Johnson
Problems are common to all, but attitude makes the difference