Got it

Command for listing LUN WWN/Volume Serial in Linux CLI.

Created: Dec 22, 2020 09:04:37Latest reply: Dec 26, 2020 11:55:41 396 6 0 0 0
  Rewarded HiCoins: 3 (problem resolved)

Hello,

Is there any command in the Linux CLI that shows the LUN identifier (LUN WWN/Volume Serial) of the Huawei OceanStor array? Without using the ultrapath driver.


Something similar to AIX command lsmpio.


server:/root # > lsmpio -ql hdisk211

Device:  hdisk211

          Vendor Id:  HUAWEI

         Product Id:  XSG1

           Revision:  4303

           Capacity:  70.00GiB

      Volume Serial:  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  (Page 83 NAA)


Thank you


Featured Answers

Best answer

Recommended answer

little_fish
Admin Created Dec 22, 2020 12:25:33

Posted by Radousek at 2020-12-22 09:30No, that's not what I'm asking. I need to know how to find out the LUN WWN/Volume Serial on the Li ...

Dear,

Run the multipath -ll command to verify that the configuration has taken effect.

[root@localhost ~]# multipath -ll mpathaf (361603041002d0306003e6dc300000009) dm-9 HUAWEI  ,XSG1             size=5.0G features='0' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active   |- 2:0:2:4 sde  8:64   active ready running   |- 9:0:2:4 sdq  65:0   active ready running   |- 2:0:3:4 sdaw 67:0   active ready running   |- 9:0:3:4 sdas 66:192 active ready running   |- 2:0:0:4 sdi  8:128  active ready running   |- 9:0:0:4 sdak 66:64  active ready running   |- 2:0:1:4 sdo  8:224  active ready running   `- 9:0:1:4 sdao 66:128 active ready running mpathae (361603041002d0306003e549f00000000) dm-3 HUAWEI  ,XSG1             size=50G features='0' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active   |- 2:0:2:1 sdb  8:16   active ready running   |- 9:0:2:1 sdm  8:192  active ready running   |- 2:0:3:1 sdat 66:208 active ready running   |- 9:0:3:1 sdap 66:144 active ready running   |- 2:0:0:1 sdf  8:80   active ready running   |- 9:0:0:1 sdah 66:16  active ready running   |- 2:0:1:1 sdj  8:144  active ready running   `- 9:0:1:1 sdal 66:80  active ready running

In the command output, the two mapped LUNs have been taken over by the OS native multipathing software and all paths are active, indicating that the configuration has taken effect.



More information about OceanStor Dorado V6 Host Connectivity Guide for Red Hat:
https://support.huawei.com/enterprise/en/doc/EDOC1100113070/1b4ad686/os-native-multipathing-software
Thank you.

View more
  • x
  • convention:

NikoleT
NikoleT Created Dec 26, 2020 11:55:52 (0) (0)
Thanks!  
All Answers
Hi dear, we are working on it now.
View more
  • x
  • convention:

Dear,

The show lun general command is used to query information about LUNs in the storage system.

For example:

admin:/>show lun general 
  ID  Name     Pool ID  Capacity  Health Status  Running Status  Type  WWN                               Is Add To Lun Group  Smart Cache Partition ID  DIF Switch  Is Clone  Subscribed Capacity Function Type
  --  -------  -------  --------  -------------  --------------  ----  --------------------------------  -------------------  ------------------------  ----------  --------  ------------------- -------------
  0   snap     0        10.000GB  Normal         Online          Thin  6cf02031000405060049949200000000  No                   --                        No          No        8.129GB             Lun

Hope this can help you, thank you.


View more
  • x
  • convention:

Posted by little_fish at 2020-12-22 09:14 Dear,The show lun general command is used to query information about LUNs in the storage system.For ...
No, that's not what I'm asking. I need to know how to find out the LUN WWN/Volume Serial on the Linux host side in CLI.
View more
  • x
  • convention:

Posted by Radousek at 2020-12-22 09:30No, that's not what I'm asking. I need to know how to find out the LUN WWN/Volume Serial on the Li ...

Dear,

Run the multipath -ll command to verify that the configuration has taken effect.

[root@localhost ~]# multipath -ll mpathaf (361603041002d0306003e6dc300000009) dm-9 HUAWEI  ,XSG1             size=5.0G features='0' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active   |- 2:0:2:4 sde  8:64   active ready running   |- 9:0:2:4 sdq  65:0   active ready running   |- 2:0:3:4 sdaw 67:0   active ready running   |- 9:0:3:4 sdas 66:192 active ready running   |- 2:0:0:4 sdi  8:128  active ready running   |- 9:0:0:4 sdak 66:64  active ready running   |- 2:0:1:4 sdo  8:224  active ready running   `- 9:0:1:4 sdao 66:128 active ready running mpathae (361603041002d0306003e549f00000000) dm-3 HUAWEI  ,XSG1             size=50G features='0' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active   |- 2:0:2:1 sdb  8:16   active ready running   |- 9:0:2:1 sdm  8:192  active ready running   |- 2:0:3:1 sdat 66:208 active ready running   |- 9:0:3:1 sdap 66:144 active ready running   |- 2:0:0:1 sdf  8:80   active ready running   |- 9:0:0:1 sdah 66:16  active ready running   |- 2:0:1:1 sdj  8:144  active ready running   `- 9:0:1:1 sdal 66:80  active ready running

In the command output, the two mapped LUNs have been taken over by the OS native multipathing software and all paths are active, indicating that the configuration has taken effect.



More information about OceanStor Dorado V6 Host Connectivity Guide for Red Hat:
https://support.huawei.com/enterprise/en/doc/EDOC1100113070/1b4ad686/os-native-multipathing-software
Thank you.

View more
  • x
  • convention:

NikoleT
NikoleT Created Dec 26, 2020 11:55:52 (0) (0)
Thanks!  
Command for listing LUN WWN/Volume Serial in Linux CLI.-3713501-1
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.