
UNSOLVED
Responses (6)
Solutions (0)
Rainer_EMC
6 Operator
•
8645 Posts
1517
0
Posted November 10th, 2010 13:00
You're Welcome
using the -query option and awk to sum it's actually not that difficult to figure out a one-liner that does that all
Reply gbarretoxx1
2 Intern
•
366 Posts
1517
0
Posted November 11th, 2010 11:00
Hi,
you are correct. Counting the inodes might not be accurated.
Just improving a little your command, if you want to see only the number of files, use this syntax :
find . -type f -ls|wc -l
Otherwise you are counting the directories also.
Example :
# find . -ls|wc -l
343
# find . -type f -ls|wc -l
320# find . -type d -ls|wc -l
23Gustavo Barreto.
Reply umichklewis_ac7b91
300 Posts
1517
0
Posted November 13th, 2010 05:00
I generate this information, too, but I just use my NDMP backup output in the server_log messages:
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 average file size: 688KB
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 dir or 0 size file processed: 11106
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 1B -- 8KB size file processed: 66224
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 8KB -- 16KB size file processed: 13619
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 16KB -- 32KB size file processed: 12023
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 32KB -- 64KB size file processed: 9306
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 64KB -- 1MB size file processed: 17831
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 1MB -- 32MB size file processed: 4664
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 32MB -- 1GB size file processed: 255
2010-11-12 22:17:56: NDMP: 4: Thread nasa00 1G more size file processed: 11
2010-11-12 22:17:56: NDMP: 6: Thread nasa00 server_archive: emctar vol 1, 135039 files, 0 bytes read, 95234795529 bytes writtenIf all you want is a total number of objects per filesystem, the last line is sufficient. Just grep for 'server_archive' as your NDMP backups run, and sum the file counts up. Hope this helps!
Karl
Reply Rainer_EMC
6 Operator
•
8645 Posts
1517
0
Posted November 14th, 2010 04:00
good idea
Reply

Rainer_EMC
6 Operator
•
8645 Posts
1517
1
Posted November 10th, 2010 11:00
do a server_df ALL and add up the numbers for in inodes used
or do the same from the GUI, select and export to csv and add it up in Excel