Topic
  • 9 replies
  • Latest Post - ‏2012-10-26T08:32:52Z by PontiacGeronimo
karthikraja
karthikraja
22 Posts

Pinned topic alt_disk_copy for VIOS

‏2011-08-02T10:17:08Z |
Dear All,

Am planning to clone the root vg (alt_disk_copy) to different disk, my query is will it work for VIO servers ? if so , can we use the target disk to boot ?

Thanks,
Karthi
Updated on 2012-10-26T08:32:52Z at 2012-10-26T08:32:52Z by PontiacGeronimo
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: alt_disk_copy for VIOS

    ‏2011-08-07T19:58:42Z  
    Yes. It will work for the VIOS. You can run it from the root prompt. Once the alternate disk copy process completes, By default the first boot device will be the disk which you have mentioned on the alt_disk_copy -d <hdisk#> command.
    1. Kannan.
  • karthikraja
    karthikraja
    22 Posts

    Re: alt_disk_copy for VIOS

    ‏2011-08-08T11:13:34Z  
    Yes. It will work for the VIOS. You can run it from the root prompt. Once the alternate disk copy process completes, By default the first boot device will be the disk which you have mentioned on the alt_disk_copy -d <hdisk#> command.
    1. Kannan.
    Hi Kannan,

    Thanks for the info, have you tried to boot form the Cloned Disk and able to see all mappings ?

    Thanks,
    Karthik
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: alt_disk_copy for VIOS

    ‏2011-08-08T21:08:33Z  
    Hi Kannan,

    Thanks for the info, have you tried to boot form the Cloned Disk and able to see all mappings ?

    Thanks,
    Karthik
    The command from ioscli is alt_root_vg but it does not have -X option (clean the alt_disk_install) and you run this from root shell.
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: alt_disk_copy for VIOS

    ‏2011-08-08T21:53:25Z  
    The command from ioscli is alt_root_vg but it does not have -X option (clean the alt_disk_install) and you run this from root shell.
    Yes, If you boot the VIOS on the cloned disk, It should come up properly with all the configuration.

    I have done this test, while I have performed the VIOS upgrade.
      1. Kannan
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: alt_disk_copy for VIOS

    ‏2011-08-08T21:55:36Z  
    Yes, If you boot the VIOS on the cloned disk, It should come up properly with all the configuration.

    I have done this test, while I have performed the VIOS upgrade.
      1. Kannan
    Kerthi,

    Are you facing any issues, If you boot the VIOS on the cloned disk ?
    Kannan
  • karthikraja
    karthikraja
    22 Posts

    Re: alt_disk_copy for VIOS

    ‏2011-08-09T13:46:38Z  
    Kerthi,

    Are you facing any issues, If you boot the VIOS on the cloned disk ?
    Kannan
    Kannan,

    No, Thanks for the info.

    Thanks,
    Karthik
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: alt_disk_copy for VIOS

    ‏2012-10-24T04:04:43Z  
    Kannan,

    No, Thanks for the info.

    Thanks,
    Karthik
    This works good but I have one doubt. alt_disk_copy does not back-up unmounted FS. If I have an LV mapped to VIO client as vscsi disk, alt_disk_copy will take it as unmounted FS and will not backup ( though LV should be created ) and then if VIO is booted from alt_rootvg, the VIO client will not have data in that LV mapped disk.

    Have you tried this?
  • teletype
    teletype
    27 Posts

    Re: alt_disk_copy for VIOS

    ‏2012-10-25T17:59:01Z  
    This works good but I have one doubt. alt_disk_copy does not back-up unmounted FS. If I have an LV mapped to VIO client as vscsi disk, alt_disk_copy will take it as unmounted FS and will not backup ( though LV should be created ) and then if VIO is booted from alt_rootvg, the VIO client will not have data in that LV mapped disk.

    Have you tried this?
    Hey Amit,
    Maybe I am missing the point here. But for a vio server the logical volume does not contain a filesystem so it would be impossible to backup/restore it. This is, to the best of my knowledge, what alt_disk_copy does.
    Furthermore I hope you did not make the logical volumes in rootvg but used another volumegroup for it. If you did, then you are in trouble if you use alt_disk_copy.

    Hope this helps
  • PontiacGeronimo
    PontiacGeronimo
    86 Posts

    Re: alt_disk_copy for VIOS

    ‏2012-10-26T08:32:52Z  
    • teletype
    • ‏2012-10-25T17:59:01Z
    Hey Amit,
    Maybe I am missing the point here. But for a vio server the logical volume does not contain a filesystem so it would be impossible to backup/restore it. This is, to the best of my knowledge, what alt_disk_copy does.
    Furthermore I hope you did not make the logical volumes in rootvg but used another volumegroup for it. If you did, then you are in trouble if you use alt_disk_copy.

    Hope this helps
    i think you could wake alt_rootvg up and do copy the lv using dd or cplv --- I have using dd many times clonning LV backend devices and it worked.
    of coure better is to stop client fisrt or assing to the client another disks"LV" from non-rootvg and migrate it to it (via mklvcopy or mirrorvg).