HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Array Performance and Data Protection
cancel
Showing results for 
Search instead for 
Did you mean: 

Unlimited snapshot quota using CLI

 
SOLVED
Go to solution
bambriy116
Occasional Visitor

Unlimited snapshot quota using CLI

After migration to Nimble Cinder driver all volumes have snapshot quota assigned to 100%, which results in some volumes being taken offline when quota exceeded.

After repeating the same clicks for a few volumes, I've tried to use CLI to set quota snapshot quota level to unlimited. Failed miserably:

Nimble OS $ vol --edit volume-adbff2d4-b265-47a5-beb5-6972fb3a4820 --snap_quota unlimited

ERROR: the argument ('unlimited') for option '--snap_quota' is invalid

INFO: Use the --help option to view usage information.

Obviously, --snap_quota option only accepts integer values.

Which magic value shall I provide for snap_quota to disable that quota completely?

4 REPLIES
pdavies34
Valued Contributor

Re: Unlimited snapshot quota using CLI

The valid figures are any positivie digit, strangely even above 100%, so in the short term you could set this to 1000% or even higher

I'm checking to find out if/what the valid "unlimited" argument is for you.

You can always set this in the GUI but I suspect you don't want to have to do this for multiple volumes!

Regards

Phil

wvanhoolst45
Valued Contributor

Re: Unlimited snapshot quota using CLI

Phil is 100% right !! You can set each positive number, no negatives. Even zero is possible. But it will not be set to 'unlimited' .

I guess this is a bug.

Regards

Walter

bambriy116
Occasional Visitor

Re: Unlimited snapshot quota using CLI

Phil, Walter,

Thank you for your replies. I have set up a soon-to-be-offline volume's quota to 100,000% now (one can fit a lot of percents in UINT64 ). Let's see if it trips over some quota accounting bug.

Hope, this issue will be resolved. I like avoiding hacks in configs as much as possible.

Thanks,

Pavel

pdavies34
Valued Contributor
Solution

Re: Unlimited snapshot quota using CLI

OK I have a definative answer on this

There are 3 ways that I know of (without creating a new volume) to do this.

1. Use the GUI

2. Use the REST API in NOS 2.3.x

3. Wait for NOS 3.0

Spoiler - I've not yet tested option 2 or 3

So currently the CLI will not allow you to change this back to Unlimited.  As of NOS 3.x it will (said with all the usual future looking caveats I can come up with) and Pavel was correct in his guess, it will be "unlimited" as the correct parameter.

So do have a look at the 2.3.x REST API, youcan find more about it here Nimble OS 2.3 – REST API

There is a full API Reference in InfoSight: Nimble Storage InfoSight

Regards

Phil