Unsolved
This post is more than 5 years old
2 Posts
0
2630
Total file count on Celerra
Hello,
I was asked for the total files/object count on our celerra. What is the best way to generate this information, if at all?
Thanks
-Jim
Unsolved
This post is more than 5 years old
2 Posts
0
2630
Hello,
I was asked for the total files/object count on our celerra. What is the best way to generate this information, if at all?
Thanks
-Jim
Top
Rainer_EMC
8.6K Posts
1
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
YBJim
2 Posts
0
November 10th, 2010 12:00
Thanks, That did work, a bit tedious but it gave me what I needed. appreciate it.
-jim
Rainer_EMC
8.6K Posts
0
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
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
November 11th, 2010 08:00
You might also use the linux command by cd /nas/rootfs/slot_x/ . Path may vary if presented on a VDM.
find . -ls|wc -l
This should provide files and directory count. thyis will be more accurte as a single file may have multiple inodes.
Inodes are also use for symbolic links and this may skew the actual object count.
gbarretoxx1
366 Posts
0
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
23
Gustavo Barreto.
umichklewis_ac7b91
300 Posts
0
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 written
If 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
Rainer_EMC
8.6K Posts
0
November 14th, 2010 04:00
good idea