PowerVM

 View Only
Expand all | Collapse all

VIO IO backup/restore in HMC V9R2M950

Carlo Castillo

Carlo CastilloMon January 25, 2021 07:45 AM

  • 1.  VIO IO backup/restore in HMC V9R2M950

    Posted Sun January 24, 2021 09:50 AM
    Hello!
    I just read about new functionality in HMC V9R2M950 in Hariganesh's post "What's new in HMC V9 R2 M950" , and I wanted to examine new VIO server related tasks.
    So I looked at my HMC upgraded to V9R2M950 including iFix MH01871, and I found new task "Validate Maintenance Readyness" within task "VIO actions - Operations".
    But looking into all menu items I was not able to find any selection to perform VIO IO configuration backup and/or restore as mentioned.
    Are these functions only available using REST API (because links in Hariganesh's post are pointing to infocenter REST API reference)?
    Please provide me a hint where to find  these new fundtions within HMC GUI .... from my point of view tcould be very usefull!
    Thank you for support, have a nice day, regards
    Peter Hornung, SVA

    ------------------------------
    Peter Hornung
    ------------------------------


  • 2.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 07:45 AM
    Hi,

    Is your VIOS on v3.1.1.25 at least?


  • 3.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Mon January 25, 2021 08:10 AM

    Hi,

    I tested on VIO with 3.1.2.0

     

    Bart,

     






  • 4.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 12:10 PM
    Hi Carlo,
    no, I'm running 3.1.1.10 at the Moment.

    ------------------------------
    Peter Hornung
    ------------------------------



  • 5.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 12:10 PM
    Hi Carlo,
    no, I'm running 3.1.1.10 at the moment.

    ------------------------------
    Peter Hornung
    ------------------------------



  • 6.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 07:45 AM
    Hi Peter,

    here you go:

    https://www.ibm.com/support/knowledgecenter/POWER9/p9eh6/p9eh6_managevios_backup.htm

    Greetings, Harald Stuerner, PROFI AG

    ------------------------------
    Harald Stürner
    ------------------------------



  • 7.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 07:45 AM
    Hello Peter,
    here you go:
    https://www.ibm.com/support/knowledgecenter/POWER9/p9eh6/p9eh6_managevios_backup.htm

    Regards
    Harald Stürner, PROFI

    ------------------------------
    Harald Stürner
    ------------------------------



  • 8.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Mon January 25, 2021 07:45 AM
      |   view attached
    Peter,

    I found ​it under HMC Management -> Templates and OS images -> VIOS images.
    I had to use hscroot account to see it (my HMC profile does not have all authorities assigned ). Did I try it? Not yet.

    ------------------------------
    Bartlomiej Grabowski
    ------------------------------



  • 9.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Mon January 25, 2021 07:45 AM
    So I was able to make a backup to the HMC (make sure you have enough space in /home/padmin file system on the VIO), but it looks that this image can't be used for restore/installation process from the GUI :(  The interface does not offer this image as a recovery image.

    ------------------------------
    Bartlomiej Grabowski
    ------------------------------



  • 10.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 12:10 PM
    Hi all,
    thank you for help and information ... with hints from Bartlomiej and Harald I finally found the related panel (I never search beyond "template" menu item)!
    And answering Carlo's question:  I'm using VIO 3.1.1.10, ad that seems to work fine regarding that new backup/restore functiuon.
    Regards
    Peter

    ------------------------------
    Peter Hornung
    ------------------------------



  • 11.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 12:10 PM
    ​Hi all,
    thank you for your help and tips …. I have found it now by post of Harald abd Bartlomiej ;-))
    and to carlo: I'm running 3.1.1.10 and it works fine.
    Regards
    Peter

    ------------------------------
    Peter Hornung
    ------------------------------



  • 12.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon January 25, 2021 02:28 PM
    Hi all,
    thank you for information and help ... now it's clear for me, because Harald and Bartlomiej showed me the rigth place within menu tree to find that new function!
    And for Carlo: I'm running 3.1.1.10, and that seems to work fine.
    Regards
    Peter

    ------------------------------
    Peter Hornung
    ------------------------------


  • 13.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Tue January 26, 2021 07:35 AM
    Hello! 

    I ended up situation where backup file was created successfully@VIOS end (/home/padmin/cfgbackups) ..but then it complained regarding upload to HMC..Any idea which command (scp/sftp) & account this is using when trying to fetch the image? The error message itself does not tell much :)



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



  • 14.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Wed February 03, 2021 11:18 AM

    Hi Tommi,

       Copy of the backup from VIOS to HMC via SCP. Is the failure seen all the time? 

    Thanks. 



    ------------------------------
    Hariganesh Muralidharan
    Cognitive Systems Management Architecture
    IBM
    ------------------------------



  • 15.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Thu February 04, 2021 03:29 AM
    Hi Hariganesh,

    I tested it towards couple of VIOSes and ended up the same.

    Maybe I have missed some part, should I create ssh keys between the HMC & VIOSes for padmin etc?
    Or which account it uses for fetching the image?

    Br,
    tommi


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



  • 16.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Thu February 11, 2021 07:50 AM
    Hi Tommi,
    You do not have to make any ssh key exchange to make this function work. HMC will automatically performs the ssh key exchange and takes care of it. But if there are issue in ssh to the VIOS, then the operation could fail. From the error message, it looks like ssh to the VIOS is failing and HMC is not able to download the backup file it created. Could you please check if you can ssh to the VIOS from HMC? Thanks!
    -Manju

    ------------------------------
    MANJUNATH SHANBHAG
    ------------------------------



  • 17.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Thu February 11, 2021 10:04 AM
    Hello!

    We have HMC & VIOSes on different network segments; and SSH /scp  is allowed only from HMC > VIOS network, not vice versa..
    so that explains why it fails...

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



  • 18.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Mon March 01, 2021 11:43 PM
    Hi Manjunanath; Is there any way to initiate the scp from HMC side (to get the viosbr backup stored to HMC) ? Or is it always from VIOS > HMC ?

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



  • 19.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Tue March 02, 2021 12:05 AM
    Hi,

    Copy of the backup files are always initiated from HMC. The scp command is called from HMC to copy the file from VIOS to the HMC's file system. But before scp is initiated, HMC does the ssh key exchange. If there is ssh issue to login to the VIOS from HMC, then ssh key exchange will fail. If the ssh key exchange fails, then HMC will not be able to scp the backup file from VIOS. That is why i requested you to check if you can ssh to VIOS from HMC. You can try : ssh padmin@<VIOS Host> from HMC command prompt. Thanks!
    -Manju

    ------------------------------
    MANJUNATH SHANBHAG
    ------------------------------



  • 20.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Tue March 02, 2021 12:38 AM
    Hi Manjunath, yes , from HMC to VIOS ssh works fine...but the Backup still fails ( HSCLC453 The backup file cannot be downloaded from the Virtual I/O Server.)   So it must be an issue with the keys like you said.. What is the correct syntax to create the ssh-keys manually, I could try that..

    And one stupid question: What is the purpose / difference of Virtual I/O Server IO Configuration backup compared to full backup?
    E.g what does IO Configuration backup store?


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



  • 21.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Sat February 27, 2021 06:47 AM
    Hello Hariganesh,
    is there any HMC CLI command to do initiate  the VIO configuration backup without using the GUI? I looked at the CLI documentation, but I was not able to find it there....
    And regarding the created configuration backup file on the HMC (I assume it is stored unter /data/viosconfig): is there any chance to copy those files to any remote server location? I tried with hscroot user and  only got a "Permission denied" failure ;-(( ....
    Thank you for support, and have a nice day! Regards!

    ------------------------------
    Peter Hornung
    ------------------------------



  • 22.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Sat February 27, 2021 11:08 AM
    Edited by Sridhar Murthy Sat February 27, 2021 11:13 AM
    Hi Peter:

    viosvrcmd  can be used on the HMC  command line to invoke  any command on VIOS server (both as padmin and as root), provided you know the name of the Frame and the name of the Partition on that frame  which hosts the VIO server (one could use lssyscfg -r sys <attributes>  to derive the information  required for this purpose)

    Once you have the Frame and the LPAR  information, you can execute viosbr as padmin  on the VIO server to backup up the virtual and logical configuration as well as listing the configuration of the Virtual I/O Server (VIOS). The backups are located under /home/padmin/cfgbackups on the VIO Server.

    If you are  using Shared Storage Pool you will need to  know that name of the cluster for backing up and that can be determined by viosvrcmd command.

    Hope this helps.

    Sridhar

    ------------------------------
    Sridhar Murthy
    Senior Certified IT Specialist
    IBM
    3039240413
    ------------------------------



  • 23.  RE: VIO IO backup/restore in HMC V9R2M950
    Best Answer

    Posted Sun February 28, 2021 02:28 AM
    Edited by Peter Hornung Sun February 28, 2021 03:12 AM
    Hi Peter,

      There is no CLI yet for the VIOS backup/restore function which was introduced in HMC V9 R2 950.  You should be able to scp the backup files from HMC (/data/viosconfig/systemMTMS/viosUUID) to another server. 

    Thanks.

    ------------------------------
    Hariganesh Muralidharan
    Cognitive Systems Management Architecture
    IBM
    ------------------------------



  • 24.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Sun February 28, 2021 03:53 AM
    Hi Hariganesh,
    I'm not able to list content of these directories, only answer I get is: "Permission denied"

    hscroot@HMC19:~> ls -latr /data/

    total 2097244

    drwx------  2 root     root          16384 Mar  6  2018 lost+found

    drwxr-xr-x  3 root     root           4096 Mar  6  2018 hmc

    drwxrwxr-x  2 root     root           4096 Mar  6  2018 lpmffdc

    drwxr-xr-x  2 root     root           4096 Mar  6  2018 cloud-connector

    drwxr-xr-x  3 root     hmc            4096 Jan 20  2020 updates

    drwxr-xr-x  4 ccfw     ccfw           4096 Apr  9  2020 healthmon

    drwxr-xr-x  3 root     root           4096 Jun  2  2020 adm

    drwxrwxrwx  9 ccfw     ccfw           4096 Nov  6 15:07 feedback

    -rw-------  1 root     root     2147483648 Dec  9 11:24 hmcxtraswap

    drwxr-xr-x  3 root     root           4096 Dec  9 11:25 info

    drwxr-xr-x  2 postgres postgres       4096 Dec  9 11:33 postgresbackup

    drwxrwsr-x  4 sfp      sfp            4096 Jan 12 05:13 sfp

    drwxrwxr-x  2 ccfw     ccfw           4096 Jan 13 18:18 codpool

    drwxrwxr-x  5 ccfw     ccfw           4096 Jan 13 18:32 pcm

    drwxr-xr-x  4 ccfw     ccfw           4096 Jan 13 18:37 pmc

    drwxr-xr-x  6 ccfw     ccfw           4096 Jan 19 14:15 srr

    drwxrwxr-x 27 root     root           4096 Feb 25 12:48 ..

    drwxr-x---  3 ccfw     ccfw           4096 Feb 27 11:53 viosconfig

    drwxr-xr-x 19 ccfw     ccfw           4096 Feb 27 11:53 .

    drwx------ 19 postgres postgres       4096 Feb 28 01:00 postgres

    hscroot@HMC19:~> ls -latr /data/viosconfig

    ls: cannot open directory '/data/viosconfig': Permission denied

    Same message when I try to list a directory /data/viosconfig/<MTMS>/UUID directly ...

    VIOs UUID is the one I get from lsattr -El sys0 within VIO OS, correct?
    Regards!

    ------------------------------
    Peter Hornung
    ------------------------------



  • 25.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Sun February 28, 2021 12:48 PM
    Hi Hariganesh,
    I have another question regarding Virtual I/O server backup generated with that new GUI function in V9R2M950.
    As Bartlomiej Grabowski mentioned in post no. 9 I can generate a complete VIO backup, but there is no action field to initiate a restore of that backup ...
    I looked around on several GUI menu items, but for me it is completely unclear how to reuse the image / the server backup in order to install a nwe VIO or recover an existing VIO after a crash. Do I have to copy the file from /data/viosbackup/<MTMS>/<VIO-UUID> to another location in HMC to use it? Or transfer it to a NIM server to make an installation?
    Thank you for any hint and explanation!
    Regards!


    ------------------------------
    Peter Hornung
    ------------------------------



  • 26.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon March 01, 2021 12:09 PM
    Hi Peter,

     For the full vios backup, you can use it along with HMC installios command to install a VIOS partition. You can pass /data/viosbackup/<MTMS>/<VIO-UUID>/backupfilename as parameter to the installios command. Hope this helps.

    Thanks. 


    ------------------------------
    Hariganesh Muralidharan
    Cognitive Systems Management Architecture
    IBM
    ------------------------------



  • 27.  RE: VIO IO backup/restore in HMC V9R2M950

    Posted Mon March 01, 2021 12:29 PM
    Hi Hariganesh,

    thank you for providing these information!

    Have a nice day, regards!


    ------------------------------
    Peter Hornung
    ------------------------------



  • 28.  RE: VIO IO backup/restore in HMC V9R2M950

    IBM Champion
    Posted Fri March 05, 2021 07:32 AM
    Couple of (stupid) questions related to these backups:


    1) what is the difference between VIOS IO configuration backup and VIOS backup?
    1st is just viosbr backup of the configuration (SEA adapters, vfc mappings etc) and the 2nd is full "lpar" backup with mksysb + viosbr ?


    2) If I select the Media repository content to be saved in thee backup ..Will the restore of the backup also include loadopt of the optical devices media back to correct vtopt-devices? Or is that (running loadopt) something you need to do always manually? 


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