Start a Conversation

Unsolved

This post is more than 5 years old

2630

November 10th, 2010 11:00

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

8.6K Posts

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

2 Posts

November 10th, 2010 12:00

Thanks,   That did work, a bit tedious but it gave me what I needed.  appreciate it.

-jim

8.6K Posts

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

5 Practitioner

 • 

274.2K Posts

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.

366 Posts

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.

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

8.6K Posts

November 14th, 2010 04:00

good idea

No Events found!

Top