mongo_copy: cp: cannot stat `/mnt/testfs/testdir0-0-0/f92': Input/output error
Something to add regarding the following errors from last night:
cp: cannot stat `/mnt/testfs/testdir0-0-0/f92': Input/output error
As part of my mongo benchmarking, I have added two steps before all other processing:
1. Create a large number of directories on the benchmark device. These are taken from a list of actual directories on my machine and are created under the mount point for the test device e.g. my /etc becomes /mnt/testfs/etc.
2. Create a large number of files on the test device. This is done using a modified version of one of the mongo_ programs. Each file is simply created by open(O_CREAT) then closed immediately. I can't tell you how many files are created right now because I'm in the middle of running an ext3 benchmark, but it is a large number of files, each zero length. No shipped mongo sources were changed, save mongo.pl (to include the new phases) and an added LOG statement so I can watch each iteration command execute.
I spend a long time last night retesting mongo runs with and without the MKDIRS and MKFILES phases to see if they had contributed to the errors, but could not find any relationship.
I hope this helps in some way.
David
Quoted 19 lines · David Dabbs
Something to add regarding the following errors from last night:
cp: cannot stat `/mnt/testfs/testdir0-0-0/f92': Input/output error
As part of my mongo benchmarking, I have added two steps before all other processing:
1. Create a large number of directories on the benchmark device. These are taken from a list of actual directories on my machine and are created under the mount point for the test device e.g. my /etc becomes
/mnt/testfs/etc.2. Create a large number of files on the test device. This is done using a modified version of one of the
mongo_programs. Each file is simply created byopen(O_CREAT)then closed immediately. I can't tell you how many files are created right now because I'm in the middle of running an ext3 benchmark, but it is a large number of files, each zero length. No shipped mongo sources were changed, save mongo.pl (to include the new phases) and an added LOG statement so I can watch each iteration command execute.
Quoted 17 lines
I spend a long time last night retesting mongo runs with and without the MKDIRS and MKFILES phases to see if they had contributed to the errors, but could not find any relationship.
I hope this helps in some way.
David
For us to reproduce, we need to have a script of some sort that exactly reproduces what you did.
It is especially significant to note such things as whether you might have run out of disk space, etc.
It makes a lot of sense that you did not run stock mongo, because elena runs that a lot and we likely would have hit the bug already if you had.
Quoted 9 lines
Quoted 3 lines
For us to reproduce, we need to have a script of some sort that exactly reproduces what you did.
It is especially significant to note such things as whether you might have run out of disk space, etc.
No, that was not the case. Because of that very issue, I just bought a larger drive so I could complete more extensive mongo runs. I would have known if the disk had filled. Last time I checked df during the later stages of a run it was reporting something like 12% in use.
Quoted 2 lines
It makes a lot of sense that you did not run stock mongo, because elena runs that a lot and we likely would have hit the bug already if you had.
Yes, except that I reran mongo without the MKFILES and MKDIRS phases, and as I mentioned in another post, with the exception for an extra print statement to track script progress, no changes were made to stock mongo sources.
If you believe it will help, I'll tar up my mongo directory and place on my web site. Will follow-up.
David