System Administration
Showing results for 
Search instead for 
Did you mean: 

Equivalent Commands in Linux compared to HP Unix

Go to solution
Frequent Advisor

Equivalent Commands in Linux compared to HP Unix

Dear All, Good day to you. I am starting off with Linux.I have FC [ lpe1105] installed on bl680c servers and these servers would be connected to the EMC Storage. Q1-> I need to know how to find whether the driver is installed for this card. Q2-> How do I find the disks that are in this box.
Is there a command like ioscan in Linux.
Is the lvm used in Red Hat Linux AS 5 the same as that online JFS in HP Unix.
Thanking you in advance.
Exalted Contributor

Re: Equivalent Commands in Linux compared to HP Unix


There is no command like ioscan in Linux.
hwbrowser is in Rhel 4.x

There is a gui hardware browser built into rhel 5.x

fdisk -l after install will show whether any preconfigured/presented disks are visible.

Most likely you will want to install PSP, after the OS.

There is no equivalent of fcmsutil from HP-UX to Linux.

hp_rescan does provide good information on shared storage on Linux.

hope this helps.

Steven E Protter
Owner of ISN Corporation
Honored Contributor

Re: Equivalent Commands in Linux compared to HP Unix

Q1 (Is the driver installed?)
The name of the main driver module for these cards is "lpfc". To see if it is loaded, type:

lsmod |grep lpfc

If it outputs nothing, the lpfc module is not loaded. The most likely reason for that is that it is not installed. (With any modern Linux distribution, modules for PCI/PCI-X/PCI Express cards are automatically loaded if they are available.)

Q2 (How to detect the disks?)
Linux does not have a single command that would be exactly like ioscan on HP-UX, but the equivalent information is certainly available.
To identify PCI cards and integrated devices, you can use the "lspci" command.
To see all the installed disks, there are various methods.

- to get a quick overview, read the virtual file /proc/partitions. It lists all the disks and partitions that are visible to the system at that exact moment.

- to get more in-depth information about EMC disks, you really should install the inquiry utility provided for free by EMC (named "inq" or "syminq"). It displays the EMC native disk identification numbers, making it easy to identify the disks.

Honored Contributor

Re: Equivalent Commands in Linux compared to HP Unix

To your question about LVM:
Linux LVM and HP-UX LVM are not the same, although the syntax of LVM manipulation commands is much the same.

OnlineJFS has nothing to do with LVM; it's a filesystem-level feature that allows the filesystem to be extended while it is mounted.

Linux supports many filesystems, and all the commonly-used ones have features that allow them be grown on-line. To shrink a filesystem, you must generally unmount it.

The ext3fs and its predecessor ext2fs can be resized by tools like "ext2resize" (while unmounted) or "ext2online" (online, but can only enlarge a filesystem).

The reiserfs has a tool called "resize_reiserfs" which can grow a Reiser filesystem on-line, but requires unmounting the filesystem for shrinking it.

For XFS, the tool is called xfs_growfs. It works only while the filesystem is mounted, and can only enlarge the filesystem.