jstalbot@mail.com (Julius Talbot) writes:
Sorry for the newbie questions, one last question
When I do a df, for instance
/vol/vol0/ 127105232 748236 26356996 1% /vol/vol0/ /vol/vol0/.snapshot 31776304 4548 31771756 0% /vol/vol0/.snapshot
Does vol0's capacity include the snapshot capacity? That is to say, vol0 is really 127105232? Or, is vol0 really that plus the reserved snapshot capacity, in this case, 127105232 + 31776304?
The latter figure is more "real" than the former. If you change the snapshot reserve with "snap reserve vol0 [some-number]" then it is the sum of the two sizes that will stay constant at 158881536 KB.
That's not to say that it's totally "real", though. It represents the 90% occupancy limit imposed on a raw capacity of 176535040 KB = 172397.5 MB which itself comes from (I imagine) five "36GB" data discs each right-sized to 34500 MB with a 20.5 MB reserved low-address area pruned off.
Second I do understand from the documentation that if that snapshot exceeds the specified size, it will eat up the volumes capacity. In this case, both vol0 and snapshot would reflect the exceed capacity, right?
The snapshot usage in excess of the reserve is accounted against the regular /vol/vol0, yes. This is so that the usage in that line will reach 100% just when the volume really is "full" - i.e. attempts to allocate more space will fail. Again, you can experiment with altering the reserve to see how this works:
myfiler> snap reserve mail 35 myfiler> df /vol/mail Filesystem kbytes used avail capacity Mounted on /vol/mail/ 30514204 3859904 26654300 13% /vol/mail/ /vol/mail/.snapshot 16430720 15131316 1299404 92% /vol/mail/.snapshot myfiler> snap reserve mail 32 myfiler> df /vol/mail Filesystem kbytes used avail capacity Mounted on /vol/mail/ 31922552 3968848 27953704 12% /vol/mail/ /vol/mail/.snapshot 15022372 15131316 0 101% /vol/mail/.snapshot myfiler> snap reserve mail 35 myfiler> df /vol/mail Filesystem kbytes used avail capacity Mounted on /vol/mail/ 30514204 3859928 26654276 13% /vol/mail/ /vol/mail/.snapshot 16430720 15131316 1299404 92% /vol/mail/.snapshot
In the second "df", the 15131316-15022372 = 108944 KB excess is accounted against /vol/mail as well, making the usage 3859904+108944 = 3968848 KB.
Chris Thompson University of Cambridge Computing Service, Email: cet1@ucs.cam.ac.uk New Museums Site, Cambridge CB2 3QG, Phone: +44 1223 334715 United Kingdom.