AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Remove volume group it's lvs and filesystems after vg's pv was deleted ?

  • 1.  Remove volume group it's lvs and filesystems after vg's pv was deleted ?

    Posted Wed December 10, 2008 08:49 AM

    Originally posted by: Vilius


    Hi,

    Physical volume of vg was removed permanently by acident. What I need right now is to remove all vg's objects(vg itself, vg's lvs, vg's filesystems) to prepare to add new pv and create new volume group and it's objects.
    This is from reducevg manual:
    "Sometimes a disk is removed from the system without first running reducevg VolumeGroup PhysicalVolume. The VGDA still has this removed disk in it's memory, but the PhysicalVolume name no longer exists or has been reassigned. To remove references to this missing disk you can still use reducevg, but with the Physical Volume ID (PVID) instead of the disk name: reducevg VolumeGroup PVID"

    I executed the following:
    -bash-2.05b# reducevg vglgpaps 000304cb68e16728
    0516-010 lqueryvg: Volume group must be varied on; use varyonvg command.
    0516-882 reducevg: Unable to reduce volume group.
    -bash-2.05b#

    How can I do varyonvg if there is no pv ?
    Acording to manual it should work - but it doesn't !
    What am I donig wrong ?
    (maybe I should remove vg's lvs and filesystems before - but how ?)
    thank you in advance
    Vilius
    #AIX-Forum


  • 2.  Re: Remove volume group it's lvs and filesystems after vg's pv was deleted ?

    Posted Wed December 10, 2008 09:01 AM

    Originally posted by: tony.evans


    If what you want to do is remove all references to a volume group, then you need to use exportvg (check the man page).

    I'm not sure how you got to where you are and if that will actually fix your issue so be very very careful if that's what you really intend.

    If you want to varyon a volume group with missing PV's, then assuming there is at least one good VGDA somewhere in the VG you can try to force the varyon (man varyonvg).
    #AIX-Forum


  • 3.  Re: Remove volume group it's lvs and filesystems after vg's pv was deleted ?

    Posted Wed December 17, 2008 07:09 AM

    Originally posted by: SystemAdmin


    Try using -f flag with reducevg.
    #AIX-Forum


  • 4.  Re: Remove volume group it's lvs and filesystems after vg's pv was deleted ?

    Posted Tue December 23, 2008 04:57 AM

    Originally posted by: SystemAdmin


    Hi, remember to manipulate VG´s is needed to have in varyon(Active) State the VG as the same to manipulate a PV you need to have this in a VG.

    In this case the reducevg command isn´t going to work because de VG is in varyoff(Inactive) State, I recommend to you utilize exportvg command "exportvg namevg"
    #AIX-Forum