HPE Storage Users Group
https://3parug.com/

cli command to map a VV to another isicsi initiator host
https://3parug.com/viewtopic.php?f=18&t=2742
Page 1 of 1

Author:  novelkumar [ Wed Dec 13, 2017 2:58 am ]
Post subject:  cli command to map a VV to another isicsi initiator host

I am looking for the 3PAR CLI method to map an already_create VV to another initiator host. In VSA i was able to do the same as follows:

CLIQ>getVolumeInfo volumeName=volume-b0bd9277-1add-4b22-b0c2-18a14823268f

CLIQ>assignvolume volumeName=volume-b0bd9277-1add-4b22-b0c2-18a14823268f initiator=iqn.1993-08.org.debian:01:9095ec748e76

Discover from initiator:
#iscsiadm -m discovery -t sendtargets -p 10.16.4.205
10.16.4.205:3260,1 iqn.2003-10.com.lefthandnetworks:hpevsa:186:volume-b0bd9277-1add-4b22-b0c2-18a14823268f

Present the LUN:
#iscsiadm -m node -T iqn.2003-10.com.lefthandnetworks:hpevsa:186:volume-b0bd9277-1add-4b22-b0c2-18a14823268f --login

How to do the same thing in 3PAR cli . I aksed many ppl , everyone says they have not tried via CLI. Instead use SSMC. Is it possible via 3Par CLI. If so, how?

Author:  JohnMH [ Wed Dec 13, 2017 6:49 am ]
Post subject:  Re: cli command to map a VV to another isicsi initiator host

See the "createvlun" command, CLI guides below.

https://support.hpe.com/hpsc/doc/public/display?docId=c04204279
https://support.hpe.com/hpsc/doc/public/display?docId=c04204251

Ensure you aren't exporting the same volume to none clustered hosts otherwise there's the potential for writes from different hosts to corrupt the volume.

Author:  novelkumar [ Wed Dec 13, 2017 9:49 am ]
Post subject:  Re: cli command to map a VV to another isicsi initiator host

Hi JohnMH,

Thank for the reply. I saw this command createvlun. I am new to 3par and trying to understand the folowing things.

I have done the following:

Created a VV from oepnstack cinder in my 3PAR.

<snip>

FTC-R25-S-2851 cli% showvv -showcols Name,Comment osv-vQDRqhUSQ.aJVCOwajcJuw
Name Comment
osv-vQDRqhUSQ.aJVCOwajcJuw {"display_name": "ubuntu-20GB-volume", "type": "OpenStack", "name": "volume-bd00d1aa-1512-43e6-8954-23b06a3709bb", "volume_id": "bd00d1aa-1512-43e6-8954-23b06a3709bb"}

OR

FTC-R25-S-2851 cli% showvv osv-vQDRqhUSQ.aJVCOwajcJuw
--Rsvd(MB)--- -(MB)-
Id Name Prov Type CopyOf BsId Rd -Detailed_State- Adm Snp Usr VSize
14142 osv-vQDRqhUSQ.aJVCOwajcJuw tpvv base --- 14142 RW normal 768 1024 4096 19200

</snip>


I also have mapped my host from 3par:

FTC-R25-S-2851 cli% showhost ubuntu
Id Name Persona ------------WWN/iSCSI_Name------------ Port
937 ubuntu Generic iqn.1993-08.org.debian:01:9095ec748e76 1:2:2

So if i need to map this VV osv-vQDRqhUSQ.aJVCOwajcJuw to ubuntu host with IQN iqn.1993-08.org.debian:01:9095ec748e76, what should i do:

As per my understanding, i should create a vlun using createvlun command to map the VV osv-vQDRqhUSQ.aJVCOwajcJuw to the newly created VLUN.

something like

FTC-R25-S-2851 cli% createvlun osv-vQDRqhUSQ.aJVCOwajcJuw 12 ubuntu

Where in the above command ubuntu is my host;
osv-vQDRqhUSQ.aJVCOwajcJuw is my already available VV
12 is the newly created VLUN.

Any pointers is highly appreciated.

Regards,
Novel

Author:  novelkumar [ Thu Dec 14, 2017 7:32 am ]
Post subject:  Re: cli command to map a VV to another isicsi initiator host

Hi JohnMH,

Thanks . This worked as you have pointed out. Much appreciated...!!!

Regards,
Novel

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/