You are on page 1of 6

Author: Briju [ukua] HCL- TEC Revision date: 2009-07-29

Version: 1.0
Storage_migration on LINUX

Purpose:-
Document describes the steps to follow to move
physical extends from one disk to another Disc and release the
free disk for decommission.
Pre-requisite:-
Gather the current disk allocation information from
the S! and make sure "#! is con$%ured and is available for
packa%e installation.
ssume task handler have enou%h knowled%e
about &'() multipath and S! connectivity related tools.
Steps to follow:-
*n normal scenario we don+t require a
disruption on the service. #ere a reboot mi%ht need to load the
new initrd ima%e after the removal of current S! speci$c
device drivers.
,) Stop the services usin% $lesystems on disks need to be
mi%rated.
-) .nmount the $lesystems.
/) 0omment unmounted $lesystem entries on 1S23
4) Deactivate 'olume %roup 56v%chan%e 7an 8
9) "emove the current S! driver packa%es 5this mi%ht need
rebuild of initrd ima%e8
:) "ename the 0urrent initrd ima%e at ;boot
<) 0reate new initrd ima%e usin% mkinitrd 56mkinitrd
;boot;initrd-=uname 7r= =uname 7r=8
Page 1 of 6
Author: Briju [ukua] HCL- TEC Revision date: 2009-07-29
Version: 1.0
>) (ake sure your Grub.conf $le pointin% to correct initrd
ima%e.
?) "eboot the server to boot with new ima%e
,@) install multipath usin% *AB-S!-#P usin% Cup-date or
yumD and scan 1scsi for both S! disks.
,,) 0opy Cmultipathd.confD under ;etc from any cluster node
and replace the existin% multipathd.conf.
,-) "un Cmultipath 7v/D to con$%ure the &.! mappin%s.
,/) "un CpvsD to scan existin% &'(s and mount the volumes.
,4) extend the 'olume %roup with B(0 S! disk after creatin%
pv) make sure to use mpath values to create partition and pv.
,9) Start mi%rate physical extends from old disks to new disks
usin% pvmove.
,:) "elease the pv from 'G and remove the P' info from disk.
(ake sure not to run 'GS0! until you complete the mi%ration
activity.
"efer below examples:-
cp ;boot;initrd-E5uname -r8.im% ;home;ukua
mkinitrd ;boot;initrd-E5uname -r8.im% E5uname -r8
ls -l ;boot;initrd-E5uname -r8.im%
vi %rub
initrd ;boot;initrd.im%--.:.,9.4.im%
6up-date 7* *AB-S!
2estin% packa%e set ; solvin% "P( inter-dependencies...
66666666666666666666666666666666666666
66
*AB-S!-,.,.@-9.noarch.rpm
Page 2 of 6
Author: Briju [ukua] HCL- TEC Revision date: 2009-07-29
Version: 1.0
66666666666666666666666666 Done.
B(0power.&*!.F-4.9./-@@/.i/
66666666666666666666666666 Done.
#3nyware-up%radefw-,.,.@--
66666666666666666666666666 Done.
elxlinuxapps-/.-a<->.@.,:./
666666666666666666666666666 Done.
Preparin%
66666666666666666666666666666666666666
66666 G,@@HI
*nstallin%...
,:elxlinuxapps
66666666666666666666666666666666666666
66666 G,@@HI
-:#3nyware-up%radefw
66666666666666666666666666666666666666
66666 G,@@HI
cat: write error: 3roken pipe
JJP! 6, K ,@:@@:@@:@@:c?::<:dd:d@ 51J version: -.<@98
update not required.
JJP! 6- K ,@:@@:@@:@@:c?::<:de:e- 51J version: -.<@98
update not required.
/:B(0power.&*!.F
66666666666666666666666666666666666666
66666 G,@@HI
ll trademarks used herein are the property of their respective
owners.
!L2B:&icense re%istration is not required to mana%e
the 0&"iiL! F series array.
4:*AB-S!
66666666666666666666666666666666666666
66666 G,@@HI
2he followin% packa%es were added to your selection to satisfy
dependencies:
!ame 'ersion "elease
--------------------------------------------------------------
B(0power.&*!.F 4.9./ @@/
#3nyware-up%radefw ,.,.@ -
elxlinuxapps /.-a< >.@.,:./-.:

Move PVs on background:-
Page 3 of 6
Author: Briju [ukua] HCL- TEC Revision date: 2009-07-29
Version: 1.0
Pvmove 7b ;path;sourceMdisk ;path;destinationMdisk
Move extends wit out s!eci"#ing te destination:-
Pvmove 7b ;path;sourceMdisk 5pvmove will move the extends to
free extends on the 'G) make sure you have released your old
disks from 'G.8
Moving !art o" te !#sica$ extends "rom source to
destination%

rootNcfseelm-lx-@@- OI6
pvmove -v ;dev;sdt,:@--9@@@ ;dev;sdp,
(ovin% -/?<< extents of lo%ical volume datav%;lvMu@-
;dev;sdt,: (oved: ??.9H
;dev;sdt,: (oved: ??.?H
;dev;sdt,: (oved: ,@@.@H
1ound volume %roup Pdatav%P
1ound volume %roup Pdatav%P
&oadin% datav%-lvMu@- table
Suspendin% datav%-lvMu@- 5-9/:,-8 without device Qush
Suspendin% datav%-pvmove@ 5-9/:,:8 without device Qush
1ound volume %roup Pdatav%P
1ound volume %roup Pdatav%P
1ound volume %roup Pdatav%P
"esumin% datav%-pvmove@ 5-9/:,:8
1ound volume %roup Pdatav%P
"esumin% datav%-lvMu@- 5-9/:,-8
1ound volume %roup Pdatav%P
"emovin% datav%-pvmove@ 5-9/:,:8
1ound volume %roup Pdatav%P
"emovin% temporary pvmove &'
Jritin% out $nal volume %roup after pvmove
0reatin% volume %roup backup P;etc;lvm;backup;datav%P
5seqno <,8.
Page 4 of 6
Author: Briju [ukua] HCL- TEC Revision date: 2009-07-29
Version: 1.0
!3: *f the activity %oes in to han% state you can abort the
CpvmoveD or restart the server and run the same command
you have initiated for pvmove. Jill continue from where it went
to hun% state.


Page 5 of 6
Author: Briju [ukua] HCL- TEC Revision date: 2009-07-29
Version: 1.0
Page 6 of 6

You might also like