Hi Christian,
This is the information you asked for. Yes, I now know how to get around
the problem, but if you wish to explain more of what is going on, I would
be glad for the info. Thanks either way!
uname -a
Linux king01 2.6.5-7.257-s390x #1 SMP Mon May 15 14:14:14 UTC 2006 s390x
s390x s390x GNU/Linux
strace vmcp q userid
execve("/usr/bin/vmcp", ["vmcp", "q", "userid"], [/* 55 vars */]) = 0
uname({sys="Linux", node="king01", ...}) = 0
brk(0) = 0x80003000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=94457, ...}) = 0
mmap(NULL, 94457, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2000001b000
close(3) = 0
open("/lib64/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\2\1\0\0\0\0\0\0\0\0\0\0\3\0\26\0\0\0\1\0\0\0"..., 640)
= 640
lseek(3, 624, SEEK_SET) = 624
read(3, "\0\0\0\4\0\0\0\20\0\0\0\1GNU\0\0\0\0\0\0\0\0\2\0\0\0\6"..., 32) =
32
fstat(3, {st_mode=S_IFREG|0755, st_size=1577693, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x20000033000
mmap(NULL, 1362384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0x20000034000
madvise(0x20000034000, 1362384, MADV_SEQUENTIAL|0x1) = 0
mmap(0x20000160000, 118784, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b000) = 0x20000160000
mmap(0x2000017d000, 14800, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2000017d000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x20000181000
munmap(0x2000001b000, 94457) = 0
brk(0) = 0x80003000
brk(0x80026000) = 0x80026000
open("/dev/vmcp", O_RDWR) = 3
ioctl(3, 0x40041002, 0x80002ac0) = -1 ENOTTY (Inappropriate ioctl
for device)
write(2, "Error: Could not set buffer size"..., 65Error: Could not set
buffer size: Inappropriate ioctl for device
) = 65
brk(0x80024000) = 0x80024000
close(3) = 0
exit_group(3) = ?
stat /dev/vmcp
File: `/dev/vmcp'
Size: 0 Blocks: 0 IO Block: 4096 character
special file
Device: 5e05h/24069d Inode: 53011 Links: 1 Device type: a,3e
Access: (0600/crw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2006-03-18 14:30:02.000000000 -0600
Modify: 2006-03-18 14:30:02.000000000 -0600
Change: 2006-04-01 16:23:39.000000000 -0600
cat /sys/class/misc/vmcp/dev
10:63
rpm -qv s390-tools
s390-tools-1.5.1-0.4
which vmcp
/usr/bin/vmcp
file /usr/bin/vmcp
/usr/bin/vmcp: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), for
GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped
tom
- - - - - - - - - - - -
Toto, I have a feeling we're not in the mainframe world any more.
_/) Tom Shilson
~~~~~ Unix Team / IT Server Services
Aloha Tel: 651-733-7591 tshilson at mmm dot com
Fax: 651-736-7689
Christian Borntraeger <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port <[email protected]>
06/14/2006 11:27 AM
Please respond to
Linux on 390 Port <[email protected]>
To
[email protected]
cc
Subject
Re: VMCP: Error: Could not set buffer size: Inappropriate ioctl for
device
On Wednesday 14 June 2006 17:53, Tom Shilson wrote:
> Hi all,
>
> I get this error with vmcp. /dev/vmcp exists. Modprobe lists the
vmcp.ko
> module. I am running SLES 9 SP3 under z/VM 5.2 on a z9. A quick Google
> search and a search of these archives were fruitless. I have tried it
> with various buffer sizes from min to max. This is s390-tools version
> 1.5.1.
Do you use the SUSE provided s390tools or a selfcompiled version?
To catch most of the possible reasons:
Can you post the output of
- uname -a
- strace vmcp q userid
- stat /dev/vmcp
- cat /sys/class/misc/vmcp/dev
- rpm -qv s390-tools
- which vmcp
- file /usr/bin/vmcp
Thanks
Christian
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390