Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2013-02-20T14:54:49Z by ezhong
SystemAdmin
SystemAdmin
2092 Posts
ACCEPTED ANSWER

Pinned topic Input/output error with command cp

‏2013-02-19T20:43:09Z |
Hi,

We have few users which have copy problem on directories, they can't copy or create new file anymore. On different directories and mount points. But root user can do it.
These mount points are NFS over GPFS mount.
No message in log files :
logimic@login temp$ ls -al
total 16
drwxr-xr-x 2 logimic CAOMIC 512 Feb 18 17:30 .
drwxr-xr-x 5 logimic CAOMIC 512 Feb 18 17:16 ..
-r--r--r-- 1 logimic CAOMIC 14602 Feb 19 14:57 Whatsnew.txt
logimic@login temp$ rm -f Whatsnew.txt
logimic@login temp$ ls -al
total 0
drwxr-xr-x 2 logimic CAOMIC 512 Feb 19 14:58 .
drwxr-xr-x 5 logimic CAOMIC 512 Feb 18 17:16 ..
logimic@login temp$ cp ../410/Whatsnew.txt .
cp: closing `./Whatsnew.txt': Input/output error
logimic@login temp$ ls -al
total 0
drwxr-xr-x 2 logimic CAOMIC 512 Feb 19 14:58 .
drwxr-xr-x 5 logimic CAOMIC 512 Feb 18 17:16 ..
-r--r--r-- 1 logimic CAOMIC 0 Feb 19 14:58 Whatsnew.txt
logimic@login temp$ cp ../410/Whatsnew.txt .
cp: cannot create regular file `./Whatsnew.txt': Permission denied
logimic@login temp$ ls -al
total 0
drwxr-xr-x 2 logimic CAOMIC 512 Feb 19 14:58 .
drwxr-xr-x 5 logimic CAOMIC 512 Feb 18 17:16 ..
-r--r--r-- 1 logimic CAOMIC 0 Feb 19 14:58 Whatsnew.txt

Now root :
root@login temp# ls -al
total 0
drwxr-xr-x 2 logimic CAOMIC 512 Feb 18 17:30 .
drwxr-xr-x 5 logimic CAOMIC 512 Feb 18 17:16 ..
-r--r--r-- 1 logimic CAOMIC 0 Feb 18 17:30 Whatsnew.txt
root@login temp# cp ../410/Whatsnew.txt .
root@login temp# ls -al
total 16
drwxr-xr-x 2 logimic CAOMIC 512 Feb 18 17:30 .
drwxr-xr-x 5 logimic CAOMIC 512 Feb 18 17:16 ..
-r--r--r-- 1 logimic CAOMIC 14602 Feb 19 14:57 Whatsnew.txt

Someone has idea ? FS problem ?
What I have to do ?
Thanks
Updated on 2013-02-20T14:54:49Z at 2013-02-20T14:54:49Z by ezhong
  • ezhong
    ezhong
    32 Posts
    ACCEPTED ANSWER

    Re: Input/output error with command cp

    ‏2013-02-20T14:54:49Z  in response to SystemAdmin
    I wonder where the I/O error come from.

    > cp: cannot create regular file `./Whatsnew.txt': Permission denied

    Do you have some kind of permission problem? Any quota problems?

    If the root user could cp sucessfully, it likely means that the FS is still good.