- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvdisplay -l /dev/disk/disk* not working properly
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 08:04 PM
тАО05-27-2010 08:04 PM
pvdisplay -l /dev/disk/disk* not working properly
# pvdisplay -l /dev/disk/disk*
pvdisplay: Couldn't open physical volume "/dev/disk/disk60": <<<<<<<< DVD
# pvdisplay -l /dev/disk/disk63_p2 <<<<< Works fine
/dev/disk/disk63_p2:LVM_Disk=yes
# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk63_p2
# ll /dev/disk/disk*
brw-r----- 1 bin sys 3 0x000000 May 26 21:31 /dev/disk/disk60
brw-r----- 1 bin sys 3 0x000001 May 26 21:31 /dev/disk/disk61
brw-r----- 1 bin sys 3 0x000002 May 26 21:31 /dev/disk/disk62
brw-r----- 1 bin sys 3 0x000003 May 26 21:31 /dev/disk/disk63
brw-r----- 1 bin sys 3 0x00000c May 26 21:31 /dev/disk/disk63_p1
brw-r----- 1 bin sys 3 0x00000d May 26 21:31 /dev/disk/disk63_p2
brw-r----- 1 bin sys 3 0x00000e May 26 21:31 /dev/disk/disk63_p3
brw-r----- 1 bin sys 3 0x000005 May 26 21:31 /dev/disk/disk64
brw-r----- 1 bin sys 3 0x000006 May 26 21:31 /dev/disk/disk65
brw-r----- 1 bin sys 3 0x000007 May 26 21:31 /dev/disk/disk66
brw-r----- 1 bin sys 3 0x000008 May 26 21:31 /dev/disk/disk67
brw-r----- 1 bin sys 3 0x000009 May 26 21:31 /dev/disk/disk68
brw-r----- 1 bin sys 3 0x00000a May 26 21:31 /dev/disk/disk69
brw-r----- 1 bin sys 3 0x00000b May 26 21:31 /dev/disk/disk70
# vgdisplay -v | grep "PV Name"
PV Name /dev/disk/disk63_p2
Question is why "pvdisplay -l /dev/disk/disk*" is NOT working for all disks.
Note: This is a fresh system
Thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 08:46 PM
тАО05-27-2010 08:46 PM
Re: pvdisplay -l /dev/disk/disk* not working properly
Please post "ioscan -fnC disk"
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 09:10 PM
тАО05-27-2010 09:10 PM
Re: pvdisplay -l /dev/disk/disk* not working properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 09:23 PM
тАО05-27-2010 09:23 PM
Re: pvdisplay -l /dev/disk/disk* not working properly
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 09:31 PM
тАО05-27-2010 09:31 PM
Re: pvdisplay -l /dev/disk/disk* not working properly
Right, neither did I :-)
If "pvdisplay -l
But the question is why is it NOT working for rest of the disks. It only reports error for DVD (disk60).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 09:35 PM
тАО05-27-2010 09:35 PM
Re: pvdisplay -l /dev/disk/disk* not working properly
diskinfo /dev/rdisk/disk60
to make it work try to execute via a script :
cat >dskfile
#entry device file entry like
/dev/disk/disk60
then
for i in `cat dskfile`
do
pvdisplay -l $i
done
this will let you know the desire output..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 09:36 PM
тАО05-27-2010 09:36 PM
Re: pvdisplay -l /dev/disk/disk* not working properly
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 09:56 PM
тАО05-27-2010 09:56 PM
Re: pvdisplay -l /dev/disk/disk* not working properly
Thanks for the script. But, I know that the command is working fine when run for individual disk (hence works with script as well).
I was going through some doc which says that in 11.31 we can find disks that are NOT used by lvm by this command (with output):
# pvdisplay -l /dev/disk/disk*
/dev/disk/disk36:LVM_Disk=no
/dev/disk/disk36_p1:LVM_Disk=no
/dev/disk/disk36_p2:LVM_Disk=yes
/dev/disk/disk36_p3:LVM_Disk=no
/dev/disk/disk37:LVM_Disk=no
/dev/disk/disk38:LVM_Disk=no
But in my server above command is not working for disks.
So, wanted to divert your attention toward disks..I am hardly concerned about DVD's output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 04:11 AM
тАО05-28-2010 04:11 AM
Re: pvdisplay -l /dev/disk/disk* not working properly
pvdisplay -l /dev/dsk/c9*
pvdisplay -l /dev/dsk/c9t0d?
I tried on hp-ux 11.11 "pvdisplay /dev/dsk/*" and it also exited after erroring out on the DVD drive.
But then I narrowed it down to "pvdisplay /dev/dsk/c2*" (the DVD drive is c0t0d0) and it showed all disks in the c2 path.
Apparently there may be something wrong with the error handling of the pvdisplay command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 05:18 PM
тАО05-28-2010 05:18 PM