In linux how we can find the wwid(lun) of the disk.

I need to find the wwid (lun) to which my disk is attached.
Who is Participating?
To get the WWID of say, /dev/sdc, run this command:  
 # scsi_id -g -u -s /block/sdc

More information @
cjl7freelance for hireCommented:
multipath -ll

(you should probably run multipath if you aren't already)

apunkabollywoodAuthor Commented:
@arichakra: hi dear ,

it will generate the new id ...or it will just ...grep the wwid.
I meant to say ...i am on the production server ....i dont want to run a command which harm the server.


hi dear ,
is it ok to run this command on production server.will it be help full.

cjl7freelance for hireCommented:
Sure, no problem.

You might not be running multipath or maybe you are running the version from the SAN supplier. But you can still run 'multhipath -ll' anyways...

apunkabollywoodAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.