疑难杂症,向大神们求解,如何删除这个大目录及其文件.
AIX 5.3下挂载了命名为gpfsjk1的GPFS文件系统,在该文件系统下由于生产数据原因输出到目录/gpfsjk1/xxx/20130123/backup_20121130有非常多的碎文件,导致目录太大,无论使用find、ls、rm等命令都无法执行,以下是该文件系统和目录的信息.
istat /gpfsjk1/xxx/20130123/backup_20121130
Inode 21916572 on device 2/153 Directory
Protection: rwxrwxrwx
Owner: 300(devis) Group: 300(devis)
Link count: 2 Length 2354896896 bytes
Last updated: 公元2013年03月09日 星期六 22时02分14秒
Last modified: 公元2013年03月09日 星期六 22时02分14秒
Last accessed: 公元2013年03月13日 星期三 12时16分37秒
/dev/gpfsjk1 2306867200 210233600 91% 64845525 31% /gpfsjk1
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/gpfsjk1 - /gpfsjk1 mmfs -- rw,mtime,atime,dev=gpfsjk1 no no
系统命令因目录太大无法执行的报错信息
$ rm -rf backup_20121130
rm: cannot read backup_20121130
$ cd backup_20121130
$ find . | head
find: cannot open .
$ ls
ls: .: Value too large to be stored in data type
谢谢7#的xiao8577034,新增尝试使用FTP登录显示的报错如下:
ftp> cd /gpfsjk1/xxx/20130123/backup_20121130
250 CWD command successful.
ftp> ls
200 PORT command successful.
550 No files found.
ftp> dir
200 PORT command successful.
150 Opening data connection for /bin/ls.
total 0
226 Transfer complete.
ftp> rmdir backup_20121130
550 backup_20121130: Do not specify an existing file.
ftp> rmdir ./backup_20121130
550 ./backup_20121130: Do not specify an existing file.
ftp> dir
200 PORT command successful.
150 Opening data connection for /bin/ls.
total 4599408
drwxrwxrwx 2 devis devis 2354896896 Mar 09 22:02 backup_20121130
收起