UNSOLVED

YBJim

updated

16 years ago

Y

YBJim

2 Posts

0

2694

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

  • 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

  • YBJim

    2 Posts

    1517

    0

    Posted November 10th, 2010 12:00

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

    -jim

  • 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

  • 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
    23

    Gustavo Barreto.

  • 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 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

    6 Operator

    •

    8645 Posts

    1517

    0

    Posted November 14th, 2010 04:00

    good idea