- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pvdisplay to display all pv's on a server
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
Forums
Discussions
Discussions
Discussions
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
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
06-20-2006 03:50 AM
06-20-2006 03:50 AM
I need run pvdisplay on each disk, but as you can imagine, this could take forever and 5 days with serveral servers. Anyone know of a way to run pvdisplay (without -v) to display all the disks on the server at one time, instead of individually.
I am going output to a file, but want to make sure it works before sending it to a file.
I've tried pvdisplay /dev/dsk/c*t*d*
Thanks for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 03:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 04:01 AM
06-20-2006 04:01 AM
Re: pvdisplay to display all pv's on a server
#!/usr/bin/sh
typeset DSK=""
ls /dev/dsk/* | while read DSK
do
pvdisplay ${DSK}
done
Invoke as "pv.sh > outfile 2>errfile"
This approach will capture all the "good" LVM disks and will send errors on all the "bad" disks (ie those that are no LVM disks or CD-ROM's, etc.) to an error file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 04:04 AM
06-20-2006 04:04 AM
Re: pvdisplay to display all pv's on a server
pvdisplay /dev/dsk/*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 04:17 AM
06-20-2006 04:17 AM
Re: pvdisplay to display all pv's on a server
You can try this command
#ioscan -fnC disk | grep "/dev/dsk" | awk '{print $1}' > /tmp/allpv
Regards
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 04:25 AM
06-20-2006 04:25 AM
Re: pvdisplay to display all pv's on a server
ioscan -fnC disk | grep "/dev/dsk" | awk '{print $1}' | xargs pvdisplay
>/tmp/allpv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 04:37 AM
06-20-2006 04:37 AM
Re: pvdisplay to display all pv's on a server
Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 05:46 AM
06-20-2006 05:46 AM