Solved

pvmove command

Posted on 2011-03-25
4
774 Views
Last Modified: 2013-12-15
Hello Experts,

I have a question, I have to for performance reasons move storage from one disk to another( EMC)
Now I have a live database on a file systems which has a 40 GB Physical Volume.

Now I plan to add a new 40GB  disk ( A high Qaulity of Service disk from SAN) to the system and create a PV. and then add it t the Database Volume Group and then do as follows

pvmove OLDPV NEWPV

Would this work fine and I suppose I would not need a downtime for Database,please correct me if I m wrong.

The following are the logistic details

Server - VM server

OS - Red Hat Enterprise Linux ES release 4 (Nahant Update 5)

Kernel Version -  2.6.9-55.ELsmp

LVM version :   LVM version:     2.02.21-RHEL4 (2007-03-26)
  Library version: 1.02.17-RHEL4 (2007-02-02)
  Driver version:  4.5.5

Any guidance would be highly appreciated.

Thanks in advane
0
Comment
Question by:Peddu_bhanu
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 500 total points
ID: 35218944
The command as you stated should work. The normal precaution applies: have a backup! Also there will be a performance penalty during the move, so if the database is higly loaded users are bound to feel the effects, best to schedule this outside of office hours
0
 
LVL 39

Expert Comment

by:noci
ID: 35219054
If you want to prevent downtime you actualy need a raid1 set.

If you build a raid1 set on top of your current LV, (2 members, one = the OLDLV and a missing one ).
then create a new LV on the EMC and add that as a spare to the raid set then you can continue running during the copy..

When ready just remove the OLDLV from the raid1 set by failing it (mdadm command, no need to pull hardware). After that you can remove all temporary setup for the raidset at your leisure (needs some umount/remount).
0
 
LVL 39

Expert Comment

by:noci
ID: 35219121
This should be added to my comment:
I personally prefer the mirror way because it preserves the original completely without altering it during the move...
after detachment of the old stuff you can discard it at once.
0
 
LVL 1

Author Closing Comment

by:Peddu_bhanu
ID: 35499519
-
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now