Sponsored Content
Operating Systems Linux Can't hanlde files in certain directories Post 302950718 by black_fender on Tuesday 28th of July 2015 07:48:07 AM
Old 07-28-2015
Quote:
Originally Posted by Peasant
Does find returns results ?
Code:
find /cpc_uat -type f

ls should return results, but when you have large number of files it will be slow.
3000 files is not a big number, so that should work fairly fast. I suspect a much higher number of files in specified directories.
Hi Peasant!

Thanks for the reply. it was a typo, I ment 28349. That;s the number of inodes used on that FS. I tried your command and it also got stuck. But I think it was a FS problem, because I umounted it and checked it with fsck and it found some errors:
Code:
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1474610, i_size is 9835956, should be 9842688.  FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1474610, i_blocks is 19296, should be 19256.  FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1770350, i_size is 9835956, should be 9842688.  FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1770350, i_blocks is 19264, should be 19256.  FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1771268, i_size is 1170832887, should be 1170841600.  FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 3016246, i_size is 1733108917, should be 1733115904.  FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 3016246, i_blocks is 3388352, should be 3388312.  FIXED.

After this I mounted back the FS and everything worked.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

mget * (obtein files from current directory but not the files form sub-directories)

Hello, Using the instruction mget (within ftp) and with "Interactive mode off", I want to get all files from directory (DirAA), but not the files in sub-directories. The files names don't follow any defined rule, so they can be just letters without (.) period Directory structure example: ... (0 Replies)
Discussion started by: Peter321
0 Replies

2. Shell Programming and Scripting

compare files in two directories and output changed files to third directory

I have searched about 30 threads, a load of Google pages and cannot find what I am looking for. I have some of the parts but not the whole. I cannot seem to get the puzzle fit together. I have three folders, two of which contain different versions of multiple files, dist/file1.php dist/file2.php... (4 Replies)
Discussion started by: bkeep
4 Replies

3. UNIX for Dummies Questions & Answers

List directories and sub directories recursively excluding files

Hi, Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process. I wanted to disply using a unix command all the directories recursively excluding files. I tried 'ls -FR' but that display files as... (3 Replies)
Discussion started by: pointers
3 Replies

4. Shell Programming and Scripting

How to store files/directories in different directories!!

Hi legends, I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types. for example in a directory(anish). 5 different types files 1- directory 2- .txt files 2- .sh... (1 Reply)
Discussion started by: anishkumarv
1 Replies

5. Shell Programming and Scripting

How to access files from different directories and to perform search action in those files?

Hi, I want to access files from different directories (for example: /home/dir1/file1 , /home/dir2/file2 ...) Like this i have to access these files(file1, file2...). (3 Replies)
Discussion started by: bangarukannan
3 Replies

6. Shell Programming and Scripting

How to list all the files, directories and sub-directories in the current path except one directory?

Can anyone come up with a unix command that lists all the files, directories and sub-directories in the current directory except a folder called log.? Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies

7. Shell Programming and Scripting

Rename the files in all the directories and sub-directories

Hi all, I have more than 12000 files in 46 different directories and each directory has 2 sub-directories named “dat” or “gridded”. Dat sub-directories have files with extension “jpg.dat” and gridded sub-directories have files with extension “.jpg”. I need to... (1 Reply)
Discussion started by: AshwaniSharma09
1 Replies

8. UNIX for Advanced & Expert Users

Find all files in the current directory excluding hidden files and directories

Find all files in the current directory only excluding hidden directories and files. For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided. `find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies

9. Shell Programming and Scripting

Archiving and moving files into directories, creating directories, etc.

how can i move "dataName".sql.gz into a folder called 'database' and then move "$fileName".tar.gz * .htaccess into a folder called 'www' with the entire gzipped file being "$fileName".tar.gz? Is this doable or overly complex. so mydemo--2015-03-23-1500.tar.gz > database -... (5 Replies)
Discussion started by: wyclef
5 Replies
THIN_REPAIR(8)						      System Manager's Manual						    THIN_REPAIR(8)

NAME
thin_repair - repair thin provisioning binary metadata from device/file to device/file SYNOPSIS
thin_repair [options] -i {device|file} -o {device|file} DESCRIPTION
thin_repair reads binary thin provisioning metadata created by the respective device-mapper target from one device or file , repairs it and writes it to another device or file. If written to a metadata device , the metadata can be processed by the device-mapper target. -i, --input {device|file} Input file or device with binary metadata. -o, --output {device|file} Output file or device for repaired binary metadata. -h, --help Print help and exit. -V, --version Output version information and exit. EXAMPLE
Reads the binary thin provisioning metadata from file metadata , repairs it and writes it to logical volume /dev/vg/metadata for further processing by the respective device-mapper target: thin_repair -i metadata -o /dev/vg/metadata DIAGNOSTICS
thin_repair returns an exit code of 0 for success or 1 for error. SEE ALSO
thin_dump(8) thin_check(8) thin_restore(8) thin_rmap(8) thin_metadata_size(8) AUTHOR
Joe Thornber <ejt@redhat.com> Heinz Mauelshagen <HeinzM@RedHat.com> Red Hat, Inc. Thin Provisioning Tools THIN_REPAIR(8)
All times are GMT -4. The time now is 11:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy