Update on this. It works a treat after Setting up the Storage connectivity groups with correct IPGS. The tape volumes can be attached on the fly where zoning and creating of new vFC adapters happens on the attach.
Original Message:
Sent: Fri February 09, 2024 07:29 AM
From: Phill Rowbottom
Subject: PowerVC 2.2.0 - Tape media allocation to LPARs/VMs
Hi Sasi,
The vFC should be created when you attach the volume, it's not created at VM deployment time. But as we found during our implementation, what you're trying to do isn't supported by PowerVC. What happened to us is the vFCs will be mapped to any FC, not just the ones that it should be ie: the backup vsan.
We tried to do exactly what you're doing and found when working with support that it is not supported and won't work correctly. We ended up changing our design to what is supported and does work. Our implementation is V2.1.1 (updating to 2.2 or later will happen at some point). I'm not aware of anything that has been changed in 2.2 to make what we originally attempted and what you're now attempting to do supported. If I was you, I'd rase a case with support, send them the diagnostics and see what they come back with.
Phill.
------------------------------
Phill Rowbottom
Original Message:
Sent: Fri February 09, 2024 05:17 AM
From: Sasi Chand
Subject: PowerVC 2.2.0 - Tape media allocation to LPARs/VMs
Hi Chhavi,
I have followed the steps as you suggested with 2 IPGS one for data and one for tape.
The problem I am facing is that the vFC adapters for tape are not created on VM deploy on the HMC (PowerVM), because the SCG_DATA is only containing IPG ports for disks "IPG_DISK"
When I deploy the VM I specify the SCG* as SCG_DATA, this works fine the vFC adapters are created accordingly on the PowerMV side, the zoning is done as expected and the SAN hosts is created correctly with correct WWPNs.
Once the VM is deployed than I created a new data volume using SCG_TAPE which contains IPG_TAPE, this works fine.
When I attach the newly created volume to the VM it fails, hence the vFC for tape adapters are not there as these where not created on the VM deploy.
Any help would be much appreciated.
Messages
Request to attach volume TAPE0 to virtual machine test was sent. It may take a few minutes.
An error occurred while performing a storage operation for the volume TAPE0
Volume a025ca0c-b848-4b17-b9fa-4725aa652367 could not be attached to virtual machine test. Error message: Initiator port group 'IPG_TAPE' defined storage template on does not exists on SCG.. Please select the applicable initiator port groups defined on the storage connectivity group.
Could not attach volume a025ca0c-b848-4b17-b9fa-4725aa652367 to virtual server test-21fb43ad-0000002a. Check that host 910522A_78711E1 has connectivity to all storage providers. Check the host's log files for further details of this error.
Regards,
Sasi
Now
------------------------------
Sasi Chand
Humble - Engineer
Freelance
Wellington
New Zealand
Original Message:
Sent: Mon February 05, 2024 10:34 PM
From: CHHAVI AGARWAL
Subject: PowerVC 2.2.0 - Tape media allocation to LPARs/VMs
Hi Sasi,
You can try this by following the below steps:-
Create an SCG with IPG and create 2 IPGS eg: IPG_tape: fcs0, fcs1 ports, IPG_data:fcs2, fc3
Now update the storage template to use the required IPG
FC Tape Template you can use the below
POST /v3/<template_id>/extra_specs Body: { "extra_specs": { "drivers:init_port_group": "IPG_tape" } }
Similarly update the data volume template to use IPG_data
You can also use the below CLI also to update the volume template
source /opt/ibm/powervc/powervcrc
cinder type-key <tape-template-name-or-id> set "drivers:init_port_group"='IPG_tape'
cinder type-key <data-template-name-or-id> set "drivers:init_port_group"='IPG_tape'
You can get the template-name-id using the below command
cinder type-list
And then try to perform attachment it should pick the paths according.
Let us know if you are able to proceed with the above steps.
Thanks & Regards,
Chhavi Agarwal
------------------------------
CHHAVI AGARWAL
Original Message:
Sent: Fri February 02, 2024 04:21 PM
From: Sasi Chand
Subject: PowerVC 2.2.0 - Tape media allocation to LPARs/VMs
Hi Phill,
Thanks for the information.
I have got this far.
- Was able to register the VTL/Tapes device.
- Create a tape volume and attach it to a VM/LPAR (AIX)
What I really need is to separate the Tape I/O on say fcs0/fsc1 and keep the Disk I/O on say fcs6/fcs7. Currently when I deploy a VM using a storage connectivity group consisting of port group fcs6/fcs7 (for Disk I/O), this works as expected but when I create a volume for tape to be attached to a VM using storage template "Tapes" it's basically gets zoned to the same FC ports as the disks.
The default Storage template created while registering the tape does not give any option to define any paths to FC initiator ports where tape drive is connected.
Any assistance will be highly appreciated.
Warm Regards,
Sasi
------------------------------
Sasi Chand
Humble - Engineer
Freelance
Wellington
New Zealand
Original Message:
Sent: Fri February 02, 2024 03:47 AM
From: Phill Rowbottom
Subject: PowerVC 2.2.0 - Tape media allocation to LPARs/VMs
Hi,
These links may help you:
- https://www.ibm.com/docs/en/powervc/2.1.0?topic=storage-register-fibre-channel-tape-drives
- https://community.ibm.com/community/user/power/blogs/chhavi-agarwal1/2019/01/10/registering-fibre-channel-tape-drives
We have implemented this, though still on 2.1.1.
Phill.
------------------------------
Phill Rowbottom
Original Message:
Sent: Thu February 01, 2024 08:38 PM
From: Sasi Chand
Subject: PowerVC 2.2.0 - Tape media allocation to LPARs/VMs
Hello all,
How do we map tape drives and VTL via PowerVC to VM's
Can this be done when a vm is deployed?
Any setup documentation will be greatly appreciated.
Warm Regards,
Sasi
------------------------------
Sasi Chand
Humble - Engineer
Freelance
Wellington
New Zealand
------------------------------