Friday 31 August 2012

NetApp Maxfiles

Maxfiles
  1. Using maxfiles command we can increase the number of inodes in the respective volume, so that we create additional files.
  2. We may not decrease the inode value because you might not be able to run WAFL_check.
  3. One  file is one inodes

The below examples show how to inodes increase:

STEP :1

fas3070> aggr create aggr1 10

Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.24 Shelf 1 Bay 8 [NETAPP VD-100MB 0042] S/N [50125907] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.36 Shelf 2 Bay 4 [NETAPP VD-100MB 0042] S/N [50130017] to aggregate aggr1 has completed successfully
Creation of an aggregate with 10 disks has completed.
fas3070> Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.22 Shelf 1 Bay 6 [NETAPP VD-100MB 0042] S/N [50125906] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.35 Shelf 2 Bay 3 [NETAPP VD-100MB 0042] S/N [50130016] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.21 Shelf 1 Bay 5 [NETAPP VD-100MB 0042] S/N [50125905] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.34 Shelf 2 Bay 2 [NETAPP VD-100MB 0042] S/N [50130015] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.20 Shelf 1 Bay 4 [NETAPP VD-100MB 0042] S/N [50125904] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.33 Shelf 2 Bay 1 [NETAPP VD-100MB 0042] S/N [50130014] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.19 Shelf 1 Bay 3 [NETAPP VD-100MB 0042] S/N [50125903] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:16 GMT [raid.vol.disk.add.done:notice]: Addition of Disk /aggr1/plex0/rg0/v4.32 Shelf 2 Bay 0 [NETAPP VD-100MB 0042] S/N [50125913] to aggregate aggr1 has completed successfully
Fri Aug 31 06:29:17 GMT [wafl.vol.add:notice]: Aggregate aggr1 has been added to the system.
fas3070> Fri Aug 31 06:29:20 GMT [nbt.nbns.registrationComplete:info]: NBT: All CIFS name registrations have completed for the local server.

STEP:2

CREATE THE NEW VOLUME FOR 100MB


fas3070>
fas3070> vol create vol1 aggr1 1.2g
Creation of volume 'vol1' with size 1.2g on containing aggregate
'aggr1' has completed.
fas3070>

STEP:3

CHECK THE VOL1 & VOL1 INODE VALUE

fas3070> maxfiles
Volume vol0: maximum number of files is currently 19990 (6096 used)
Volume vol1: maximum number of files is currently 322,122547 (52870 used)
fas3070>

STEP:4

NOW THE CHECK THE USED AND FREE INODE OF VOL1


fas3070> df -i /vol/vol1 
Filesystem         iused               ifree                 %iused           Mounted on  
/vol/vol0           52870         322,122547           97%               /vol/vol0 
fas3070> 

STEP:5

INCREASING THE INODE VAULE 3033 TO 5000

fas3070> maxfiles vol1 422,122547
The new maximum number of files specified is more than twice as big as it needs to be, based on current usage patterns. Increasing the maximum number of files consumes disk space, and the number can never
be decreased. Configuring a large number of inodes can also result in less available memory after an upgrade, which means you might not be able to run WAFL_check.

The new maximum number of files will be rounded to 422,122540.

Are you sure you want to increase the maximum number of files? y
fas3070>

fas3070> maxfiles
Volume vol0: maximum number of files is currently 19990 (6154 used).
Volume vol1: maximum number of files is currently 422,122540 (52870used).
fas3070>

NOW THE INODE VALUE IS 4988 AT MAXIMUM OF VOLUME1

FINISHED


Please write your valuable comments, about my blogspot.

6 comments:

  1. and what happens if you change the max number to a value that's much too high?

    ReplyDelete
    Replies
    1. Hi Dude,

      For example, you having 500g volume size, but there is less inodes means you cannot used the free size, so that time we need to increase the maxfiles...

      fyi: all the files will save in inode or block..

      Delete
  2. Hi Suresh,

    What is the relation between maxfiles (for inode) and maxdirsize (We can get maxdirsize from comment vol option ) .

    Appreciate your response!!!

    Tnx

    ReplyDelete
    Replies
    1. maxfiles for inode or file and
      maxdirsize for maximum directory in the volume..

      Delete
    2. Hi suresh,

      maxdirsize is for :Max number of files in a directory or Max number of directory in a volume.

      can you please explain a bit more about maxdirsize?

      Appreciate your response!!!

      Tnx

      Delete
  3. Before increasing the inodes files, is there anything we have to check or follow any procedure.... if we increase indoes files directly is there any issues?

    ReplyDelete