Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 792
  • Last Modified:

pvmove command

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
Peddu_bhanu
Asked:
Peddu_bhanu
  • 2
1 Solution
 
de2ZotjesCommented:
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
 
nociSoftware EngineerCommented:
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
 
nociSoftware EngineerCommented:
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
 
Peddu_bhanuAuthor Commented:
-
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now