Network Storage Protocols Discussions

lun comment field question

wnorthmtitsd

Does anyone know the maximum size of the lun comment field ?

thanks!

----- walter

1 ACCEPTED SOLUTION

ekashpureff

It looks like the max length for a single run on command is 1024 characters. Longest I got was about 1024 less the 'lun comment /vol/lun/lu0' string...


I hope this response has been helpful to you.

At your service,


Eugene E. Kashpureff
ekashp@kashpureff.org
Fastlane NetApp Instructor and Independent Consultant
http://www.linkedin.com/in/eugenekashpureff http://www.kashpureff.org/

(P.S. I appreciate points for helpful or correct answers.)

View solution in original post

6 REPLIES 6

ekashpureff

I don't see it specified in the documentation. Might guess 255 chars.

We'll be doing SAN in class today - I'll see if a student wants to try and test it in a lab !


I hope this response has been helpful to you.

At your service,


Eugene E. Kashpureff
ekashp@kashpureff.org
Fastlane NetApp Instructor and Independent Consultant
http://www.linkedin.com/in/eugenekashpureff http://www.kashpureff.org/

(P.S. I appreciate points for helpful or correct answers.)

wnorthmtitsd

Thanks Eugene.

I quit testing it after 100 but was curious.

---- walter

ekashpureff

I've tested to 640 characters so far with out breaking it !


I hope this response has been helpful to you.

At your service,


Eugene E. Kashpureff
ekashp@kashpureff.org
Fastlane NetApp Instructor and Independent Consultant
http://www.linkedin.com/in/eugenekashpureff http://www.kashpureff.org/

(P.S. I appreciate points for helpful or correct answers.)

ekashpureff

sim1> lun show -v
    /vol/mnstrsan/luns/lun0      3.0g (3224309760)    (r/w, online, mapped)
        Comment: "Now is the time for the community to test the LUN comment field in Data ONTAP.Now is the time for the community to test the LUN comment field in Data ONTAP.Now is the time for the community to test the LUN comment field in Data ONTAP.Now is the time for the community to test the LUN comment field in Data ONTAP.Now is the time for the community to test the LUN comment field in Data ONTAP.Now is the time for the community to test the LUN comment field in Data ONTAP.Now is the time for the community to test the LUN comment field in Data ONTAP.Now is the time for the community to test the LUN comment field in Data ONTAP."
        Serial#: nBM6goZzNSIR
        Share: none
        Space Reservation: disabled
        Multiprotocol Type: windows
        Maps: monster=0
sim1>

( Eugene is sometimes easily amused ! )


I hope this response has been helpful to you.

At your service,


Eugene E. Kashpureff
ekashp@kashpureff.org
Fastlane NetApp Instructor and Independent Consultant
http://www.linkedin.com/in/eugenekashpureff http://www.kashpureff.org/

(P.S. I appreciate points for helpful or correct answers.)

ekashpureff

It looks like the max length for a single run on command is 1024 characters. Longest I got was about 1024 less the 'lun comment /vol/lun/lu0' string...


I hope this response has been helpful to you.

At your service,


Eugene E. Kashpureff
ekashp@kashpureff.org
Fastlane NetApp Instructor and Independent Consultant
http://www.linkedin.com/in/eugenekashpureff http://www.kashpureff.org/

(P.S. I appreciate points for helpful or correct answers.)

View solution in original post

fjohn

I used the Data ONTAP PowerShell toolkit to make a short script and test setting the LUN comment attribute in increments of 64 from 64 to 32768 characters long.  The answer is it succeeded, so at least 32768 characters.  The script I used was to test was:

Import-Module DataONTAP
Connect-NaController FAS3040A

$TestPattern ="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
$TestString = ""
Do { $TestString = $TestString + $TestPattern ; set-NaLunComment /vol/testvol/qt_test/test.lun $TestString ; $TestResult = get-NaLunComment /vol/testvol/qt_test/test.lun ; $TestResult.Length } Until ($TestResult.length -eq  32768)

You could increase the test value of 32768 in the do - until loop to something higher and continue testing if you're really curious...

J

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public