- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding physical disk drives on a HP-UX machine
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
10-27-2008 09:06 AM
10-27-2008 09:06 AM
Finding physical disk drives on a HP-UX machine
I want to find information about the disk drives mounted on a HP-UX system. I only want physical devices and not logical devices.
Right now I am using the command:-
echo "selclass qualifier hard; info;wait;infolog" 2>/dev/null | /usr/sbin/cstm 2>/dev/null
But this command gives me logical volumes also while I want only physical disk drives.
Please help.
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2008 09:29 AM
10-27-2008 09:29 AM
Re: Finding physical disk drives on a HP-UX machine
ioscan -fnC disk
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2008 09:45 AM
10-27-2008 09:45 AM
Re: Finding physical disk drives on a HP-UX machine
ioscan command requires "root" privileges. Is there any command available which works for a normal user?
Thanks,
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2008 10:22 AM
10-27-2008 10:22 AM
Re: Finding physical disk drives on a HP-UX machine
Try ioscan -fnkCdisk
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2008 09:19 PM
10-27-2008 09:19 PM
Re: Finding physical disk drives on a HP-UX machine
the above reply's doesn't outcome any result unless you hav proper permission in ioscan fommand file.
try this
#cat /var/adm/syslog|grep disk|more
this will give you the hardware address of disks.
BTW you post in in wrong forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2008 10:21 PM
10-27-2008 10:21 PM
Re: Finding physical disk drives on a HP-UX machine
Please tell me in which forum I should post my query.
Thanks,
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2008 02:33 AM
10-28-2008 02:33 AM
Re: Finding physical disk drives on a HP-UX machine
# /sbin/ioscan -fnkCdisk
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2008 03:42 AM
10-28-2008 03:42 AM
Re: Finding physical disk drives on a HP-UX machine
Try this has "root -user"
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 01:04 PM
10-29-2008 01:04 PM
Re: Finding physical disk drives on a HP-UX machine
ioscan only requires root if you're actually scanning the bus.
Use either of the following commands:
ioscan -funC disk
ioscan -fknC disk
will work for non-root users and will display the ctds (or dsf as HP likes to call 'em) for the disks.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 05:31 PM
10-29-2008 05:31 PM
Re: Finding physical disk drives on a HP-UX machine
> But this command gives me logical volumes also while I want only physical disk drives.
cstm knows nothing about logical volumes, it is showing you physical disks. This includes disks that have never been written or incorporated into a volume group. The more common command for disk is:
echo "selclass qualifier hard;info;wait;infolog"|cstm
However, cstm is very wordy (lots of details). You can filter cstm like this:
echo "selclass qualifier hard;info;wait;infolog" | cstm | grep "Product Id:"
But then ioscan -kfCdisk provides one-liners with a bit more information per line.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 07:21 PM
10-29-2008 07:21 PM
Re: Finding physical disk drives on a HP-UX machine
You can use ioscan command if you have the root permission or ask your administrator to give sudo permission to run this command.
Suraj