HPE Storage Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: cli command to map a VV to another isicsi initiator host
PostPosted: Wed Dec 13, 2017 2:58 am 

Joined: Wed Dec 13, 2017 2:48 am
Posts: 5
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: cli command to map a VV to another isicsi initiator host
PostPosted: Wed Dec 13, 2017 6:49 am 

Joined: Wed Nov 19, 2014 5:14 am
Posts: 505
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: cli command to map a VV to another isicsi initiator host
PostPosted: Wed Dec 13, 2017 9:49 am 

Joined: Wed Dec 13, 2017 2:48 am
Posts: 5
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


Top
 Profile  
Reply with quote  
 Post subject: Re: cli command to map a VV to another isicsi initiator host
PostPosted: Thu Dec 14, 2017 7:32 am 

Joined: Wed Dec 13, 2017 2:48 am
Posts: 5
Hi JohnMH,

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

Regards,
Novel


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt