Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 158695 - partprobe using deprecated SCSI ioctl
Summary: partprobe using deprecated SCSI ioctl
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: parted
Version: 4.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Chris Lumens
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-24 21:52 UTC by Eric Bursley
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-09-23 15:16:40 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Eric Bursley 2005-05-24 21:52:39 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Description of problem:
After creating new partitions, I ran parted to have the kernel rescan the partitions so that I could create PV and import them into a Volume Group.  I received the following errors:
program partprobe is using a deprecated SCSI ioctl, please convert it to SG_IO
program partprobe is using a deprecated SCSI ioctl, please convert it to SG_IO

In addition, I am not able to execute any commands after that.  I receive the following errors:
[root@ref2850 ~]# which parted
-bash: /usr/bin/which: cannot execute binary file
[root@ref2850 ~]# reboot
-bash: /sbin/reboot: cannot execute binary file
[root@ref2850 ~]# sysreport
-bash: /usr/sbin/sysreport: cannot execute binary file

I have to hard reboot the server.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Partition new lun on server
2. run partprobe to rescan new partitions

Actual Results:  system was very flakey, and needed a hard reboot to resolve problems

Expected Results:  new partitions became available for use.  System stability is normal

Additional info:

I can submit a sysreport when this bug is assigned

Comment 1 Chris Lumens 2005-05-25 15:28:56 UTC
Where are you getting partprobe from?  I don't see it anywhere on the system
until after the parted package has been installed.

Comment 2 Eric Bursley 2005-05-25 15:45:14 UTC
Partprobe is a componet of the parted package.  
[eric@B8ZHF01 ~]$ rpm -qi parted
Name        : parted                       Relocations: (not relocatable)
Version     : 1.6.19                            Vendor: Red Hat, Inc.
Release     : 1.EL                          Build Date: Tue 30 Nov 2004 04:55:05
Install Date: Mon 14 Mar 2005 10:50:15 AM CST      Build Host:
Group       : Applications/System           Source RPM: parted-1.6.19-1.EL.src.rpm
Size        : 1238283                          License: GPL
Signature   : DSA/SHA1, Wed 05 Jan 2005 04:52:16 PM CST, Key ID 219180cddb42a60e
Packager    : Red Hat, Inc. <>
Summary     : The GNU disk partition manipulation program.
Description :
The GNU Parted program allows you to create, destroy, resize, move,
and copy hard disk partitions. Parted can be used for creating space
for new operating systems, reorganizing disk usage, and copying data

[eric@B8ZHF01 ~]$ rpm -ql parted

Comment 3 Chris Lumens 2005-05-26 15:54:26 UTC
Oh yes, I thought you were originally saying you were using partprobe from
within the installation system, hence my question.  I don't believe the
deprecated ioctl message could be causing the other problems you're
experiencing.  What are the exact steps you're taking that are leading up to the

Comment 4 Eric Bursley 2005-05-26 19:36:18 UTC
Here are the steps I used:
Installed RHEL 4 x86 on a PE 2850 server.  SELinux is disabled.
Update all packages to latest versions using RHN Satellite server.
Boot to new kernel 2.6.9-5.0.5.ELsmp
Install qla2xxx-V8.0.0.03-1dkms rpm for support of Qlogic 2360 HBAs
Install Powerpath 4.4.0-332
Present 2 Luns from CX700 Dell EMC array.
use fdisk to partition new luns.
Partitions do not appear in /dev, and I can not use mke2fs -j to put down file
system because device is not present.
run partprobe.  Partitions are detected, and I can use mke2fs -j to put down a
file system.  However I receive error messages from many other commands, as I
previously listed, and the system is now unstable, and needs to be hard booted.
This system is a test system, so I can pretty much do what ever is needed.

Comment 5 Karel Zak 2005-06-08 22:47:59 UTC
BTW, the util partprobe uses libparted where is almost all code of the parted.

Comment 6 Chris Lumens 2005-06-09 18:30:22 UTC
The deprecated ioctl warning is now taken care of in upstream CVS and can be
backported to a RHEL4 update if required.

I still don't think this is the real problem, however.  From your steps above,
my only question would be if there's a reason you are using fdisk to make the
new partitions instead of using parted itself.  Is there a difference if you use

Comment 7 Chris Lumens 2005-06-09 18:49:02 UTC
Additional thoughts - do the parted, sysreport, and reboot commands work before
you run fdisk or partprobe?  Can you run "file" on any of those commands and
report back what it says?  Which kernel are you booting?  Did you do an x86 or
x86_64 installation?  Do you somehow have binaries from both installed?  Can you
run the machine for a while before doing anything without it having problems, or
do they only start once you use partprobe?

Comment 8 Eric Bursley 2005-06-09 18:50:17 UTC
This problem was corrected with a newer version of Powerpath 4.4 beta, and
shouldn't be a problem once Powerpath 4.4 becomes gold.

Comment 9 Chris Lumens 2005-09-23 15:16:40 UTC
Closing due to information in comment #8.  Please reopen if you continue to see
this problem.

Note You need to log in before you can comment on or make changes to this bug.