Commit graph

421 commits

Author SHA1 Message Date
Gabriel Krisman Bertazi
96f6daba00 iprutils: This patch removes some hardcoded paths that assumed the iprutils binaries where in /sbin.
We replace every hardcoded path with an autotools variable @sbindir@
that is replaced at build time by the correct installation path.

This was tested on SLES and RHEL.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-13 15:48:06 -05:00
Gabriel Krisman Bertazi
792e66ac08 iprutils: Fix specfile for distros using init scripts.
Spec file had a bug where it would fail to package and install on
systems that don't have systemd, i.e. those who still use init scripts.
This patch applies a fix that verifies whether we are using systemd or
init files before installing the correct daemon starter.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-13 15:48:03 -05:00
Gabriel Krisman Bertazi
aba9eb466b iprutils: Add ncurses path to headers directories search.
Some distros install ncurses headers in an unconventional path and this
stops autotools from automatically including them.  This patch uses the
ncurses5-config script to discover the correct path to ncurses.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-13 15:47:57 -05:00
Brian King
22133b0783 iprutils: Don't retry if ipr driver not loaded
Since we enhanced the retry logic for tool_init, it had the side
effect of adding a delay for iprutils when run if the ipr driver is
not loaded. Revert this behavior so we don't sit and sleep for an
extended period of time on systems with no ipr.

Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-13 15:10:02 -05:00
Daniel Kreling
8c080d887d iprutils: fixing daemons being stopped
This patch fixes an issue when the ipr daemons are stopped when
tool_init() function is called on iprlib.c. When failing to open
scsi_host class or read the scsi device model, the function called
exit_on_error(), which killed the daemons in the process. This patch
changes it to warning messages while performs 4 attempts to open
scsi_host class or read the scsi device model.

Signed-off-by: Daniel Kreling <kreling@linux.vnet.ibm.com>
Reviewed-by: Gabriel K. Bertazi <krisman@linux.vnet.ibm.com>
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-13 15:02:05 -05:00
Wen Xiong
46410f8ed1 iprutils: Add prerequisite check for creating easy tier array
The patch adds more checks when trying to create easy tier array.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-12 09:12:22 -05:00
Wen Xiong
02b52db0cb iprutils: "RAID level" box is empty when creating the array
When customers try to create the array, the box for displaying "create
RAID level" is empty. The patch fixes the issue.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-12 09:11:43 -05:00
Gabriel Krisman Bertazi
e4bbe15ba9 Reenable build and installation of iprsos script.
Commit 2f183e5 introduced the script iprsos, but the latter commit
dd58951, which inserts autotools, won't install it.  This patch adds
iprsos and iprsos.8 to the makefile.am, so autotools can correctly build
and install iprsos.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-06 09:37:08 -06:00
Brian King
33e6bde7fa iprutils: Fixup FRU and PN swap in iprconfig
The FRU and part number were being displayed swapped in the
disk unit details screen. This fixes this up.

Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
2015-03-06 09:16:50 -06:00
Gabriel Krisman Bertazi
16091fd4b7 Remove old Makefile build system.
This patch removes the old building system.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-03-05 15:08:49 -06:00
Gabriel Krisman Bertazi
8f3500f717 Update RPM spec file to use Autotools.
This commit adapts the spec to use the autotools build system.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-03-05 11:51:10 -06:00
Gabriel Krisman Bertazi
2f87d71d04 This updates documentation on how to build iprutils using Autotools.
Update documentation.  Include information on how to build and install
using autotools.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-03-05 11:51:08 -06:00
Gabriel Krisman Bertazi
dd589511af iprutils: Add support for Autotools build system.
This commit adds support to build iprutils using GNU Autools.  It
replaces the old Makefile and version.mk file with Automake.  Now, the
version information is available at the configure.ac file.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-03-05 11:50:02 -06:00
Daniel Kreling
2f183e53f3 iprutils: implementing "dump" command
This patch implements 'iprconfig -c dump' command which creates an sos-report
like file with log information about the adapters and the environment. It also
introduces a bash script "iprsos" that triggers the new command and creates
the log file at /var/log/iprsos.log

Signed-off-by: Daniel Kreling <kreling@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-03-05 10:57:59 -06:00
Brian King
6223ba13cd iprutils: Support saved device attributes for SIS-64 adapters
Improve support for saving device attributes such as queue depth
on SIS-64 adapters by fixing the attribute binding algorithm
to bind to the device_id value, which is immutable.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-02-26 15:46:44 -06:00
root
9b09ce4ae1 iprutils: Add one more reason for the fauliure when adding device to an array
When trying to add devices to a disks array, it failed. Added one more
reason for the failure. New adapters doesn't support this function.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2015-01-27 08:53:32 -06:00
Brian King
28faced0ea iprutils: Make query-device return device on primary adapter
The query-device iprconfig command currently returns the first
device found. Change to return the device under the primary adapter
if in a dual adapter configuration.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-01-16 16:34:36 -06:00
Daniel Kreling
86c5cbd0d5 iprutils: clarifying man page for iprdump utility
This patch clarifies the documentation about the behavior of ipdump
utility when it is directly run by the user.

Signed-off-by: Daniel Kreling <kreling@linux.vnet.ibm.com>
2014-11-18 14:29:19 -02:00
Wen Xiong
5b1162b330 iprutils: Bump up iprutils version to 2.4.5
This patch moves up iprutils verison to 2.4.5

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-11-07 15:32:35 -06:00
Wen Xiong
ac2a0a94cf iprutils: Add the known zeroed devices to zeroed device list
Add the known zeroed devices to zeroed device list via mode select
for all AF DASD.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-11-07 15:18:09 -06:00
Wen Xiong
2b1d457590 iprutils: Set known zeroed after format
Ensure the known zeroed state gets set via mode select for
all AF DASD after they have been formatted to speed up array
creation.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2014-11-07 15:08:00 -06:00
Wen xiong
1f8d84be5f iprutils: Raid migration fais on LE systems
Raid Migrations between RAID level fals on LE systems. This patch
fixes the issue.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-09-12 20:03:39 -05:00
Wen xiong
9c087348af iprutils: Bump up iprutils version to 2.4.4
This patch moves up iprutils verison to 2.4.4

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-09-08 12:37:08 -05:00
Wen xiong
f049831481 iprutils: Change the format of firmware files to be case insensitive.
The patch makes sure the format of firmware to be case insensitive.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-09-03 17:11:45 -05:00
Wen xiong
46707a8d57 iprutils: Can't find firmware file if firmware format is pci.xxx format
Customer uses iprconifg GUI interface to update adapter firmware.
If firmware format in /lib/firmware is pci.xxx, iprconfig can't find
firmware file. This patch fixes the issue.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-09-03 11:45:33 -05:00
Wen xiong
fdd892a38b iprutils: Add support to report Cache hit
The patch is to verify the cache hit on the SAS disk drive.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
Signed-off-by: Mutali Lyer<mniyer@us.ibm.com>
2014-09-02 15:02:18 -05:00
Wen xiong
53ffc8b521 iprutils: Bump iprutils version to 2.4.3
This patch moves up iprutils version to 2.4.3

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-09-02 10:26:54 -05:00
Wen xiong
aff3d253e4 iprutils: Add DVD/Tape support in display hardware status menu
This patch addes DVD/Tape support in iprconfig->display hardware start menu.

signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-09-02 10:17:17 -05:00
Daniel Kreling
9e1649d298 iprutils: Allow systemd daemons to be activated later during boot
This patch prevents tool_init to stop when there is no scsi host
on ipr device, thus allowing the ipr daemons to start later during
boot process.

signed-off-by: Daniel Kreling <dbkreling@linux.vnet.ibm.com>
2014-08-21 15:57:29 -03:00
Wen xiong
73f670b806 iprutils: Add code for supporting DVD/Tape hotplug
This patch adds feature to support DVD/Tape hotplug.

signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-08-07 10:40:16 -05:00
Wen xiong
a2cfbf4d34 iprutils: Capacity is not reported for JBOD disk greater than 2TB
This patch fixes the issue about capacity is not reported for Jbod drivers
greater than 2TB in iprconifg.

signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-08-07 10:30:42 -05:00
Wen xiong
482529f5d4 iprutils: Read Intensive SSDs are not showed up in iprconfig
RI SSDs are not showed up in iprconfig. This patch adds Read Intensive SSD
support in iprconfig.

signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-08-07 10:16:30 -05:00
Wen Xiong
ed25e2a520 iprutils: on PowerNV, some of IOAs showed the wrong physical location
With iprutils 2.4.2 in PowerNV system, sometime some of IOAs still showed
the wrong phyiscal location. This patch fixes the issue.

signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-07-23 15:55:16 -05:00
Wen Xiong
d70af62b5b iprutils: Segmentation fault when calling concurrent add/remove GUI
The patch fixes segmentation fault when calling concurrent add/remove GUI
and wrong IOA physical location code in PowerNV environemnt.

signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-07-16 19:54:26 -05:00
Wen Xiong
eaa49e68b0 iprutils: Bump version to 2.4.2
Move up iprutils version to 2.4.2

signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-06-10 14:47:22 -05:00
Kleber Sacilotto de Souza
07e991cd54 iprutils: fix blank space on array member strings
When an array member has non-4K disks, the interface prints an extra
blank space on the device description. This patch fixes this issue,
making the final string have only one blank space between the
substrings.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2014-06-05 15:11:59 -03:00
Wen Xiong
3c40dcf5a8 iprutils: Segmentation fault when rebuild an array with physica disks
When using command line to rebuild an array with physical disks, iprconfig
throws Segmentation fault. The patch fixes the issue.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2014-06-02 11:34:28 -05:00
Daniel Kreling
303a8823cc iprutils: implementing systemd support
iprutils daemon files (iprdump.service, iprinit.service and
iprupdate.service) were created and housed on systemd directory.
In the file system, they should be sent to /usr/lib/systemd/system.
iprutils.spec was adapted to support the changes and manage
those service files.

Signed-off-by: Daniel Kreling <kreling@imap.linux.ibm.com>
2014-05-02 13:25:58 -03:00
Kleber Sacilotto de Souza
430449b8dd iprutils: allow iprconfig to load sg module if it's not loaded
After commit 9692360 (iprutils: Eliminate libsysfs dependency) iprconfig
is terminated if the sg module is not loaded. This patch fixes this
issue by recoving the previous behavior, which is just log a debug
message and call modprobe to load the module.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2014-04-30 17:52:51 -03:00
Kleber Sacilotto de Souza
a53c66ea20 iprutils: Change message on Download Microcode screen
The 'Download Microcode' screen presents all the devices that are
eligible for microcode download, not only adapters.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2014-04-30 17:52:47 -03:00
Wen Xiong
df133ac250 iprutils: Couldn't create iprdump file
The patch fixes the two issues. One issue is not able to create iprdump file.
Another issue is the size of dump file is less than 64K. We need 80M iprdump
file.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2014-04-30 15:31:52 -05:00
Wen Xiong
e4d7595381 iprutils: iprconfig doesn't show "Redundant Paths" in dual configuration(LE)
The patch fixes the "Redundant Paths" issues in dual configuration in LE
environment.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com
2014-04-30 15:23:08 -05:00
Daniel Kreling
6a456f2a1f Revert " iprutils: adding systemd files and bumping version to 2.4.2"
This reverts commit f86797143e.
2014-04-30 16:42:02 -03:00
Daniel Kreling
f86797143e iprutils: adding systemd files and bumping version to 2.4.2
Criated iprinit.service, iprdump.service and iprupdate.service files to
provide support to distros using systemd instead of init.d. Also by doing
that, we're bumping to version 2.4.2.

    Signed-off by: Daniel Kreling <dkreling@imap.linux.ibm.com>
2014-04-30 14:42:51 -03:00
Daniel Kreling
82d4be5e51 iprutils: Adds three new CLI APIs: query-array, query-device, and query-location.
query-array: Takes as an argument a platform location code. If the disk
at that location is in a RAID array, the device name of the RAID array is
returned.

query-device: Takes as an argument a platform location code. Prints
the device name of the device at that location.

query-location: Takes as an argument a device name. If the device specified is
a
disk, prints the physical location of the disk. If the device specified is a
single disk RAID 0 array, prints the physical location of the sole device in
the RAID 0 array.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2014-04-22 16:50:03 -03:00
Wen Xiong
b6f78cc14e iprutils: Move up to iprutils 2.4.1
Move up iprutils version to 2.4.1.

Signed-off-by : Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-04-08 12:26:24 -05:00
Wen Xiong
7f6f533464 iprutils: revert back for commit id 37ec10
The patch reverts  back form coomit id 17ec10.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2014-04-08 12:15:30 -05:00
Wen Xiong
37ec104504 iprutils: fix device_id scanning on 32bit systems
scsi_dev_data->device_id is a u64, so should be scanned with %llX rather
than %lX.  On 32-bit big-endian systems I believe this will scan the
device_id into the wrong half of the 64-bit value.

Signed-off-by: Colin Watson <cjwatson@debian.org>
---
2014-04-03 10:48:25 -05:00
Wen Xiong
5290fcd330 ipruitls: Avoid bashisms
"command &> /dev/null" and "command >& /dev/null" are bashisms and will
fail on e.g. systems where /bin/sh is dash.  Use POSIX-compatible
alternatives.

Signed-off-by : Colin Watson <cjwatson@debian.org>
---
2014-04-03 10:33:28 -05:00
Wen Xiong
c565bc4a61 iprutils: Fixes to comply with hardened build flags by ubuntu and debian
On Ubuntu and Debian, the hardened build passes the following flags to the compilation
through env. variables.
Hence several formatting strings are mandatory. Also for that to work, the Makefile
needs to handle the env. variables.
$ dpkg-buildflags
CFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
CPPFLAGS=-D_FORTIFY_SOURCE=2
CXXFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
FFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4
GCJFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4
LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro

Signed-off-by: Frédéric Bonnard <frediz@linux.vnet.ibm.com>
2014-04-03 10:27:43 -05:00