nikam1

updated

17 years ago

N

nikam1

51 Posts

0

1141

November 2nd, 2009 13:00

how to find the space utilized by each datamover?

Want to know the space utilized by each datamover. Thank you..
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    541

    0

    Posted November 3rd, 2009 07:00

    for just the file systems this should do the trick

    nas_fs -query:ServersNumeric==1:type==uxfs -format:'%s\n' -fields:Size | gawk '{a=a+$1}END{print a}'

    check with nas_fs -l and something like that this that you arent missing one
    nas_fs -query:inuse==y -format:'%s %s %s \n' -fields:ServersNumeric,Name,Size

    Note that this is for server_2 (Id=1) - if you use VDMs (nas_server -l) you have to adjust
    It also doesnt count savvols
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    450

    0

    Posted November 2nd, 2009 13:00

    so combined capacity of all file systems on specific datamover ? space provisioned or used ?
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    341

    0

    Posted November 3rd, 2009 01:00

    How about server_df server_X ?

    or just use nas_fs
  • nikam1

    51 Posts

    450

    0

    Posted November 3rd, 2009 05:00

    I am looking for combined capacity of all file systems on a specific datamover.
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    450

    0

    Posted November 3rd, 2009 05:00

    have you played around with output from server_df server_X ? Are you familiar with awk, grep ?
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    453

    0

    Posted November 3rd, 2009 06:00

    server_df server_2 | awk '{print $2}' should give you the second column that contains file system size.
  • nikam1

    51 Posts

    450

    0

    Posted November 3rd, 2009 06:00

    yeah.. i was working to write a script. few filesystems are displaying two lines. So thats where i am facing the problem with grep/awk.
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    450

    0

    Posted November 3rd, 2009 07:00

    i know, i use "grep -v" to take those out.
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    243

    0

    Posted November 3rd, 2009 07:00

    unless you are using the default checkpoint names _ckpt I dont see a way to determine from server_df output if its a file system or a ckpt
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    243

    0

    Posted November 3rd, 2009 07:00

    i use default so i "grep -v ckpt " to take those out.