Re: move logical volume and file system to different vg

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 04/30/03

  • Next message: Pugliese, Edward: "Re: Strange networking issue"
    Date:         Wed, 30 Apr 2003 18:35:50 +0200
    To: aix-l@Princeton.EDU
    
    

    Sorry: I obviously wasn't clear. They were intended as three completely
    independent alternatives, not three related steps.

    Simon Green
    Altria ITSC Europe s.a.r.l.

    AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
    AIX FAQ at http://www.faqs.org/faqs/aix-faq/

    N.B. Unsolicited email from vendors will not be appreciated.

    > -----Original Message-----
    > From: Page, Jennifer [mailto:Jennifer.Page@RBCDAIN.COM]
    > Sent: 30 April 2003 14:55
    > To: aix-l@Princeton.EDU
    > Subject: Re: move logical volume and file system to different vg
    >
    >
    > Not sure you need to do step #3.
    >
    > We were able to copy all of our data from one VG to another using the
    > following:
    >
    > mklv -y N_[OLD_LV] [NEW_VG] [#PP]
    > chlv -t copy N_[OLD_VG]
    > cplv -e N_[OLD_LV] -f [OLD_LV]
    > chlv -n O_[OLD_LV] [OLD_LV]
    > chlv -n [OLD_LV] N_[OLD_LV]
    > *chown root.system /dev/*[OLD_LV]
    > chfs -a dev=/dev/[OLD_LV] [MOUNT POINT]
    > chfs -a log=/dev/[NEW_VG_LOG] [MOUNT POINT]
    >
    > *(may not need this step, we had some raw lvs that did)
    >
    >
    > -----Original Message-----
    > From: Green, Simon [mailto:Simon.Green@EU.ALTRIA.COM]
    > Sent: Wednesday, April 30, 2003 3:55 AM
    > To: aix-l@Princeton.EDU
    > Subject: Re: move logical volume and file system to different vg
    >
    >
    > There's no very easy way to do this. (Not a simple, one-command way,
    > anyway.)
    >
    > Essentially, you have to copy all of the data from the current
    > filesystem to a new one. There are several ways of doing this. Which
    > you choose will depend on your environment.
    >
    > 1. Back up; delete and re-create the filesystem in the new location;
    > restore.
    >
    > 2. Use cplv, then chfs to point to the new LV.
    >
    > 3. Create a new filesystem; copy from the old to the new (e.g. cpio);
    > rename the filesystems.


  • Next message: Pugliese, Edward: "Re: Strange networking issue"