#Create flexgroup with API meeting size problem

1 messages · Page 1 of 1 (latest)

tropic dove
#

When creating flexgroup through the command:
"vol create -vserver vserver1-volume fg1 -aggr-list aggr01,aggr02 -size 1g -state online -policy default -unix-permissions ---rwxrwxrwx -type RW -snapshot-policy none -junction-path /fg1 -percent-snapshot-space 0 -space-guarantee volume -autosize-mode off -aggr-list-multiplier 1 -comment TEST"

this can create a fg with size 1GB after type yes to the warning.
then,
I tried to use the API with the following request body:
"{
"comment": "TEST",
"name": "fg1",
"size": 1073741824,
"state": "online",
"tiering": {
"policy": "none"
},
"constituents_per_aggregate": 1,
"type": "rw",
"autosize": {
"mode": "off"
},
"aggregates.name": [
"aggr01",
"aggr02"
],
"guarantee": {
"type": "volume"
},
"language": "c.utf_8",
"nas": {
"export_policy": {
"name": "default"
},
"path": "/fg1",
"security_style": "unix",
"unix_permissions": 777
},
"snapshot_policy": {
"name": "none"
},
"space": {
"snapshot": {
"reserve_percent": 0
}
},
"svm": {
"name": "vserver1"
}
}"

I get the job with the following error:
message": "Size "1GB" ("1073741824B") is too small. Minimum size is "200GB" ("214748364800B").
Is there way to pass the warning check?

tropic yarrow
#

What ONTAP version are you using?

tropic dove
#

@tropic yarrow 9.9.1

#

@tropic yarrow 9.11.1 also

frail portal
#

I am working against 9.12.1 and will need tiny volumes as well as the ONTAP components in Lab on Demand lab instances are small, thus I am following and may be able to provide input this week.

tropic dove
#

@frail portal Thanks for your update

frail portal
#

I finally reached this point in the automation I'm expanding on. Here's my error:

{"error":"API POST request to /storage/volumes?return_timeout=60&return_records=true failed with message: {
  "error": {
    "message": "Size \"400MB\" (\"419430400B\") is too small.  Minimum size is \"400GB\" (\"429496729600B\"). ",
    "code": "917534"
  },
#

Mine wants 400G! I wonder if that's because we (NetApp's Lab on Demand) use the engineering simulators which are much closer to what's installed on real hardware...

tropic dove
#

@frail portal If I expand flexgroup on four aggregates then it will need 400G!
Seems like there has no method to solve this size warning?
Need some automation advice on creating tiny flexgroup.

frail portal
#

Well, this is my workaround:

{
    "name": "cluster1_svm1_flexgroup2",
    "size": "400g", <<< Set to whatever my vSIM wants
    "aggregates": [
        {
            "name": "cluster1_01_SSD_1"
        }
    ],
    "snapshot_policy": {
        "name": "none"
    },
    "guarantee": {
        "type": "none" <<<<<<<<<<< And make it THIN :-D
    },
    "type": "RW",
    "nas": {
        "path": "/cluster1_svm1_flexgroup2",
        "export_policy": {
            "name": "default"
        }
    },
    "svm": {
        "name": "cluster1_svm1"
    },
    "style": "flexgroup",
}
tropic dove
#

@frail portal I tried with this post body, it creates a 400G FG, but I need is a 1G FG volume.

frail portal
#

There's no way that I can see to do that via RestAPI. Thin provisioned of any size is sufficient for my use case. I'd recommend opening a support case if thin provisioned or CLI are not sufficient for your needs.

tropic dove
#

@frail portal If I create with this body and change the volume size after flexgroup creation, any recommendation?