Re: migrating a filesystem/lv from one disk to two disks

From: Holger.VanKoll@SWISSCOM.COM
Date: Fri Oct 11 2002 - 07:42:49 EDT


>Another option would be to delete the filesystem, recreate it
 
Well, I thought about this. I could create a "real" striped
lv/filesystem then.
 
However, I never tested the performance of a striped LV versus a LV
thats distributed manually between several volumes?
 
Is this a big difference in performance? What is the technical
difference at all?
 
 

        -----Original Message-----
        From: Green, Simon [mailto:SGreen@KRAFTEUROPE.COM]
        Sent: Friday, October 11, 2002 12:30 PM
        To: aix-l@Princeton.EDU
        Subject: Re: migrating a filesystem/lv from one disk to two
disks
        
        
        I'd use mklvcopy to make a copy on both hdisk3 and hdisk4, then
drop the first copy and use migratepv to move stuff off hdisk4 to
hdisdk2. You still have to copy some of the partitions twice, but I
don't think that can be helped. Provided there's free space in the
right place on hdisk2 migratepv should be OK.
         
        reorgvg might work, as suggested, but I've always found it to be
very slow.
         
        Another option would be to delete the filesystem, recreate it
where you want it and restore from a backup. Depending on your
environment this might be quicker than using mklvcopy/migratepv, but
obviously the filesystem would be unavailable.
        
        

        Simon Green
        Philip Morris ITSC Europe
        
        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 seldom be appreciated.

                -----Original Message-----
                From: Holger.VanKoll@SWISSCOM.COM
[mailto:Holger.VanKoll@SWISSCOM.COM]
                Sent: 07 October 2002 19:34
                To: aix-l@Princeton.EDU
                Subject: migrating a filesystem/lv from one disk to two
disks
                
                

                Hello,

                I got a fs (say) called my_fs on lv my_lv thats on
hdisk2, 20 LPs, no mirroring.

                hdisk2 is overloaded, especially with this fs. So I want
to migrate 10 of the 20 LPs to another disk.

                hdisk3 and hdisk4 are in the same vg, both have 11 LP
free. hdisk4 has also much load, so I only want to "stripe" my_fs on
hdisk2 and hdisk3.

                I cant use migratepv -l my_lv, it always migrates the
whole lv.

                I could use chlv to set intrapolicy to max and do an
reorgvg. That however would distribute my_lv on hdisk2 and hdisk3 and
hdisk4.

                To prevent this, I could use "chpv -a n hdisk4" to
prevent further pp-allocations to hdisk4.
                That could work, but did anyone ever do this? I am
worrying about performance. reorgvg needs one free pp (man reorgvg).
Does that mean it will temporarily mirror every pp on this free pp (11
LP free - 10 PP to get allocated) ?

                I could also use mklvcopy to make a lv copy on hdisk4.
Then remove the "original" copy on hdisk2. Then mklvcopy -m
map_file_containing_hdisk2_and_hdisk3 and rmlvcopy my_lv hdisk4. That
should also work, however, then the whole lv will be copied twice. And
all I need to do is moving some PP from hdisk2 to hdisk3...



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:15 EDT