Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

900

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

8.6K Posts

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

1 Rookie

 • 

20.4K Posts

November 2nd, 2009 13:00

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

8.6K Posts

November 3rd, 2009 01:00

How about server_df server_X ?

or just use nas_fs

51 Posts

November 3rd, 2009 05:00

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

1 Rookie

 • 

20.4K Posts

November 3rd, 2009 05:00

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

1 Rookie

 • 

20.4K Posts

November 3rd, 2009 06:00

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

51 Posts

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.

1 Rookie

 • 

20.4K Posts

November 3rd, 2009 07:00

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

8.6K Posts

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

1 Rookie

 • 

20.4K Posts

November 3rd, 2009 07:00

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

8.6K Posts

November 3rd, 2009 07:00

well - that also includes mounted checkpoints and since their size is reporting as the size of the PFS when they were taken the number would be off ....

51 Posts

November 3rd, 2009 08:00

Great. it helps. Thank you very much Rainer.
No Events found!

Top