Skip to content

Category Archives: NetApp

Increasing Maximum Number of Files on a NetApp Flexvol

25-Sep-09

Use the “maxfiles” command to both query and increase the number of inodes in a FlexVol:

toaster> maxfiles svault01
Volume svault01: maximum number of files is currently 31876689 (30927298 used).
toaster> maxfiles svault01 40000000

Note that an increased maxfiles value can never be decreased, and increases in maxfiles has capacity and other implications. In ONTAP’s words:
Increasing the maximum [...]

Undoing A-SIS Deduplication

25-Mar-09

First, stop any running deduplication operations on the volume in question:
filer> sis stop /vol/vol1
Operation is currently idle: /vol/vol1
Next, disable A-SIS on the volume:
filer> sis off /vol/vol1
SIS for “/vol/vol1″ is disabled.
Finally, make the volume “fat” again:
filer> priv set advanced
Warning: These advanced commands are potentially dangerous; use
them only [...]

Configuring a FlexVol to grow automatically with “vol autosize”

28-Jan-09

FlexVol autogrowth is configured using the vol autosize command; example for filer “toaster” and volume /vol/vol3:
toaster> vol autosize vol3 -m 2t -i 20g on
To configure growth to happen before snapshot deletion, use the try_first option:
toaster> vol options vol3 try_first volume_grow
See also ONTAP autodelete settings for a FlexVol.

ONTAP autodelete settings for a FlexVol

28-Jan-09

Example session configuring autodelete settings for /vol/vol3 on filer “toaster”:
toaster> snap autodelete vol3 show
snapshot autodelete settings for vol3:
state : off
commitment [...]

Shell one-liner to parse NetApp user quota data

07-Jan-09

Assuming you have a dump of quota report from the filer in question at /tmp/toaster.quota, and want to see the top twenty disk users:
egrep ‘^user’ /tmp/toaster.quota | awk ‘{ print $5, $2 }’ | sort -rn | head -20