ONTAP Discussions

Quotas and Dedupe

6,243 Views

Not SAN specific, but probably useful.  We use quotas for finding disk hogs and have deduped our volumes.  The quotas aren't based off of the deduped size, so how do I use my saved space?

11 REPLIES 11

kevin_parker
6,203 Views

Judson,

You can use your saved space in 2 ways. You can either reduce the size of your volumes, based on saved deduped space, or you will also have the ability to create new volumes based on saved deduped space, perhaps not space guaranteed (again, based on estimates/projections based on dedupe savings.)

Note that if you are using quotas in a VMware/ESX environment, having quotas enabled will allow VC to only see the storage capacity undeduped. With quotas disabled, VCC sees the volume deduped amount. HTH.

fizzyhawk
6,204 Views

What I had been told during my questions to NetApp support that I couldn't oversubscribe my quotas.  To me this meant that I had to base my quotas on the undeduped data.  Was I wrong in my understanding.  What I'm attempting to ascertain is if I can increase my quotas by the amount of saved space on those volumes which are running quotas.

kevin_parker
6,204 Views

That's right about not able to oversubscribe on quotas (can't set quota to 110G if your vol only has 100G). So you have to find other data that you can put in those volumes - this is a way you can get more out of your deduped volumes.

You say "What I'm attempting to ascertain is if I can increase my quotas by the amount of saved space on those volumes which are running quotas."

I think you mean to ask if you can DEcrease your quotas? Well, the clients do not get direct benefit of deduped data - meaning, they can't fill up a volume with 100G of data and have it taken down to 50G just because there are common blocks of that data across the deduped volume and then freely write 50G more data. Dedupe is more for the storage admin/company overall to gain from. You have other space on there you can now do something with.

I see what you're going to think next - dedupe and quotas are a tough mix. At this time, I agree. Have you tried soft quotas? I haven't.

Another thing to try is disable volume guarantee, and make the volume as big as you would need it based on your quota total amount. Adds complication a bit and you'd want to manage your storage based on reporting on other numbers (say, a quota report).

Would be interesting to see what you come up with. Me I turned quota off on the volumes I had to work with. I manage it other ways (report on vol usage). You may not have that luxury.

fizzyhawk
6,204 Views

I need the hard quotas so one user can't use all of the storage.  Our impression of dedupe was that it would help us reclaim space being used by duplicate blocks to possibly return to the user as percieved added space by raising the quotas or some other means.  When you say, "...the clients do not get direct benefit of deduped data," I start thinking what benefit is dedupe?  I understand we can reduce the size of admin-ish things, but on the other hand we constantly need more storage.  So we are trying to find the most cost-effective way to do that as I'm sure everyone else is.  I would hope that one of the Experts would chime in and have some input.

calvarez
6,204 Views

As stated in the dedupe deployment and implementation guide, TR-3505,

When deduplication is used in an environment where quotas are used, the quotas cannot be oversubscribed on a volume. For example, a user with a quota limit of 1TB can’t store more than 1TB of data in a deduplicated volume even if this data fits into less than 1TB of physical space on the storage system. Storage administrators can use the saved space as desired.

This means that if you want to use the freed space for storing data you will need to increase the quota.  Hopefully someone like Sajan can chime in with best practices that should be taken into consideration for using quotas.

fizzyhawk
6,203 Views

As the documentation says one can't oversubscribe the quotas.  Is this set in stone or is it just inadvisable?  If we could oversubscribe them by a percentage (with some wiggle room I would hope), we could get some use out of the saved space.  For example, if qtrees /vol/jobs /vol/userdirs were on vol1.  Vol1 is 2TB and the tree quotas for both qtrees add up to 2TB.  Vol1 is 96% full.  Now we run dedup and get 20% savings on /vol/jobs and 15% on /vol/userdirs.  After the snapshots and snapvaults clear and show the savings, can we raise the quota on /vol/jobs by 10% and on /vol/userdirs by 8%.  My thinking is that if the quota can be oversubscribed, we could gain some user usable space by doing so.  Then as more data gets put on, it will be deduped as well and being similar data should be reduced by approximately the amount of the previous savings.

Is this possible? or are we just stuck being low on space.  Unless there is a software limitation to having the quota not exceed the volume size or will the OS allow a forced oversubscription (not really oversubscribed if it doesn't run out of space).  The only problem I would see with this is if a large restore was needed and the deduped data were taking up too much of the volume to restore other data (I'm assuming a tape backup would be undeduped.)

kevin_parker
6,203 Views

As the documentation says, you can't do it. 😉

Say you have

Volume: /vol/vol1               100G

Qtree: /vol/vol1/jobs           

Qtree: /vol/vol1/userdirs

The sum of the quotas on /vol/vol1/jobs and /vol/vol1/userdirs have to come to 100G or less.

If you attempt to make

/vol/vol1/jobs 50G

/vol/vol1/userdirs 51G

You will get error message telling you no-no and it will disable quotas on that volume until you change your quota.

sajan
6,203 Views

Also dedupe works at the volume level so it does not really know how much savings has been achieved at each qtree level and hence we report savings at the volume level.

amiller_1
6,203 Views

I believe the main way to handle this would be oversubscription at the volume level (i.e. you can now the volume to larger than it would have been previously or create other volumes using the deduped space).

mohammad_qahtani
5,041 Views

Guys,

You will always get an error message, but it will still allow you to oversubscribe your quotas.

we just tested this on our test filer. see below

Babar volume is 10GB

[root@dsmsrvp1b ~]# ssh nas-testp df -h babar
Filesystem               total       used      avail capacity  Mounted on
/vol/babar/             8192MB     8192MB        0MB     100%  /vol/babar/
/vol/babar/.snapshot     2048MB        0TB     2048MB       0%  /vol/babar/.snapshot

See three qtrees with 10GB each (sum=30GB). The system gives a warning but still allow it.

[root@dsmsrvp1b ~]# ssh nas-testp quota report
                                 K-Bytes             Files
Type       ID    Volume    Tree  Used      Limit     Used    Limit   Quota Specifier
----- -------- -------- -------- --------- --------- ------- ------- ---------------
tree         1    babar       q1         0  10485760       1       - /vol/babar/q1
tree         2    babar       q2   7317996  10485760       2       - /vol/babar/q2
tree         3    babar       q3   1067104  10485760       2       - /vol/babar/q3

Error message:

nas-testp> quota off babar
nas-testp> quota on babar
quota: Starting quota initialization.
(Execute 'quota status' or 'quota status babar' for status.)
nas-testp> Sat Dec 18 15:20:21 AST [quota.parse.error:error]: [quota: warning]: Total tree disk quota limit from /etc/quotas (30720 MB) exceeds size of volume babar (10240 MB)
Sat Dec 18 15:20:21 AST [wafl.scan.start:info]: Starting quota initialization on volume babar.
nas-testp>

ranjith_bb
5,041 Views

Does anyone know what would be the max quota size on a volume with dedupe on...

In other words the maximum size of de-duped volume on FAS 3170 is 32TB will this be the maximum quota size for qtree or the quota for qtree will be 16TB which is the limit of the volume without de-dupe

Public