- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- Disk Enclosures
- >
- HP -ux command
Disk Enclosures
1753546
Members
5573
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО01-20-2004 05:30 AM
тАО01-20-2004 05:30 AM
HP -ux command
please let me know hp-ux command to know
1)total number of external disks assigned and their capacity(used and free)
thanks
coolcheks
1)total number of external disks assigned and their capacity(used and free)
thanks
coolcheks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2004 08:22 AM
тАО01-20-2004 08:22 AM
Re: HP -ux command
Hi,
The easiest is to use SAM, start SAM, open Disk and Fils system and then open Disks.
If you like commands you ca├В┬┤n try:
ioscan -fnC disk
From the list of disks you can then do:
diskinfo
ex:
ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE FUJITSU MAJ3091MC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 15 0/2/0/0.1.2.255.14.15.0 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d0 /dev/rdsk/c10t15d0
disk 16 0/2/0/0.1.2.255.14.15.1 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d1 /dev/rdsk/c10t15d1
disk 17 0/2/0/0.1.2.255.14.15.2 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d2 /dev/rdsk/c10t15d2
disk 18 0/2/0/0.1.2.255.14.15.3 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d3 /dev/rdsk/c10t15d3
# diskinfo /dev/rdsk/c1t15d0
SCSI describe of /dev/rdsk/c1t15d0:
vendor: FUJITSU
product id: MAJ3091MC
type: direct access
size: 8923743 Kbytes
bytes per sector: 512
#
The easiest is to use SAM, start SAM, open Disk and Fils system and then open Disks.
If you like commands you ca├В┬┤n try:
ioscan -fnC disk
From the list of disks you can then do:
diskinfo
ex:
ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE FUJITSU MAJ3091MC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 15 0/2/0/0.1.2.255.14.15.0 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d0 /dev/rdsk/c10t15d0
disk 16 0/2/0/0.1.2.255.14.15.1 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d1 /dev/rdsk/c10t15d1
disk 17 0/2/0/0.1.2.255.14.15.2 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d2 /dev/rdsk/c10t15d2
disk 18 0/2/0/0.1.2.255.14.15.3 sdisk CLAIMED DEVICE CMD CRD-7400
/dev/dsk/c10t15d3 /dev/rdsk/c10t15d3
# diskinfo /dev/rdsk/c1t15d0
SCSI describe of /dev/rdsk/c1t15d0:
vendor: FUJITSU
product id: MAJ3091MC
type: direct access
size: 8923743 Kbytes
bytes per sector: 512
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2004 03:23 PM
тАО01-20-2004 03:23 PM
Re: HP -ux command
Adding to the above: the EMC utility "inq" does an excellent job. It used to be free, but I can't find it any more.
diskinfo gives capacity, but will not give used/free. To get used/free, it's more complicated and depends on whether you're using LVM or "whole disk."
If whole disk, I believe that when you do a bdf, one filesystem will equate to one disk (you can see the mapping by looking at /etc/fstab or running the mount command with no arguments). However, this is theoretical to me; I've not done whole disk.
For LVM disks, I think a reasonable answer is to get the list of disks (using ioscan or inq; you can see which ones are actually in use by "vgdisplay -v" or "strings /etc/lvmtab" but you'll need to know how to interpret the results of the commands). Once you have a list of disks currently used by volume groups, do a "pvdisplay -v disk_name" where you replace "disk_name" with a disk device filename. Raw, as I recall:
/usr/sbin/pvdisplay -v /dev/rdsk/c0t5d0
"man pvdisplay" will answer questions. Once you see the information, you have to count the physical extents. pvdisplay shows the status of every physical extent in the volume group. The heading of the pvdisplay command (or else the vgdisplay for the appropriate volume group) shows the extent size. You count the number of free extents, multiply extent size, and there's the amount free. Count the number of extents in use (it will show something like "lvol2") and do the calculation.
As far as determining which are external, I don't know of a programmatic way. It depends on the hardware path. Each type of server has certain built-in bus paths. Disks on those busses should be internal drives (unless it's a bus with an adapter on that's externally exposed, such as a D or K class, and you've hung a disk/array off it).
HTH.
Mic
diskinfo gives capacity, but will not give used/free. To get used/free, it's more complicated and depends on whether you're using LVM or "whole disk."
If whole disk, I believe that when you do a bdf, one filesystem will equate to one disk (you can see the mapping by looking at /etc/fstab or running the mount command with no arguments). However, this is theoretical to me; I've not done whole disk.
For LVM disks, I think a reasonable answer is to get the list of disks (using ioscan or inq; you can see which ones are actually in use by "vgdisplay -v" or "strings /etc/lvmtab" but you'll need to know how to interpret the results of the commands). Once you have a list of disks currently used by volume groups, do a "pvdisplay -v disk_name" where you replace "disk_name" with a disk device filename. Raw, as I recall:
/usr/sbin/pvdisplay -v /dev/rdsk/c0t5d0
"man pvdisplay" will answer questions. Once you see the information, you have to count the physical extents. pvdisplay shows the status of every physical extent in the volume group. The heading of the pvdisplay command (or else the vgdisplay for the appropriate volume group) shows the extent size. You count the number of free extents, multiply extent size, and there's the amount free. Count the number of extents in use (it will show something like "lvol2") and do the calculation.
As far as determining which are external, I don't know of a programmatic way. It depends on the hardware path. Each type of server has certain built-in bus paths. Disks on those busses should be internal drives (unless it's a bus with an adapter on that's externally exposed, such as a D or K class, and you've hung a disk/array off it).
HTH.
Mic
What kind of a name is 'Wolverine'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2004 04:35 PM
тАО01-20-2004 04:35 PM
Re: HP -ux command
I am not sure if bdf command serve your need. It gives the following info:
Filesystem kbytes used avail %used Mounted on
sks
Filesystem kbytes used avail %used Mounted on
sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP