1759122 Members
3422 Online
108879 Solutions
New Discussion юеВ

HP-UX and LINUX

 
SOLVED
Go to solution
Donald P.  Binnix
Occasional Contributor

HP-UX and LINUX

does anyone know of any commands in linux that could give you information like the output of
diskinfo in HP-UX? The best I could do was with the fdisk -l command but I was wondering if there may be other disk information commands in linux/fedora I may have missed.

In HP-UX 11.11
diskinfo -v /dev/rdsk/c3t6d0
SCSI describe of /dev/rdsk/c3t6d0:
vendor: FUJITSU
product id: MAJ3364MC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
rev level: HP12
blocks per disk: 71132960
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)20 (33)20 (34)20 (35)4b (36)4a (37)30 (38)31 (39)30 (40)32 (41)34 (42)35 (43)0 (44)0 (45)0 (46)0 (4 7)0 (48)0 (49)0 (50)0 (51)c (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69 )0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 )
#
# exit
logout root
Connection closed by foreign host.

Now in Fedora:
[root@bigbob ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 18 144553+ 83 Linux
/dev/sda2 19 3078 24579450 83 Linux
/dev/sda3 3079 4608 12289725 83 Linux
/dev/sda4 4609 19452 119234430 5 Extended
/dev/sda5 4609 19452 119234398+ 8e Linux LVM

Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 5102 40981783+ 83 Linux
/dev/sdb2 5103 19452 115266375 8e Linux LVM
5 REPLIES 5
Kodjo Agbenu
Honored Contributor
Solution

Re: HP-UX and LINUX

Hi Donald,

By using diagnosis tools provided by the hardware manufacturer, you will get the most detailed information.

For HP ProLiant servers, formerly "survey" utility was used. Currently, HP Diag (shipped on smartstart CD-ROM or downloadable with ProLiant Support Pack for Linux).

If you need a more "vendor independent" tool, I encourage you to download and try the excellent "lshw" utility :
http://freshmeat.net/redir/lshw/36588/url_homepage/lshw.html

Good lcuk.
Kodjo
Learn and explain...
Steven E. Protter
Exalted Contributor

Re: HP-UX and LINUX

Shalom,

There really is no equivalent command line tool.

The LVM gui can look at physical volumes and give you decent information, but this is not a report that can be easily emailed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: HP-UX and LINUX

You could get a little more information if you go to the /proc directory, /proc/scsi and /proc/ide.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
dirk dierickx
Honored Contributor

Re: HP-UX and LINUX

you'll find some stuff in /proc/scsi or whatever disks you're using.
Ryan Goh
Frequent Advisor

Re: HP-UX and LINUX

Command df -h to show free disk space.