Topic
  • 3 replies
  • Latest Post - ‏2015-03-11T09:47:43Z by wou
teletype
teletype
3 Posts

Pinned topic how to recover from an accidental chpv -C on a vio server

‏2013-10-09T05:11:32Z |

Hello all,

I dont know if this is the right forum. May be the question should be asked in the AIX forum.

My situation:

We have a dual vio setup.
vio version 2.2.1.4
Alls disks are passed via vscsi to clients.

For one of my development partitions I accidentaly ran chpv -C (in oem_setup_env) on the backend disk on both vioses. I did this so lspv -free shows the disk as free.

Now my client is broken (of course). Almost all (if not all) lvm commands fail. It is not possible to make a mksysb of the system anymore.
Here is some output:

# lspv hdisk0
0516-066 : Physical volume is not a volume group member.
        Check the physical volume name specified.
PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      00c55b02dd5114dd VG IDENTIFIER     00c55b0200004c000000011f163fe614
PV STATE:           ???????
STALE PARTITIONS:   ???????                  ALLOCATABLE:      ???????
PP SIZE:            ???????                  LOGICAL VOLUMES:  ???????
TOTAL PPs:          ???????                  VG DESCRIPTORS:   ???????
FREE PPs:           ???????                  HOT SPARE:        ???????
USED PPs:           ???????                  MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION:  ???????
USED DISTRIBUTION:  ???????
MIRROR POOL:        ???????

# lsvg rootvg
0516-066 : Physical volume is not a volume group member.
        Check the physical volume name specified.

Is there a way to recover from this mistake (apart from reinstalling the partition)?

Is there an alternative tp chpc -C to free up disks on the vio server? A padmin alternative would be welcome.

TIA

  • MaddyMadhan
    MaddyMadhan
    1 Post
    ACCEPTED ANSWER

    Re: how to recover from an accidental chpv -C on a vio server

    ‏2013-10-29T04:59:02Z  

    Please run

    "savebase -v" and creat boot image bosboot -ad /dev/hdisk0

    and reboot the server.............

    Thanks

    Please reply

  • MaddyMadhan
    MaddyMadhan
    1 Post

    Re: how to recover from an accidental chpv -C on a vio server

    ‏2013-10-29T04:59:02Z  

    Please run

    "savebase -v" and creat boot image bosboot -ad /dev/hdisk0

    and reboot the server.............

    Thanks

    Please reply

  • teletype
    teletype
    3 Posts

    Re: how to recover from an accidental chpv -C on a vio server

    ‏2014-04-14T05:49:43Z  

    Please run

    "savebase -v" and creat boot image bosboot -ad /dev/hdisk0

    and reboot the server.............

    Thanks

    Please reply

    First of all sorry to reply just now. I didn't have this error this till now.

    This works thanks.

  • wou
    wou
    1 Post

    Re: how to recover from an accidental chpv -C on a vio server

    ‏2015-03-11T09:47:43Z  

    Please don't confuse "chpv -C" (erase VGA) with "chpv -c" (erase boot record).

    bosboot could help you to recreate the lost boot record, but this command is no able to write missing LVM information to any disk.

     

    Does anyone have the right solution to copy LVM meta data retrieved from ODM (lquerypv) to the erased disk ?