PowerVM

Power Virtualization

Connect, learn, share, and engage with IBM Power.


#Power
#TechXchangeConferenceLab
 View Only
Expand all | Collapse all

LPM & using different vSwitch on target ?

  • 1.  LPM & using different vSwitch on target ?

    Posted Fri November 05, 2021 08:32 AM
    Hello,

    Quick and stupid q;  Can you force LPM somehow to use different vSwitch & VLAN on destination frame compared to source?

    E.g on source VM has vSwitch Happy, VLAN ID 123; and on destination it would be Weekend, VLAN 234?
    (Actual L2 level network would remain identical (IP address, subnet, gw, mask etc))

    Or does one need to "fake" the old switch & VLAN info on destination; do offline LPM; modify VM profile to be correct & then re-activate VM.


    Br,
    tommi

    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tieto.com mobile +358 (0)40 5180 Finland
    ------------------------------

    #PowerVM


  • 2.  RE: LPM & using different vSwitch on target ?

    Posted Fri November 05, 2021 09:23 AM
    Hello Tommi
    yes you can switch to another vSwitch since last year....
    Vince

    Minimum Requirement:

     VIOS Version 2.2.4 ;     System Firmware Release 840 ;      HMC Release 8 Version 8.4.0



    Live Partition Mobility (LPM) To Move PVID/VLAN From One VSwitch To Another VSwitch Across Dual HMC using HMC CLI Command.
    Ibm remove preview
    Live Partition Mobility (LPM) To Move PVID/VLAN From One VSwitch To Another VSwitch Across Dual HMC using HMC CLI Command.
    Determine Correct Hardware Management Console (HMC) Command On Dual HMC To Move PVID/VLAN From vSwitchA On VIO Server (Virtual I/O) Source Frame To VswitchB On VIO Server Target Frame.
    View this on Ibm >



    ------------------------------
    Vincencio Michaelis
    ------------------------------



  • 3.  RE: LPM & using different vSwitch on target ?

    Posted Mon November 08, 2021 04:13 AM
    Super! Many Thanks Vincencio! :)
    Br,
    tommi


    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tieto.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 4.  RE: LPM & using different vSwitch on target ?

    Posted Mon November 08, 2021 03:40 AM
    Hi 

    I hope that you have a migration strategy :)

    You have HMC command to it dynamically without downtime :

    hscroot@hmcXXX:~> migrlpar -o m -m CPU-FRMXXXX -t CPU-FRMXXXY -p LPAR1 -i 'shared_proc_pool_name=shp_app,"vswitch_mappings=180/VS_P8/VS_LAN_PROD_CMN,3358/VS_P8/VS_LAN_PROD_CMN"'

    Where :
    CPU-FRMXXXX : frame source
    CPU-FRMXXXY: target frame
    shp_app: shared pool name, same on target frame
    LPAR1 : partition name
    vswitch_mappings: on frame source, my partition LPAR1 VLAN's 180/3358 configured on Vswitch VS_P8, and on target frame i changed Vswitch name to VS_LAN_PROD_CMN. no change of subnet configuration.

    About this point :
    live-partition-mobility-lpm-move-pvidvlan-one-vswitch-another-vswitch-across-dual-hmc-using-hmc-cli-command

    Hope that help you.

    Abderahim.

    ------------------------------
    Abderahim ABBAS
    ------------------------------



  • 5.  RE: LPM & using different vSwitch on target ?

    Posted Mon November 08, 2021 04:12 AM
    Hi,

    Thanks for the reply! And sure; "Strategy is my middle name" , so no worries :D 

    Actually this would just be a POC for this kind of migrations, not doing any production stuff right away :) 
    Br,
    tommi

    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tieto.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 6.  RE: LPM & using different vSwitch on target ?

    Posted Thu December 02, 2021 03:01 AM
    Hi,

    One more question related to this...From CLI it is possible to give new vSwitch...but how about the VLAN ID?
    Is it possible to change VLAN ID as well, or does it need to remain the same as in source frame?

    Br,
    tommi

    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 7.  RE: LPM & using different vSwitch on target ?

    Posted Fri February 28, 2025 07:13 AM
    Edited by Sylvain Fri February 28, 2025 07:17 AM

    Hi all,

    does anyone have an idea for the last question?





  • 8.  RE: LPM & using different vSwitch on target ?

    Posted 14 days ago

    Hi

    check the below link may will help you 

    https://www.ibm.com/support/pages/live-partition-mobility-lpm-move-pvid-or-vlan-one-vswitch-another-vswitch-across-dual-hmc-using-hmc-cli-command

    Thanks



    ------------------------------
    Anas AlSaleh
    IBM Power Systems Software Specialist
    Saudi Business Machines ( SBM )
    Riyadh
    ------------------------------



  • 9.  RE: LPM & using different vSwitch on target ?

    Posted 14 days ago

    That only seems to allow moving a VLAN ID from one switch to another, the mentioned last question was about changing the VLAN ID during an LPM.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 10.  RE: LPM & using different vSwitch on target ?

    Posted 14 days ago

    Hi

    I don't think that it's doable because if the VLAN ID changed during the LPM that mean RMC will become inactive and LPM will fail



    ------------------------------
    Anas AlSaleh
    IBM Power Systems Software Specialist
    Saudi Business Machines ( SBM )
    Riyadh
    ------------------------------



  • 11.  RE: LPM & using different vSwitch on target ?

    Posted 14 days ago

    From an IP/VLAN point of view, you can have a situation where you need to change a VLAN ID in steps (usually network redesign/merge).

    You can have a single broadcast domain that is tagged as VLAN ID 2 on switch 'A' and VLAN ID 3 on switch 'B' either via VLAN aliases or an untagged bridge.

    Consider:
    PowerA==(tagged 2)=PhysSwitchA=(port vid 2,untagged)=(untagged frames)=(port vid 3,untagged)=PhysSwitchB==(tagged 3)=PowerB

    In this case, VLAN 2 on PowerA is the same as VLAN 3 on PowerB, and LPM won't be able to migrate the LPARs in a non-disruptive manner.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 12.  RE: LPM & using different vSwitch on target ?

    Posted Mon March 03, 2025 04:47 AM

    Hi Tommi,

    I have never searched a command to change VLAN ID, because it does not make sense. 

    VLAN ID is adding a tagged_id of the VLAN to a TCP frame, it is hard to imagine, that the same LAN switch handles the same packets from the same VLAN with different tag_ids. 



    ------------------------------
    Bartlomiej Grabowski
    IBM Champion - Platinum Redbook Author and Principal System Specialist
    ------------------------------



  • 13.  RE: LPM & using different vSwitch on target ?

    Posted Tue March 04, 2025 01:30 AM

    Hi,

    Thanks Bartlomiej,

    Tbh, so much time has passed on this, that I can't even recall the use case for which I asking this for :D 

    Most probably it was tackled somehow at least. :) 

    Br,

    tommi



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry Tech Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 14.  RE: LPM & using different vSwitch on target ?

    Posted Wed March 05, 2025 07:28 AM

    A possible use case is that some VLAN was originally presented untagged on the switch port, and the SEAs configured to bridge untagged frames for an incorrect VLAN number.

    As usual, nobody is authorized to stop the whole thing to correct it, but if we have an option to remap the VLAN ID during an LPM, we could fix it incrementally without stopping anything.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 15.  RE: LPM & using different vSwitch on target ?

    Posted Wed March 05, 2025 08:10 AM
    Hi,

    Dynamically changing the VLAN ID (PVID)  is not only possible but often necessary for flexible network architecture. Modern virtualization platforms and network switches support on-the-fly VLAN retagging, allowing seamless reconfiguration of network segmentation without service interruption, enabling administrators to quickly adapt network configurations to changing infrastructure or security requirements. 
    It is a real need but this does not seem possible in LPAR/PowerVM environment









  • 16.  RE: LPM & using different vSwitch on target ?

    Posted Thu July 10, 2025 07:21 AM

    Regarding this:  It is a real need but this does not seem possible in LPAR/PowerVM environment.

    It is possible to do this with AIX, I don't believe PowerVM or LPM allow you to make this type of change.

    If you don't need to do this with an LPM, you probably don't need the EtherChannel setup.

    Just move the IP address as per step 3 (only 1 adapter), then steps 5, 6 and 7.

    1 - Add new VLANs to the VIOS if required.

    2 - Add a new vEth to the LPAR with the same VLAN as currently in use.

    3 - Add two new vEth to the LPAR with the new VLAN - We need two so we can undo the EtherChannel once migration is done.

    4 - Create an EtherChannel device with the current VLAN's new vEth on primary, and one target new VLAN vEth on backup.

    mkdev -c adapter -s pseudo -t ibm_ech -a adapter_names='ent4' -a backup_adapter='ent6' -a netaddr={gateway IP for subnet}

    5 - Move the base vEth adapters IP address to the EtherChannel vEth.

    This is the clever part for AIX, you can move an IP address from one adapter to another with a very minor network blip.

    ifconfig en0 inet {IP_Address} transfer en8 mtu 1500 netmask 255.255.255.128

    6 - Clean up the current original adapters IP settings.  E.g. for en0 in step 5.

    chdev -l en0 -a netaddr= -a netmask= -a state=detach

    7 - Add the IP address, netmask to the new Etherchannel settings.

    chdev -l en8 -a netaddr={IP_Address} -a netmask=255.255.255.128 -a state=up -P

    8 - Perform the LPM if required.  Noting once you are on target frame the primary will fail and the backup will take over (if VLANs are trunked on SEA).

    9 - Move the IP address from the EtherChannel to the new vEth you created in step 2 - the one you didn't use for the EtherChannel.

    10 - Remove the IP settings from EtherChannel.

    11 - Add IP settings to the new vEth you move the IP to in step 9.

    12 - Clean up all the no longer required EtherChannel and associated vEth and Update LPAR profile with 

    mksyscfg -m frame -r prof -o save -p LPAR -n normal --force



    ------------------------------
    Stephen Diwell
    ------------------------------



  • 17.  RE: LPM & using different vSwitch on target ?

    Posted 14 days ago

    From a switch POV:

    • Internally, all frames are tagged.
    • On each physical port, you can decide on ONE ID that is not tagged.
    • Connect machine A to port 1, tag 2
    • Set port 2, to VLAN 2, untagged
    • Set port 3, to VLAN 3, untagged
    • Connect machine B to port 4, tag 3 
    • connect ports 2 to port 3

    From a switch point of view, there are two VLANs with two ports each.
    From a network point of view, VLAN 2 and VLAN 3 of that switch are the same segment.

    This makes sense when you have to merge previously separate VLANs. (e.g. almost all mergers bring an abundant supply of "VLAN 1").



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------