LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2020, 01:33 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 541

Rep: Reputation: 32
Unable to copy or open file due to EINVAL


I am experiencing two very strange problems on a VMware ESXi 6.0 shell which is based on Linux. I am a bit stumped on what to do here. Has anyone seen this before?

The problems are:
  1. The 'ls' command is expecting a file that should be there but is missing in its output. This is the error shown with "No such file or directory".
  2. Any 'cp' or 'less' commands would fail on the syscall 'open' with EINVAL despite the file being shown at the output of the 'ls' command. This is the large file with 53687091200 bytes.

Problem 1
Notice the following line in the output below.
Code:
rls: ./This is the filename.vmx: No such file or directory
Code:
[root@esxi6prim]ls -lt
rls: ./This is the filename.vmx: No such file or directory
total 52833288
-rwxr-xr-x    1 root     root          6781 Apr  4 04:34 This is the filename.sh
-rw-r--r--    1 root     root        270087 Mar 28 04:42 vmware.log
-rw-------    1 root     root          8684 Mar 28 04:42 This is the filename.nvram
-rw-------    1 root     root     53687091200 Feb 17 12:52 This is the filename-flat.vmdk
-rw-------    1 root     root           524 Nov 24 09:55 This is the filename.vmdk
-rw-r--r--    1 root     root     409599604 Nov 24 07:26 vmware-3.log
-rw-r--r--    1 root     root        177929 Oct 14  2015 vmware-2.log
-rw-r--r--    1 root     root        179092 Oct  9  2015 vmware-1.log
-rw-r--r--    1 root     root             0 Oct  4  2015 This is the filename.vmsd
Problem 2
Notice the following line in the output below.
Code:
open("This is the filename-flat.vmdk", O_RDONLY|O_LARGEFILE) = -1 EINVAL (Invalid argument)
Code:
[root@esxi6prim]strace less 'This is the filename-flat.vmdk'
execve("/bin/less", ["less", "This is the filename-fl"...], [/* 18 vars */]) = 0
[ Process PID=348326 runs in 32 bit mode. ]
brk(0)                                  = 0x1f000000
uname({sys="VMkernel", node="esxi6prim", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xff900764)          = -1 ENOENT (No such file or directory)
open("/lib/libncursesw.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\273\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=349963, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffffffffff901000
mmap2(NULL, 327364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x52b0000
mmap2(0x52fd000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4c) = 0x52fd000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\214\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=1638750, ...}) = 0
mmap2(NULL, 1452696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x5300000
mmap2(0x545d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0x545d000
mmap2(0x5460000, 10904, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x5460000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffffffffff902000
set_thread_area(0xff900bd0)             = 0
mprotect(0x545d000, 8192, PROT_READ)    = 0
mprotect(0x8089000, 4096, PROT_READ)    = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost isig icanon echo ...}) = 0
brk(0)                                  = 0x1f000000
brk(0x1f021000)                         = 0x1f021000
stat64("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
access("/usr/share/terminfo/x/xterm", R_OK) = 0
open("/usr/share/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=3270, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffffffffff903000
read(3, "\32\0010\0&\0\17\0\235\1l\5xterm|xterm terminal"..., 131072) = 3270
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0xff903000, 131072)              = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=87, ws_col=144, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(2, TIOCGWINSZ, {ws_row=87, ws_col=144, ws_xpixel=0, ws_ypixel=0}) = 0
open("/bin/.sysless", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/etc/sysless", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("//.less", O_RDONLY|O_LARGEFILE)   = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=6835808, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x76475000
mmap2(NULL, 1175552, PROT_READ, MAP_PRIVATE, 3, 0x1b5) = 0x76675000
close(3)                                = 0
open("//.lesshst", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/dev/tty", O_RDONLY|O_LARGEFILE)  = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost isig icanon echo ...}) = 0
fsync(3)                                = -1 EINVAL (Invalid argument)
ioctl(3, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigaction(SIGINT, {0x805dadc, [INT], SA_RESTORER|SA_RESTART, 0x532cd78}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x805db19, [TSTP], SA_RESTORER|SA_RESTART, 0x532cd78}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x805db51, [WINCH], SA_RESTORER|SA_RESTART, 0x532cd78}, {SIG_DFL, [WINCH], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [QUIT], SA_RESTORER|SA_RESTART, 0x532cd78}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
stat64("This is the filename-flat.vmdk", {st_mode=S_IFREG|0600, st_size=53687091200, ...}) = 0
stat64("This is the filename-flat.vmdk", {st_mode=S_IFREG|0600, st_size=53687091200, ...}) = 0
open("This is the filename-flat.vmdk", O_RDONLY|O_LARGEFILE) = -1 EINVAL (Invalid argument)
open("/usr/share/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "This\\ is\\ the\\ file"..., 62This\ is\ the\ filename-flat.vmdk: Invalid argument
) = 62
fsync(3)                                = -1 EINVAL (Invalid argument)
ioctl(3, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost isig icanon echo ...}) = 0
exit_group(1)                           = ?

Last edited by grob115; 04-04-2020 at 01:36 AM.
 
Old 04-04-2020, 02:04 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,948

Rep: Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279Reputation: 5279
What kind of filesystem is it? Probably the file is just too big to handle.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error while calling capget function (EINVAL) cruiser Linux - Newbie 1 04-29-2011 10:08 AM
[SOLVED] bind() returns EINVAL with PF_INET socket hda7 Linux - Networking 2 04-12-2010 01:09 PM
simple mmap() call failed with EINVAL on Redhat EL 3 update 9 modemer Programming 3 03-13-2009 02:37 PM
sem_wait() fails with EINVAL after working OK - can semaphores become invalid? hippopotamist Programming 2 08-04-2008 09:16 AM
poll returns errno 22, EINVAL mallport Programming 5 08-21-2006 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration