Solved

pvmove command

Posted on 2011-03-25
4
785 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 40

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 40

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

752 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